diff options
| author | hathach <[email protected]> | 2025-10-17 16:54:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-10-23 02:23:20 +0700 |
| commit | c8a1b757f05be044d121a655b6e1a5ac3b52ee14 (patch) | |
| tree | 64dcf52caf145ad8081c91f40318b3587bee80f4 /examples | |
| parent | 2f3b21a1e58e5c03c61e83920d77f8c27540dfd5 (diff) | |
refactor family.cmake: rename add_board_target() to family_add_board() and move it to family_configure_common()
also move startup and linker from board target to actual exe
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/board_test/src/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/device/board_test/src/main.c b/examples/device/board_test/src/main.c index 872a97108..ee0829e5b 100644 --- a/examples/device/board_test/src/main.c +++ b/examples/device/board_test/src/main.c @@ -45,7 +45,6 @@ int main(void) { uint32_t start_ms = 0; bool led_state = false; - const size_t hello_len = strlen(HELLO_STR); while (1) { uint32_t interval_ms = board_button_read() ? BLINK_PRESSED : BLINK_UNPRESSED; @@ -67,12 +66,12 @@ int main(void) { printf(HELLO_STR); #ifndef LOGGER_UART - board_uart_write(HELLO_STR, hello_len); + board_uart_write(HELLO_STR, sizeof(HELLO_STR)-1); #endif } board_led_write(led_state); - led_state = 1 - led_state; // toggle + led_state = !led_state; // toggle } } } |
