|
uint8_t a0;
uint8_t a1;
uint8_t a2;
xTaskCreate( AppTaskA, /* Pointer to the function that implements the task. */
"App Task A", /* Text name for the task. This is to facilitate debugging only. */
AppTaskAStk, /* Stack depth in words. */
(void *)&a0,
APP_CFG_TASK_A_PRIO, /* This task will run at priority 1. */
xHandleA);
创建任务时如果 要传递a0的值,以上程序是有问题的。 要吧a0 定义成 uint32_t 类型 |
|