Skip to content
This repository was archived by the owner on Nov 3, 2019. It is now read-only.

Commit 2d89751

Browse files
committed
Submodule updated to reflect recent release
1 parent f84f62f commit 2d89751

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

CMakeLists.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ project(blinky_demo)
99
# Our demo sources.
1010
add_executable(blinky main.cpp)
1111

12-
# Demo depends on the core.
12+
# Demo depends on theCore.
1313
target_link_libraries(blinky the_core)
1414

1515
# Set of configuration variables.
@@ -23,14 +23,8 @@ set(CONFIG_PLATFORM_HSE_VAL 8000000)
2323
set(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

core

Submodule core updated from a78dd4f to ddbdb72

target.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)