mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-20 10:08:33 -04:00
Revert Portable/Softune Formatting (#886)
* Revert formatting on Softune ports * Fix spelling mistakes --------- Co-authored-by: Rahul Kar <118818625+kar-rahul-aws@users.noreply.github.com> Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
This commit is contained in:
parent
96cdeaa725
commit
92365c9784
6 changed files with 326 additions and 336 deletions
|
@ -34,11 +34,11 @@
|
|||
#include <stddef.h>
|
||||
|
||||
/* Constants denoting the available memory models. These are used within
|
||||
* FreeRTOSConfig.h to set the configMEMMODEL value. */
|
||||
#define portSMALL 0
|
||||
#define portMEDIUM 1
|
||||
#define portCOMPACT 2
|
||||
#define portLARGE 3
|
||||
FreeRTOSConfig.h to set the configMEMMODEL value. */
|
||||
#define portSMALL 0
|
||||
#define portMEDIUM 1
|
||||
#define portCOMPACT 2
|
||||
#define portLARGE 3
|
||||
|
||||
|
||||
/*-----------------------------------------------------------
|
||||
|
@ -52,24 +52,24 @@
|
|||
*/
|
||||
|
||||
/* Type definitions. */
|
||||
#define portCHAR char
|
||||
#define portFLOAT float
|
||||
#define portDOUBLE double
|
||||
#define portLONG long
|
||||
#define portSHORT short
|
||||
#define portSTACK_TYPE uint16_t
|
||||
#define portBASE_TYPE short
|
||||
#define portCHAR char
|
||||
#define portFLOAT float
|
||||
#define portDOUBLE double
|
||||
#define portLONG long
|
||||
#define portSHORT short
|
||||
#define portSTACK_TYPE uint16_t
|
||||
#define portBASE_TYPE short
|
||||
|
||||
typedef portSTACK_TYPE StackType_t;
|
||||
typedef short BaseType_t;
|
||||
typedef unsigned short UBaseType_t;
|
||||
typedef portSTACK_TYPE StackType_t;
|
||||
typedef short BaseType_t;
|
||||
typedef unsigned short UBaseType_t;
|
||||
|
||||
|
||||
#if ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS )
|
||||
typedef uint16_t TickType_t;
|
||||
#define portMAX_DELAY ( TickType_t ) 0xffff
|
||||
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_32_BITS )
|
||||
typedef uint32_t TickType_t;
|
||||
#if( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_16_BITS )
|
||||
typedef uint16_t TickType_t;
|
||||
#define portMAX_DELAY ( TickType_t ) 0xffff
|
||||
#elif ( configTICK_TYPE_WIDTH_IN_BITS == TICK_TYPE_WIDTH_32_BITS )
|
||||
typedef uint32_t TickType_t;
|
||||
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
|
||||
#else
|
||||
#error configTICK_TYPE_WIDTH_IN_BITS set to unsupported tick type width.
|
||||
|
@ -80,39 +80,39 @@ typedef unsigned short UBaseType_t;
|
|||
#if configKERNEL_INTERRUPT_PRIORITY != 6
|
||||
#error configKERNEL_INTERRUPT_PRIORITY (set in FreeRTOSConfig.h) must match the ILM value set in the following line - #06H being the default.
|
||||
#endif
|
||||
#define portDISABLE_INTERRUPTS() __asm( " MOV ILM, #06h " )
|
||||
#define portENABLE_INTERRUPTS() __asm( " MOV ILM, #07h " )
|
||||
#define portDISABLE_INTERRUPTS() __asm(" MOV ILM, #06h ")
|
||||
#define portENABLE_INTERRUPTS() __asm(" MOV ILM, #07h ")
|
||||
|
||||
#define portENTER_CRITICAL() \
|
||||
{ __asm( " PUSHW PS " ); \
|
||||
portDISABLE_INTERRUPTS(); \
|
||||
}
|
||||
#define portENTER_CRITICAL() \
|
||||
{ __asm(" PUSHW PS "); \
|
||||
portDISABLE_INTERRUPTS(); \
|
||||
}
|
||||
|
||||
#define portEXIT_CRITICAL() \
|
||||
{ __asm( " POPW PS " ); \
|
||||
}
|
||||
#define portEXIT_CRITICAL() \
|
||||
{ __asm(" POPW PS "); \
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Architecture specifics. */
|
||||
#define portSTACK_GROWTH ( -1 )
|
||||
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||
#define portBYTE_ALIGNMENT 2
|
||||
#define portNOP() __asm( " NOP " );
|
||||
#define portSTACK_GROWTH ( -1 )
|
||||
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
||||
#define portBYTE_ALIGNMENT 2
|
||||
#define portNOP() __asm( " NOP " );
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* portYIELD() uses SW interrupt */
|
||||
#define portYIELD() __asm( " INT #122 " );
|
||||
#define portYIELD() __asm( " INT #122 " );
|
||||
|
||||
/* portYIELD_FROM_ISR() uses delayed interrupt */
|
||||
#define portYIELD_FROM_ISR() __asm( " SETB 03A4H:0 " );
|
||||
#define portYIELD_FROM_ISR() __asm( " SETB 03A4H:0 " );
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
/* Task function macros as described on the FreeRTOS.org WEB site. */
|
||||
#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void * pvParameters )
|
||||
#define portTASK_FUNCTION( 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 portMINIMAL_STACK_SIZE configMINIMAL_STACK_SIZE
|
||||
#define portMINIMAL_STACK_SIZE configMINIMAL_STACK_SIZE
|
||||
|
||||
|
||||
#endif /* PORTMACRO_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue