|
|
|
|
@ -26,7 +26,8 @@ static McuBtn_Handle_t button; |
|
|
|
|
#if McuLib_CONFIG_SDK_USE_FREERTOS |
|
|
|
|
static void blinkyTask(void *pv) { |
|
|
|
|
for(;;) { |
|
|
|
|
vTaskDelay(pdMS_TO_TICKS(10)); |
|
|
|
|
McuLED_Toggle(tinyLED); |
|
|
|
|
vTaskDelay(pdMS_TO_TICKS(1000)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
@ -98,7 +99,7 @@ int main(void) { |
|
|
|
|
|
|
|
|
|
PRINTF("Hello World\n"); |
|
|
|
|
#if McuLib_CONFIG_SDK_USE_FREERTOS |
|
|
|
|
if (xTaskCreate(blinkyTask, "blinky", 1000/sizeof(StackType_t), NULL, tskIDLE_PRIORITY, NULL)!=pdPASS) { |
|
|
|
|
if (xTaskCreate(blinkyTask, "blinky", 500/sizeof(StackType_t), NULL, tskIDLE_PRIORITY, NULL)!=pdPASS) { |
|
|
|
|
for(;;) {} |
|
|
|
|
} |
|
|
|
|
vTaskStartScheduler(); |
|
|
|
|
|