z180 - add legacy typedef

This commit is contained in:
Phillip Stevens 2020-04-21 16:27:13 +10:00
parent c9f5e7f23d
commit fb4c47264e

View file

@ -43,6 +43,11 @@ extern "C" {
*/ */
/* Type definitions. */ /* Type definitions. */
#define portCHAR char
#define portFLOAT float
#define portDOUBLE double
#define portLONG long
#define portSHORT int
typedef uint16_t StackType_t; typedef uint16_t StackType_t;
typedef int8_t BaseType_t; typedef int8_t BaseType_t;
@ -55,22 +60,12 @@ typedef uint8_t UBaseType_t;
typedef uint32_t TickType_t; typedef uint32_t TickType_t;
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL #define portMAX_DELAY ( TickType_t ) 0xffffffffUL
#endif #endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* General purpose stringify macros. */ /* General purpose stringify macros. */
#define string(a) __string(a) #define string(a) __string(a)
#define __string(a) #a #define __string(a) #a
/*-----------------------------------------------------------*/
/* Architecture specifics. */
#define portSTACK_GROWTH ( -1 )
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT 1
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Critical section management using sccz80 compiler. */ /* Critical section management using sccz80 compiler. */
@ -86,7 +81,6 @@ typedef uint8_t UBaseType_t;
); \ ); \
}while(0) }while(0)
#define portEXIT_CRITICAL() \ #define portEXIT_CRITICAL() \
do{ \ do{ \
asm( \ asm( \
@ -241,7 +235,6 @@ typedef uint8_t UBaseType_t;
}while(0) }while(0)
#endif #endif
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Critical section management using sdcc compiler. */ /* Critical section management using sdcc compiler. */
@ -257,7 +250,6 @@ typedef uint8_t UBaseType_t;
__endasm; \ __endasm; \
}while(0) }while(0)
#define portEXIT_CRITICAL() \ #define portEXIT_CRITICAL() \
do{ \ do{ \
__asm \ __asm \
@ -412,7 +404,13 @@ typedef uint8_t UBaseType_t;
}while(0) }while(0)
#endif #endif
/*-----------------------------------------------------------*/
/* Architecture specifics. */
#define portSTACK_GROWTH ( -1 )
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
#define portBYTE_ALIGNMENT 1
/*-----------------------------------------------------------*/ /*-----------------------------------------------------------*/
/* Kernel utilities. */ /* Kernel utilities. */