From 3e11bfda0ecf5e99e491eeb72a4b45848d5836f5 Mon Sep 17 00:00:00 2001 From: Rob Meades Date: Sun, 21 Apr 2024 23:46:47 +0100 Subject: [PATCH] IMPORTANT FIX FOR STM32Cube/nRF-SDK: correct default max task priority. (#1148) Follow up to the previous commit (2380fe51699407a6fdf526be542abc5d94ff18fa): the same thing applies for STM32Cube and nRF-SDK since they both use FreeRTOS. --- port/platform/nrf5sdk/u_cfg_os_platform_specific.h | 7 +++---- port/platform/stm32cube/u_cfg_os_platform_specific.h | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/port/platform/nrf5sdk/u_cfg_os_platform_specific.h b/port/platform/nrf5sdk/u_cfg_os_platform_specific.h index 8d3e30fd..da523331 100644 --- a/port/platform/nrf5sdk/u_cfg_os_platform_specific.h +++ b/port/platform/nrf5sdk/u_cfg_os_platform_specific.h @@ -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 diff --git a/port/platform/stm32cube/u_cfg_os_platform_specific.h b/port/platform/stm32cube/u_cfg_os_platform_specific.h index 0bce8fc9..714207f7 100644 --- a/port/platform/stm32cube/u_cfg_os_platform_specific.h +++ b/port/platform/stm32cube/u_cfg_os_platform_specific.h @@ -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