diff --git a/demos/conanfile.py b/demos/conanfile.py index d998a8a..96a3688 100644 --- a/demos/conanfile.py +++ b/demos/conanfile.py @@ -15,7 +15,7 @@ class demos(ConanFile): - python_requires = "libhal-bootstrap/[^4.0.0]" + python_requires = "libhal-bootstrap/[^4.0.3]" python_requires_extend = "libhal-bootstrap.demo" def requirements(self): diff --git a/demos/platforms/stm32f103c8.cpp b/demos/platforms/stm32f103c8.cpp index 7bce9e4..e82b9b6 100644 --- a/demos/platforms/stm32f103c8.cpp +++ b/demos/platforms/stm32f103c8.cpp @@ -14,17 +14,16 @@ #include -#include -#include -#include - +#include +#include #include #include #include #include #include #include -#include +#include +#include #include #include @@ -72,11 +71,13 @@ void initialize_platform(resource_list& p_resources) static hal::stm32f1::output_pin sck('A', 5); static hal::stm32f1::output_pin copi('A', 6); static hal::stm32f1::input_pin cipo('A', 7); - static hal::soft::bit_bang_spi::pins bit_bang_spi_pins{ .sck = &sck, - .copi = &copi, - .cipo = &cipo }; + static hal::bit_bang_spi::pins bit_bang_spi_pins{ + .sck = &sck, + .copi = &copi, + .cipo = &cipo, + }; - static hal::soft::bit_bang_spi bit_bang_spi( + static hal::bit_bang_spi bit_bang_spi( bit_bang_spi_pins, steady_clock, spi_settings); spi = &bit_bang_spi; } else {