This repository was archived by the owner on Nov 3, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ project(blinky_demo)
99# Our demo sources.
1010add_executable (blinky main.cpp)
1111
12- # Demo depends on the core .
12+ # Demo depends on theCore .
1313target_link_libraries (blinky the_core)
1414
1515# Set of configuration variables.
@@ -23,14 +23,8 @@ set(CONFIG_PLATFORM_HSE_VAL 8000000)
2323set (CONFIG_EXEC_STRIP true )
2424
2525# All configuration variables should be defined _before_ call
26- # to register_project ()
26+ # to add_subdirectory ()
2727
28- # Notify The Core about our project.
29- # register_project() takes two arguments:
30- # First is the project name, second is the path to object file,
31- # produced by the project.
32- register_project(${PROJECT_NAME} ${CMAKE_CURRENT_BINARY_DIR} /blinky)
33-
34- # Pay attention that there is no add_subdirectory(core) statement.
35- # register_project() do this internally so no need to do it explicitly.
28+ # Add theCore to the build.
29+ add_subdirectory (core)
3630
Original file line number Diff line number Diff line change @@ -49,10 +49,10 @@ static void target_init_gpio()
4949
5050// Define LED types
5151
52- using led_red = GPIO< pin::port::port_d, pin::number::pin_14 >;
53- using led_green = GPIO< pin::port::port_d, pin::number::pin_12 >;
54- using led_blue = GPIO< pin::port::port_d, pin::number::pin_15 >;
55- using led_orange = GPIO< pin::port::port_d, pin::number::pin_13 >;
52+ using led_red = ecl::gpio< ecl::gpio_port::d, ecl::gpio_num::pin14 >;
53+ using led_green = ecl::gpio< ecl::gpio_port::d, ecl::gpio_num::pin12 >;
54+ using led_blue = ecl::gpio< ecl::gpio_port::d, ecl::gpio_num::pin15 >;
55+ using led_orange = ecl::gpio< ecl::gpio_port::d, ecl::gpio_num::pin13 >;
5656
5757
5858#endif
You can’t perform that action at this time.
0 commit comments