File tree Expand file tree Collapse file tree 6 files changed +9
-19
lines changed
examples/nucleo_h723zg/vl53 Expand file tree Collapse file tree 6 files changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ extern "C" {
1919#include " ../../../../ext/vl53/vl53/vl53l5cx/examples/Example_5_multiple_targets_per_zone.h"
2020}
2121
22- #include < modm/driver/vl53/vl53.hpp>
2322#include < modm/driver/vl53/vl53_transport.hpp>
2423
2524using namespace Board ;
@@ -50,12 +49,10 @@ main()
5049 transport.resetSensor ();
5150
5251 I2c::connect<Scl::Scl, Sda::Sda>(I2c::PullUps::External);
53- I2c::initialize<Board::SystemClock, 1_MHz, 10_pct>();
54-
55- uint8_t device_id, revision_id;
52+ I2c::initialize<Board::SystemClock, 400_kHz>();
5653
5754 example1 (&transport);
5855 example2 (&transport);
5956 example3 (&transport);
6057 example5 (&transport);
61- }
58+ }
Original file line number Diff line number Diff line change 22 <extends >modm:nucleo-h723zg</extends >
33 <options >
44 <option name =" modm:build:build.path" >../../../../build/nucleo_h723zg/vl53l5cx_i2c</option >
5- <option name =" modm:platform:cortex-m:main_stack_size" >64Ki </option >
5+ <option name =" modm:platform:cortex-m:main_stack_size" >8Ki </option >
66 </options >
77 <modules >
88 <module >modm:build:scons</module >
9- <module >modm:platform:dma</module >
10- <module >modm:platform:exti</module >
119 <module >modm:platform:i2c:1</module >
1210 <module >modm:vl53:vl53l5cx</module >
1311 </modules >
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ extern "C" {
2121#include " ../../../../ext/vl53/vl53/vl53lmz/examples/Example_5_multiple_targets_per_zone.h"
2222}
2323
24- #include < modm/driver/vl53/vl53.hpp>
2524#include < modm/driver/vl53/vl53_transport.hpp>
2625
2726using namespace Board ;
@@ -50,11 +49,11 @@ main()
5049 transport.resetSensor ();
5150
5251 I2c::connect<Scl::Scl, Sda::Sda>(I2c::PullUps::Internal);
53- I2c::initialize<Board::SystemClock, 1_MHz, 10_pct >();
52+ I2c::initialize<Board::SystemClock, 400_kHz >();
5453
5554 example1 (&transport);
5655 example2 (&transport);
5756 example3 (&transport);
5857 example5 (&transport);
5958 example12 (&transport);
60- }
59+ }
Original file line number Diff line number Diff line change 22 <extends >modm:nucleo-h723zg</extends >
33 <options >
44 <option name =" modm:build:build.path" >../../../../build/nucleo_h723zg/vl53l8_vl53l8_i2c</option >
5- <option name =" modm:platform:cortex-m:main_stack_size" >16Ki </option >
5+ <option name =" modm:platform:cortex-m:main_stack_size" >8Ki </option >
66 </options >
77 <modules >
88 <module >modm:build:scons</module >
9- <module >modm:platform:dma</module >
10- <module >modm:platform:exti</module >
119 <module >modm:platform:i2c:1</module >
1210 <module >modm:vl53:vl53lmz</module >
1311 </modules >
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ extern "C" {
2121#include " ../../../../ext/vl53/vl53/vl53lmz/examples/Example_5_multiple_targets_per_zone.h"
2222}
2323
24- #include < modm/driver/vl53/vl53.hpp>
2524#include < modm/driver/vl53/vl53_transport.hpp>
2625
2726using namespace Board ;
@@ -54,11 +53,11 @@ main()
5453 transport.resetSensor ();
5554
5655 SpiMaster::connect<Sck::Sck, Mosi::Mosi, Miso::Miso>();
57- SpiMaster::initialize<Board::SystemClock, 2 .2_MHz, 10_pct >();
56+ SpiMaster::initialize<Board::SystemClock, 2 .2_MHz>();
5857
5958 example1 (&transport);
6059 example2 (&transport);
6160 example3 (&transport);
6261 example5 (&transport);
6362 example12 (&transport);
64- }
63+ }
Original file line number Diff line number Diff line change 22 <extends >modm:nucleo-h723zg</extends >
33 <options >
44 <option name =" modm:build:build.path" >../../../../build/nucleo_h723zg/vl53l8_spi</option >
5- <option name =" modm:platform:cortex-m:main_stack_size" >16Ki </option >
5+ <option name =" modm:platform:cortex-m:main_stack_size" >8Ki </option >
66 </options >
77 <modules >
88 <module >modm:build:scons</module >
99 <module >modm:platform:dma</module >
10- <module >modm:platform:exti</module >
1110 <module >modm:platform:spi:2</module >
1211 <module >modm:vl53:vl53lmz</module >
1312 </modules >
You can’t perform that action at this time.
0 commit comments