From 432f06af583e5ed6d1135f835edb8c7982096c56 Mon Sep 17 00:00:00 2001 From: Vo Trung Chi Date: Sat, 1 Apr 2023 01:22:27 +0700 Subject: [PATCH] fix conversion warning for GCC/ARM_CM4F Signed-off-by: Vo Trung Chi --- portable/GCC/ARM_CM4F/port.c | 2 +- portable/GCC/ARM_CM4F/portmacro.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/portable/GCC/ARM_CM4F/port.c b/portable/GCC/ARM_CM4F/port.c index 84e7913048..919e468176 100755 --- a/portable/GCC/ARM_CM4F/port.c +++ b/portable/GCC/ARM_CM4F/port.c @@ -304,7 +304,7 @@ BaseType_t xPortStartScheduler( void ) #if ( configASSERT_DEFINED == 1 ) { - volatile uint32_t ulOriginalPriority; + volatile uint8_t ulOriginalPriority; volatile uint32_t ulImplementedPrioBits = 0; volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER ); volatile uint8_t ucMaxPriorityValue; diff --git a/portable/GCC/ARM_CM4F/portmacro.h b/portable/GCC/ARM_CM4F/portmacro.h index a3b2b46c98..90100de391 100644 --- a/portable/GCC/ARM_CM4F/portmacro.h +++ b/portable/GCC/ARM_CM4F/portmacro.h @@ -51,7 +51,7 @@ #define portLONG long #define portSHORT short #define portSTACK_TYPE uint32_t - #define portBASE_TYPE long + #define portBASE_TYPE uint32_t typedef portSTACK_TYPE StackType_t; typedef long BaseType_t;