From c24b2445d96b468b8e877fab2a9f3d0ab8caeb52 Mon Sep 17 00:00:00 2001 From: 3djc Date: Tue, 3 Aug 2021 09:41:02 +0200 Subject: [PATCH] Cleanup --- radio/src/rtos.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/radio/src/rtos.h b/radio/src/rtos.h index 0d9a7e920..d5427b240 100644 --- a/radio/src/rtos.h +++ b/radio/src/rtos.h @@ -261,19 +261,6 @@ inline void RTOS_CREATE_TASK(pthread_t &taskId, void * (*task)(void *), const ch #define RTOS_WAIT_FLAG(flag,timeout) _RTOS_WAIT_FLAG(&flag,timeout) - static inline void _RTOS_ISR_SET_FLAG(RTOS_FLAG_HANDLE* flag) - { - BaseType_t xHigherPriorityTaskWoken = pdFALSE; - - // Give semaphore back from ISR to trigger a task waiting for it - xSemaphoreGiveFromISR( flag->rtos_handle, &xHigherPriorityTaskWoken ); - - // If xHigherPriorityTaskWoken was set to true we should yield - portYIELD_FROM_ISR( xHigherPriorityTaskWoken ); - } - - #define RTOS_ISR_SET_FLAG(flag) _RTOS_ISR_SET_FLAG(&flag) - #ifdef __cplusplus template class TaskStack