Skip to content

Commit 99a157f

Browse files
committed
Add FREERTOS_PRIORITY_TO_RTTHREAD in esp-idf portmacro.h
1 parent 7e557f5 commit 99a157f

File tree

1 file changed

+2
-0
lines changed
  • FreeRTOS/portable/esp-idf/riscv/include/freertos

1 file changed

+2
-0
lines changed

FreeRTOS/portable/esp-idf/riscv/include/freertos/portmacro.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,8 @@ FORCE_INLINE_ATTR bool xPortCanYield(void)
333333
return (threshold <= 1);
334334
}
335335

336+
#define FREERTOS_PRIORITY_TO_RTTHREAD(priority) ( configMAX_PRIORITIES - 1 - ( priority ) )
337+
#define RTTHREAD_PRIORITY_TO_FREERTOS(priority) ( RT_THREAD_PRIORITY_MAX - 1 - ( priority ) )
336338
/* Use this macro to calculate the buffer size when allocating a queue statically
337339
* To ensure the buffer can fit the desired number of messages
338340
*/

0 commit comments

Comments
 (0)