diff --git a/components/freertos/port/riscv/include/freertos/portmacro.h b/components/freertos/port/riscv/include/freertos/portmacro.h index edfd862f79..8c09ba7df2 100644 --- a/components/freertos/port/riscv/include/freertos/portmacro.h +++ b/components/freertos/port/riscv/include/freertos/portmacro.h @@ -93,7 +93,6 @@ typedef uint32_t TickType_t; #define RVHAL_EXCM_LEVEL 4 - /* ----------------------------------------------- Port Configurations ------------------------------------------------- * - Configurations values supplied by each port * - Required by FreeRTOS @@ -377,7 +376,7 @@ void vPortSetStackWatchpoint(void *pxStackStart); */ static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) { - return cpu_hal_get_core_id(); + return (uint32_t) cpu_hal_get_core_id(); } diff --git a/components/freertos/port/xtensa/include/freertos/portmacro.h b/components/freertos/port/xtensa/include/freertos/portmacro.h index f1520b70c2..47187379c6 100644 --- a/components/freertos/port/xtensa/include/freertos/portmacro.h +++ b/components/freertos/port/xtensa/include/freertos/portmacro.h @@ -636,7 +636,7 @@ static inline bool IRAM_ATTR xPortCanYield(void) static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) { - return cpu_hal_get_core_id(); + return (uint32_t) cpu_hal_get_core_id(); }