add new task
Posted: Thu Aug 13, 2020 12:41 pm
I would like to add a new task.
As a result of following the example on the homepage, I got the desired output.
I've added some code to go further and do what I want.
But I couldn't get the result I wanted.
Do I have to make additional settings?
////////////////////////////////////////////////////////////////
https://www.bitcraze.io/documentation/r ... ystemtask/
////////////////////////////////////////////////////////////////
static void exampleTask(void* parameters) {
DEBUG_PRINT("Example task main function is running!");
while (true) {
int input;
if (pdTRUE == xQueueReceive(inputQueue, &input, portMAX_DELAY)) {
// Respond to input here!
void ledClearAll(); //add here
vTaskDelay(M2T(100)); //add here
}
}
}
////////////////////////////////////////////////////////////////
I wanted to make sure my rtos were working properly.
Is there any part where I need to modify the existing rtos queue without adding a separate deck?
As a result of following the example on the homepage, I got the desired output.
I've added some code to go further and do what I want.
But I couldn't get the result I wanted.
Do I have to make additional settings?
////////////////////////////////////////////////////////////////
https://www.bitcraze.io/documentation/r ... ystemtask/
////////////////////////////////////////////////////////////////
static void exampleTask(void* parameters) {
DEBUG_PRINT("Example task main function is running!");
while (true) {
int input;
if (pdTRUE == xQueueReceive(inputQueue, &input, portMAX_DELAY)) {
// Respond to input here!
void ledClearAll(); //add here
vTaskDelay(M2T(100)); //add here
}
}
}
////////////////////////////////////////////////////////////////
I wanted to make sure my rtos were working properly.
Is there any part where I need to modify the existing rtos queue without adding a separate deck?