Merge branch 'feature/github-5838' into 'master'

[freertos] Silence sign-conversion warning

See merge request espressif/esp-idf!15404
This commit is contained in:
Zim Kalinowski
2021-10-04 12:08:50 +00:00
2 changed files with 2 additions and 3 deletions

View File

@@ -93,7 +93,6 @@ typedef uint32_t TickType_t;
#define RVHAL_EXCM_LEVEL 4 #define RVHAL_EXCM_LEVEL 4
/* ----------------------------------------------- Port Configurations ------------------------------------------------- /* ----------------------------------------------- Port Configurations -------------------------------------------------
* - Configurations values supplied by each port * - Configurations values supplied by each port
* - Required by FreeRTOS * - Required by FreeRTOS
@@ -377,7 +376,7 @@ void vPortSetStackWatchpoint(void *pxStackStart);
*/ */
static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) static inline BaseType_t IRAM_ATTR xPortGetCoreID(void)
{ {
return cpu_hal_get_core_id(); return (uint32_t) cpu_hal_get_core_id();
} }

View File

@@ -636,7 +636,7 @@ static inline bool IRAM_ATTR xPortCanYield(void)
static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) static inline BaseType_t IRAM_ATTR xPortGetCoreID(void)
{ {
return cpu_hal_get_core_id(); return (uint32_t) cpu_hal_get_core_id();
} }