prog.c: In function ‘IRQHandler’:
prog.c:2:6: error: ‘cond’ undeclared (first use in this function); did you mean ‘void’?
if (cond) {
^~~~
void
prog.c:2:6: note: each undeclared identifier is reported only once for each function it appears in
prog.c:3:3: warning: implicit declaration of function ‘xTaskNotifyGiveFromISR’ [-Wimplicit-function-declaration]
xTaskNotifyGiveFromISR(task_handler, &xHigherPriorityTaskWoken);
^~~~~~~~~~~~~~~~~~~~~~
prog.c:3:26: error: ‘task_handler’ undeclared (first use in this function); did you mean ‘IRQHandler’?
xTaskNotifyGiveFromISR(task_handler, &xHigherPriorityTaskWoken);
^~~~~~~~~~~~
IRQHandler
prog.c:3:41: error: ‘xHigherPriorityTaskWoken’ undeclared (first use in this function)
xTaskNotifyGiveFromISR(task_handler, &xHigherPriorityTaskWoken);
^~~~~~~~~~~~~~~~~~~~~~~~
prog.c: In function ‘func’:
prog.c:9:2: warning: implicit declaration of function ‘ulTaskNotifyTake’ [-Wimplicit-function-declaration]
ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(100));
^~~~~~~~~~~~~~~~
prog.c:9:19: error: ‘pdTRUE’ undeclared (first use in this function)
ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(100));
^~~~~~
prog.c:9:27: warning: implicit declaration of function ‘pdMS_TO_TICKS’ [-Wimplicit-function-declaration]
ulTaskNotifyTake(pdTRUE, pdMS_TO_TICKS(100));
^~~~~~~~~~~~~