CC3200 FreeRTOS软件定时器
时间:10-02
整理:3721RD
点击:
CC3200 FreeRTOS软件定时器如何配置?
我配置的无法进入定时器回调函数,配置如下:
/* Timer related defines. */
#define configUSE_TIMERS 1
#define configTIMER_TASK_PRIORITY 2
#define configTIMER_QUEUE_LENGTH 20
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
#define configUSE_MALLOC_FAILED_HOOK 1
#define configENABLE_BACKWARD_COMPATIBILITY 0
TimerHandle_t g_softetimer = NULL;
void SoftTimerCallbackHandler( TimerHandle_t xTimer )
{
UART_PRINT("SoftTimerCallbackHandler\n\r");
GPIO_IF_LedToggle(MCU_ORANGE_LED_GPIO);
}
g_softetimer = xTimerCreate("TimerGPIOTask", 500, pdTRUE, (void *)0, SoftTimerCallbackHandler);
xTimerStart(g_softetimer, 0);
/***********
请问我错在哪里?谢谢!