Skip to content

Commit

Permalink
IMPORTANT FIX FOR STM32Cube/nRF-SDK: correct default max task priorit…
Browse files Browse the repository at this point in the history
…y. (#1148)

Follow up to the previous commit (2380fe5): the same thing applies for STM32Cube and nRF-SDK since they both use FreeRTOS.
  • Loading branch information
RobMeades committed Apr 21, 2024
1 parent 2380fe5 commit 3e11bfd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions port/platform/nrf5sdk/u_cfg_os_platform_specific.h
Expand Up @@ -61,11 +61,10 @@
#endif

#ifndef U_CFG_OS_PRIORITY_MAX
/** The maximum task priority, should be less than or
* equal to configMAX_PRIORITIES defined in FreeRTOSConfig.h,
* which is set to 15.
/** The maximum task priority, should be less than configMAX_PRIORITIES
* defined in FreeRTOSConfig.h, which is set to 15.
*/
# define U_CFG_OS_PRIORITY_MAX 15
# define U_CFG_OS_PRIORITY_MAX 14
#endif

#ifndef U_CFG_OS_YIELD_MS
Expand Down
6 changes: 3 additions & 3 deletions port/platform/stm32cube/u_cfg_os_platform_specific.h
Expand Up @@ -60,11 +60,11 @@
#endif

#ifndef U_CFG_OS_PRIORITY_MAX
/** The maximum task priority, should be less than or
* equal to configMAX_PRIORITIES defined in FreeRTOSConfig.h.
/** The maximum task priority, should be less than configMAX_PRIORITIES
* defined in FreeRTOSConfig.h.
*/
# ifdef CMSIS_V2
# define U_CFG_OS_PRIORITY_MAX 56
# define U_CFG_OS_PRIORITY_MAX 55
# else
# define U_CFG_OS_PRIORITY_MAX 15
# endif
Expand Down

0 comments on commit 3e11bfd

Please sign in to comment.