diff options
| author | hathach <[email protected]> | 2018-02-28 15:02:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-02-28 15:05:55 +0700 |
| commit | 45ea2ff358ddcba9e66cb0aad0ae8e1ecb1edb84 (patch) | |
| tree | 21ade0298414989e37112235b04cc13cd2578ce0 /boards | |
| parent | 65a076f1981ae123568c66ec06d90b26707dac9e (diff) | |
remove cmsis rtx support
Diffstat (limited to 'boards')
| -rw-r--r-- | boards/board.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/boards/board.c b/boards/board.c index 75529f3a9..fa28a557c 100644 --- a/boards/board.c +++ b/boards/board.c @@ -71,11 +71,19 @@ void led_blinking_set_interval(uint32_t ms) led_blink_interval_ms = ms;
}
+tusb_error_t led_blinking_subtask(void);
void led_blinking_task(void* param)
{
(void) param;
OSAL_TASK_LOOP_BEGIN
+ led_blinking_subtask();
+ OSAL_TASK_LOOP_END
+}
+
+tusb_error_t led_blinking_subtask(void)
+{
+ OSAL_SUBTASK_BEGIN
static uint32_t led_on_mask = 0;
@@ -92,7 +100,7 @@ void led_blinking_task(void* param) // if ( BIT_TEST_(btn_mask, i) ) printf("button %d is pressed\n", i);
// }
- OSAL_TASK_LOOP_END
+ OSAL_SUBTASK_END
}
// TODO remove legacy cmsis code
|
