diff --git a/portable/GCC/RISC-V/portmacro.h b/portable/GCC/RISC-V/portmacro.h index a516a2467..f7d2f3ef1 100644 --- a/portable/GCC/RISC-V/portmacro.h +++ b/portable/GCC/RISC-V/portmacro.h @@ -48,13 +48,10 @@ /* Type definitions. */ #if __riscv_xlen == 64 - #define portSTACK_TYPE uint64_t #define portBASE_TYPE int64_t #define portUBASE_TYPE uint64_t #define portMAX_DELAY ( TickType_t ) 0xffffffffffffffffUL - #define portPOINTER_SIZE_TYPE uint64_t #elif __riscv_xlen == 32 - #define portSTACK_TYPE uint32_t #define portBASE_TYPE int32_t #define portUBASE_TYPE uint32_t #define portMAX_DELAY ( TickType_t ) 0xffffffffUL @@ -62,6 +59,9 @@ #error "Assembler did not define __riscv_xlen" #endif /* if __riscv_xlen == 64 */ +#define portPOINTER_SIZE_TYPE intptr_t +#define portSTACK_TYPE uintptr_t + typedef portSTACK_TYPE StackType_t; typedef portBASE_TYPE BaseType_t; typedef portUBASE_TYPE UBaseType_t;