SAM4S-EK_FreeRTOS+FAT-SL  1.0
An example project to test the functionality of FreeRTOS+FAT-SL using SD card as data storage medium
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
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   uint32_t
 
#define portBASE_TYPE   long
 
#define portMAX_DELAY   ( TickType_t ) 0xffffffffUL
 
#define portSTACK_GROWTH   ( -1 )
 
#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
 
#define portBYTE_ALIGNMENT   8
 
#define portNVIC_INT_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000ed04 ) )
 
#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )
 
#define portYIELD()   vPortYield()
 
#define portEND_SWITCHING_ISR(xSwitchRequired)   if( xSwitchRequired ) portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT
 
#define portYIELD_FROM_ISR(x)   portEND_SWITCHING_ISR( x )
 
#define portSET_INTERRUPT_MASK_FROM_ISR()   ulPortSetInterruptMask()
 
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x)   vPortClearInterruptMask(x)
 
#define portDISABLE_INTERRUPTS()   ulPortSetInterruptMask()
 
#define portENABLE_INTERRUPTS()   vPortClearInterruptMask(0)
 
#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 portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime)   vPortSuppressTicksAndSleep( xExpectedIdleTime )
 
#define portNOP()
 

Typedefs

typedef portSTACK_TYPE StackType_t
 
typedef long BaseType_t
 
typedef unsigned long UBaseType_t
 
typedef uint32_t TickType_t
 

Functions

void vPortYield (void)
 
void vPortEnterCritical (void)
 
void vPortExitCritical (void)
 
uint32_t ulPortSetInterruptMask (void)
 
void vPortClearInterruptMask (uint32_t ulNewMaskValue)
 
void vPortSuppressTicksAndSleep (TickType_t xExpectedIdleTime)
 

Macro Definition Documentation

#define portBASE_TYPE   long

Definition at line 91 of file portmacro.h.

#define portBYTE_ALIGNMENT   8

Definition at line 109 of file portmacro.h.

#define portCHAR   char

Definition at line 85 of file portmacro.h.

#define portCLEAR_INTERRUPT_MASK_FROM_ISR (   x)    vPortClearInterruptMask(x)

Definition at line 128 of file portmacro.h.

#define portDISABLE_INTERRUPTS ( )    ulPortSetInterruptMask()

Definition at line 129 of file portmacro.h.

#define portDOUBLE   double

Definition at line 87 of file portmacro.h.

#define portENABLE_INTERRUPTS ( )    vPortClearInterruptMask(0)

Definition at line 130 of file portmacro.h.

#define portEND_SWITCHING_ISR (   xSwitchRequired)    if( xSwitchRequired ) portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT

Definition at line 118 of file portmacro.h.

#define portENTER_CRITICAL ( )    vPortEnterCritical()

Definition at line 131 of file portmacro.h.

#define portEXIT_CRITICAL ( )    vPortExitCritical()

Definition at line 132 of file portmacro.h.

#define portFLOAT   float

Definition at line 86 of file portmacro.h.

#define portLONG   long

Definition at line 88 of file portmacro.h.

#define portMAX_DELAY   ( TickType_t ) 0xffffffffUL

Definition at line 102 of file portmacro.h.

#define portNOP ( )

Definition at line 184 of file portmacro.h.

#define portNVIC_INT_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000ed04 ) )

Definition at line 115 of file portmacro.h.

#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )

Definition at line 116 of file portmacro.h.

#define portSET_INTERRUPT_MASK_FROM_ISR ( )    ulPortSetInterruptMask()

Definition at line 127 of file portmacro.h.

#define portSHORT   short

Definition at line 89 of file portmacro.h.

#define portSTACK_GROWTH   ( -1 )

Definition at line 107 of file portmacro.h.

#define portSTACK_TYPE   uint32_t

Definition at line 90 of file portmacro.h.

#define portSUPPRESS_TICKS_AND_SLEEP (   xExpectedIdleTime)    vPortSuppressTicksAndSleep( xExpectedIdleTime )

Definition at line 145 of file portmacro.h.

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

Definition at line 139 of file portmacro.h.

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

Definition at line 138 of file portmacro.h.

#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )

Definition at line 108 of file portmacro.h.

#define portYIELD ( )    vPortYield()

Definition at line 117 of file portmacro.h.

#define portYIELD_FROM_ISR (   x)    portEND_SWITCHING_ISR( x )

Definition at line 119 of file portmacro.h.

Typedef Documentation

typedef long BaseType_t

Definition at line 94 of file portmacro.h.

Definition at line 93 of file portmacro.h.

typedef uint32_t TickType_t

Definition at line 101 of file portmacro.h.

typedef unsigned long UBaseType_t

Definition at line 95 of file portmacro.h.

Function Documentation

uint32_t ulPortSetInterruptMask ( void  )
void vPortClearInterruptMask ( uint32_t  ulNewMaskValue)
void vPortEnterCritical ( void  )

Definition at line 371 of file port.c.

void vPortExitCritical ( void  )

Definition at line 380 of file port.c.

void vPortSuppressTicksAndSleep ( TickType_t  xExpectedIdleTime)
void vPortYield ( void  )

Definition at line 359 of file port.c.