uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
portmacro.h File Reference

Go to the source code of this file.

Macros

#define portCHAR   char
 
#define portFLOAT   float
 
#define portDOUBLE   double
 
#define portLONG   long
 
#define portSHORT   short
 
#define portSTACK_TYPE   unsigned portLONG
 
#define portBASE_TYPE   long
 
#define portMAX_DELAY   ( portTickType ) 0xffffffff
 
#define portSTACK_GROWTH   ( -1 )
 
#define portTICK_RATE_MS   ( ( portTickType ) 1000 / configTICK_RATE_HZ )
 
#define portBYTE_ALIGNMENT   8
 
#define portYIELD()   vPortYieldFromISR()
 
#define portEND_SWITCHING_ISR(xSwitchRequired)   if( xSwitchRequired ) vPortYieldFromISR()
 
#define portSET_INTERRUPT_MASK()
 
#define portCLEAR_INTERRUPT_MASK()
 
#define portSET_INTERRUPT_MASK_FROM_ISR()   0;portSET_INTERRUPT_MASK()
 
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x)   portCLEAR_INTERRUPT_MASK();(void)x
 
#define portDISABLE_INTERRUPTS()   portSET_INTERRUPT_MASK()
 
#define portENABLE_INTERRUPTS()   portCLEAR_INTERRUPT_MASK()
 
#define portENTER_CRITICAL()   vPortEnterCritical()
 
#define portEXIT_CRITICAL()   vPortExitCritical()
 
#define portTASK_FUNCTION_PROTO(vFunction, pvParameters)   void vFunction( void *pvParameters )
 
#define portTASK_FUNCTION(vFunction, pvParameters)   void vFunction( void *pvParameters )
 
#define portNOP()
 

Typedefs

typedef unsigned portLONG portTickType
 

Functions

void vPortYieldFromISR (void)
 
void vPortEnterCritical (void)
 
void vPortExitCritical (void)
 

Macro Definition Documentation

#define portBASE_TYPE   long

Definition at line 79 of file portmacro.h.

#define portBYTE_ALIGNMENT   8

Definition at line 93 of file portmacro.h.

#define portCHAR   char

Definition at line 73 of file portmacro.h.

#define portCLEAR_INTERRUPT_MASK ( )
Value:
__asm volatile \
( \
" mov r0, #0 \n" \
" msr basepri, r0 \n" \
:::"r0" \
)

Definition at line 124 of file portmacro.h.

#define portCLEAR_INTERRUPT_MASK_FROM_ISR (   x)    portCLEAR_INTERRUPT_MASK();(void)x

Definition at line 133 of file portmacro.h.

#define portDISABLE_INTERRUPTS ( )    portSET_INTERRUPT_MASK()

Definition at line 139 of file portmacro.h.

#define portDOUBLE   double

Definition at line 75 of file portmacro.h.

#define portENABLE_INTERRUPTS ( )    portCLEAR_INTERRUPT_MASK()

Definition at line 140 of file portmacro.h.

#define portEND_SWITCHING_ISR (   xSwitchRequired)    if( xSwitchRequired ) vPortYieldFromISR()

Definition at line 102 of file portmacro.h.

#define portENTER_CRITICAL ( )    vPortEnterCritical()

Definition at line 141 of file portmacro.h.

#define portEXIT_CRITICAL ( )    vPortExitCritical()

Definition at line 142 of file portmacro.h.

#define portFLOAT   float

Definition at line 74 of file portmacro.h.

#define portLONG   long

Definition at line 76 of file portmacro.h.

#define portMAX_DELAY   ( portTickType ) 0xffffffff

Definition at line 86 of file portmacro.h.

#define portNOP ( )

Definition at line 149 of file portmacro.h.

#define portSET_INTERRUPT_MASK ( )
Value:
__asm volatile \
( \
" mov r0, %0 \n" \
" msr basepri, r0 \n" \
)

Definition at line 112 of file portmacro.h.

#define portSET_INTERRUPT_MASK_FROM_ISR ( )    0;portSET_INTERRUPT_MASK()

Definition at line 132 of file portmacro.h.

#define portSHORT   short

Definition at line 77 of file portmacro.h.

#define portSTACK_GROWTH   ( -1 )

Definition at line 91 of file portmacro.h.

#define portSTACK_TYPE   unsigned portLONG

Definition at line 78 of file portmacro.h.

#define portTASK_FUNCTION (   vFunction,
  pvParameters 
)    void vFunction( void *pvParameters )

Definition at line 147 of file portmacro.h.

#define portTASK_FUNCTION_PROTO (   vFunction,
  pvParameters 
)    void vFunction( void *pvParameters )

Definition at line 146 of file portmacro.h.

#define portTICK_RATE_MS   ( ( portTickType ) 1000 / configTICK_RATE_HZ )

Definition at line 92 of file portmacro.h.

#define portYIELD ( )    vPortYieldFromISR()

Definition at line 100 of file portmacro.h.

Typedef Documentation

typedef unsigned portLONG portTickType

Definition at line 85 of file portmacro.h.

Function Documentation

void vPortEnterCritical ( void  )

Definition at line 203 of file port.c.

void vPortExitCritical ( void  )

Definition at line 210 of file port.c.

void vPortYieldFromISR ( void  )

Definition at line 196 of file port.c.