resolve conflicts

This commit is contained in:
Zim Kalinowski
2021-10-04 09:02:12 +08:00
parent d98b3948b8
commit 4b8f96c73f
2 changed files with 4 additions and 6 deletions

View File

@@ -89,10 +89,8 @@ typedef uint32_t TickType_t;
#define portTASK_FUNCTION_PROTO(vFunction, pvParameters) void vFunction(void *pvParameters) #define portTASK_FUNCTION_PROTO(vFunction, pvParameters) void vFunction(void *pvParameters)
#define portTASK_FUNCTION(vFunction, pvParameters) void vFunction(void *pvParameters) #define portTASK_FUNCTION(vFunction, pvParameters) void vFunction(void *pvParameters)
static inline BaseType_t IRAM_ATTR xPortGetCoreID(void) { // interrupt module will mask interrupt with priority less than threshold
return (uint32_t) cpu_hal_get_core_id(); #define RVHAL_EXCM_LEVEL 4
}
/* ----------------------------------------------- Port Configurations ------------------------------------------------- /* ----------------------------------------------- Port Configurations -------------------------------------------------
@@ -378,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();
} }