mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-12 00:57:44 -04:00
z180 - add legacy typedef
This commit is contained in:
parent
c9f5e7f23d
commit
fb4c47264e
1 changed files with 11 additions and 13 deletions
24
portable/ThirdParty/Z88DK/Z180/portmacro.h
vendored
24
portable/ThirdParty/Z88DK/Z180/portmacro.h
vendored
|
@ -43,6 +43,11 @@ extern "C" {
|
|||
*/
|
||||
|
||||
/* Type definitions. */
|
||||
#define portCHAR char
|
||||
#define portFLOAT float
|
||||
#define portDOUBLE double
|
||||
#define portLONG long
|
||||
#define portSHORT int
|
||||
|
||||
typedef uint16_t StackType_t;
|
||||
typedef int8_t BaseType_t;
|
||||
|
@ -55,22 +60,12 @@ typedef uint8_t UBaseType_t;
|
|||
typedef uint32_t TickType_t;
|
||||
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* General purpose stringify macros. */
|
||||
|
||||
#define string(a) __string(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. */
|
||||
|
@ -86,7 +81,6 @@ typedef uint8_t UBaseType_t;
|
|||
); \
|
||||
}while(0)
|
||||
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
do{ \
|
||||
asm( \
|
||||
|
@ -241,7 +235,6 @@ typedef uint8_t UBaseType_t;
|
|||
}while(0)
|
||||
|
||||
#endif
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Critical section management using sdcc compiler. */
|
||||
|
@ -257,7 +250,6 @@ typedef uint8_t UBaseType_t;
|
|||
__endasm; \
|
||||
}while(0)
|
||||
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
do{ \
|
||||
__asm \
|
||||
|
@ -412,7 +404,13 @@ typedef uint8_t UBaseType_t;
|
|||
}while(0)
|
||||
|
||||
#endif
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Architecture specifics. */
|
||||
|
||||
#define portSTACK_GROWTH ( -1 )
|
||||
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||
#define portBYTE_ALIGNMENT 1
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Kernel utilities. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue