You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to port the radio to RTOS so we can take advantage of yielding (instead of just delaying for 1ms).
This should basically look like the following:
static SemaphoreHandle_t radio_semaphore;
voidradio_interrupt() {
xSemaphoreGiveFromISR(radio_semaphore, NULL);
}
voidradio_task_function() {
while (true) {
// TODO: Request data from the ISMif (xSemaphoreTake(radio_semaphore, 1ms_in_ticks)) {
// TODO: Get data from the ISM
}
}
}
The text was updated successfully, but these errors were encountered:
We need to port the radio to RTOS so we can take advantage of yielding (instead of just delaying for 1ms).
This should basically look like the following:
The text was updated successfully, but these errors were encountered: