]> begriffs open source - cmsis-freertos/commit
Fix RTOS2 priority value mapping (#96)
authorVladimir Umek <vladimir.umek@arm.com>
Wed, 10 Apr 2024 07:18:27 +0000 (09:18 +0200)
committerVladimir Umek <vladimir.umek@arm.com>
Wed, 10 Apr 2024 07:49:04 +0000 (09:49 +0200)
commit9cdbe17d1b7704439a9e6a1fa50ef879eff9b913
tree2b150b68a17cdddc288e278acc336bc21313b1f8
parentd0b0b50e59e53f936cc575d21cf8c16514c26291
Fix RTOS2 priority value mapping (#96)

- FreeRTOS handles priorities from 0 to configMAX_PRIORITIES-1
- RTOS2 defines priorities from 1(osPriorityIdle) to osPriorityISR(56)

- Till now RTOS2 passed priorities 1:1 to FreeRTOS, i.e. FreeRTOS priority matched osPriority_t.
  This commit changes priority mapping: FreeRTOS priority is now (osPriority_t - 1).
ARM.CMSIS-FreeRTOS.pdsc
CMSIS/RTOS2/FreeRTOS/Source/cmsis_os2.c