Macros | Typedefs | Functions
portmacro.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define configUSE_PORT_OPTIMISED_TASK_SELECTION   1
 
#define portBASE_TYPE   long
 
#define portBYTE_ALIGNMENT   8
 
#define portCHAR   char
 
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x)   vPortSetBASEPRI(x)
 
#define portDISABLE_INTERRUPTS()   vPortRaiseBASEPRI()
 
#define portDOUBLE   double
 
#define portENABLE_INTERRUPTS()   vPortSetBASEPRI(0)
 
#define portEND_SWITCHING_ISR(xSwitchRequired)   if( xSwitchRequired != pdFALSE ) portYIELD()
 
#define portENTER_CRITICAL()   vPortEnterCritical()
 
#define portEXIT_CRITICAL()   vPortExitCritical()
 
#define portFLOAT   float
 
#define portFORCE_INLINE   inline __attribute__(( always_inline))
 
#define portGET_HIGHEST_PRIORITY(uxTopPriority, uxReadyPriorities)   uxTopPriority = ( 31UL - ( uint32_t ) ucPortCountLeadingZeros( ( uxReadyPriorities ) ) )
 
#define portINLINE   __inline
 
#define portLONG   long
 
#define portMAX_DELAY   ( TickType_t ) 0xffffffffUL
 
#define portNOP()
 
#define portNVIC_INT_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000ed04 ) )
 
#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )
 
#define portRECORD_READY_PRIORITY(uxPriority, uxReadyPriorities)   ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) )
 
#define portRESET_READY_PRIORITY(uxPriority, uxReadyPriorities)   ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) )
 
#define portSET_INTERRUPT_MASK_FROM_ISR()   ulPortRaiseBASEPRI()
 
#define portSHORT   short
 
#define portSTACK_GROWTH   ( -1 )
 
#define portSTACK_TYPE   uint32_t
 
#define portSUPPRESS_TICKS_AND_SLEEP(xExpectedIdleTime)   vPortSuppressTicksAndSleep( xExpectedIdleTime )
 
#define portTASK_FUNCTION(vFunction, pvParameters)   void vFunction( void *pvParameters )
 
#define portTASK_FUNCTION_PROTO(vFunction, pvParameters)   void vFunction( void *pvParameters )
 
#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
 
#define portTICK_TYPE_IS_ATOMIC   1
 
#define portYIELD()
 
#define portYIELD_FROM_ISR(x)   portEND_SWITCHING_ISR( x )
 

Typedefs

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

Functions

 __attribute__ ((always_inline)) static inline uint8_t ucPortCountLeadingZeros(uint32_t ulBitmap)
 
static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI (void)
 
void vPortEnterCritical (void)
 
void vPortExitCritical (void)
 
static portFORCE_INLINE void vPortRaiseBASEPRI (void)
 
static portFORCE_INLINE void vPortSetBASEPRI (uint32_t ulNewMaskValue)
 
void vPortSuppressTicksAndSleep (TickType_t xExpectedIdleTime)
 
static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt (void)
 

Macro Definition Documentation

◆ configUSE_PORT_OPTIMISED_TASK_SELECTION

#define configUSE_PORT_OPTIMISED_TASK_SELECTION   1

Definition at line 125 of file portmacro.h.

◆ portBASE_TYPE

#define portBASE_TYPE   long

Definition at line 54 of file portmacro.h.

◆ portBYTE_ALIGNMENT

#define portBYTE_ALIGNMENT   8

Definition at line 76 of file portmacro.h.

◆ portCHAR

#define portCHAR   char

Definition at line 48 of file portmacro.h.

◆ portCLEAR_INTERRUPT_MASK_FROM_ISR

#define portCLEAR_INTERRUPT_MASK_FROM_ISR (   x)    vPortSetBASEPRI(x)

Definition at line 101 of file portmacro.h.

◆ portDISABLE_INTERRUPTS

#define portDISABLE_INTERRUPTS ( )    vPortRaiseBASEPRI()

Definition at line 102 of file portmacro.h.

◆ portDOUBLE

#define portDOUBLE   double

Definition at line 50 of file portmacro.h.

◆ portENABLE_INTERRUPTS

#define portENABLE_INTERRUPTS ( )    vPortSetBASEPRI(0)

Definition at line 103 of file portmacro.h.

◆ portEND_SWITCHING_ISR

#define portEND_SWITCHING_ISR (   xSwitchRequired)    if( xSwitchRequired != pdFALSE ) portYIELD()

Definition at line 93 of file portmacro.h.

◆ portENTER_CRITICAL

#define portENTER_CRITICAL ( )    vPortEnterCritical()

Definition at line 104 of file portmacro.h.

◆ portEXIT_CRITICAL

#define portEXIT_CRITICAL ( )    vPortExitCritical()

Definition at line 105 of file portmacro.h.

◆ portFLOAT

#define portFLOAT   float

Definition at line 49 of file portmacro.h.

◆ portFORCE_INLINE

#define portFORCE_INLINE   inline __attribute__(( always_inline))

Definition at line 167 of file portmacro.h.

◆ portGET_HIGHEST_PRIORITY

#define portGET_HIGHEST_PRIORITY (   uxTopPriority,
  uxReadyPriorities 
)    uxTopPriority = ( 31UL - ( uint32_t ) ucPortCountLeadingZeros( ( uxReadyPriorities ) ) )

Definition at line 150 of file portmacro.h.

◆ portINLINE

#define portINLINE   __inline

Definition at line 164 of file portmacro.h.

◆ portLONG

#define portLONG   long

Definition at line 51 of file portmacro.h.

◆ portMAX_DELAY

#define portMAX_DELAY   ( TickType_t ) 0xffffffffUL

Definition at line 65 of file portmacro.h.

◆ portNOP

#define portNOP ( )

Definition at line 162 of file portmacro.h.

◆ portNVIC_INT_CTRL_REG

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

Definition at line 91 of file portmacro.h.

◆ portNVIC_PENDSVSET_BIT

#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )

Definition at line 92 of file portmacro.h.

◆ portRECORD_READY_PRIORITY

#define portRECORD_READY_PRIORITY (   uxPriority,
  uxReadyPriorities 
)    ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) )

Definition at line 145 of file portmacro.h.

◆ portRESET_READY_PRIORITY

#define portRESET_READY_PRIORITY (   uxPriority,
  uxReadyPriorities 
)    ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) )

Definition at line 146 of file portmacro.h.

◆ portSET_INTERRUPT_MASK_FROM_ISR

#define portSET_INTERRUPT_MASK_FROM_ISR ( )    ulPortRaiseBASEPRI()

Definition at line 100 of file portmacro.h.

◆ portSHORT

#define portSHORT   short

Definition at line 52 of file portmacro.h.

◆ portSTACK_GROWTH

#define portSTACK_GROWTH   ( -1 )

Definition at line 74 of file portmacro.h.

◆ portSTACK_TYPE

#define portSTACK_TYPE   uint32_t

Definition at line 53 of file portmacro.h.

◆ portSUPPRESS_TICKS_AND_SLEEP

#define portSUPPRESS_TICKS_AND_SLEEP (   xExpectedIdleTime)    vPortSuppressTicksAndSleep( xExpectedIdleTime )

Definition at line 119 of file portmacro.h.

◆ portTASK_FUNCTION

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

Definition at line 113 of file portmacro.h.

◆ portTASK_FUNCTION_PROTO

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

Definition at line 112 of file portmacro.h.

◆ portTICK_PERIOD_MS

#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )

Definition at line 75 of file portmacro.h.

◆ portTICK_TYPE_IS_ATOMIC

#define portTICK_TYPE_IS_ATOMIC   1

Definition at line 69 of file portmacro.h.

◆ portYIELD

#define portYIELD ( )
Value:
{ \
/* Set a PendSV to request a context switch. */ \
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; \
\
/* Barriers are normally not required but do ensure the code is completely \
within the specified behaviour for the architecture. */ \
__asm volatile( "dsb" ::: "memory" ); \
__asm volatile( "isb" ); \
}
#define portNVIC_PENDSVSET_BIT
Definition: portmacro.h:92

Definition at line 80 of file portmacro.h.

◆ portYIELD_FROM_ISR

#define portYIELD_FROM_ISR (   x)    portEND_SWITCHING_ISR( x )

Definition at line 94 of file portmacro.h.

Typedef Documentation

◆ BaseType_t

typedef long BaseType_t

Definition at line 57 of file portmacro.h.

◆ StackType_t

Definition at line 56 of file portmacro.h.

◆ TickType_t

typedef uint32_t TickType_t

Definition at line 64 of file portmacro.h.

◆ UBaseType_t

typedef unsigned long UBaseType_t

Definition at line 58 of file portmacro.h.

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline)  )

Definition at line 131 of file portmacro.h.

◆ ulPortRaiseBASEPRI()

static portFORCE_INLINE uint32_t ulPortRaiseBASEPRI ( void  )
static

Definition at line 210 of file portmacro.h.

◆ vPortEnterCritical()

void vPortEnterCritical ( void  )

Definition at line 392 of file port.c.

◆ vPortExitCritical()

void vPortExitCritical ( void  )

Definition at line 409 of file port.c.

◆ vPortRaiseBASEPRI()

static portFORCE_INLINE void vPortRaiseBASEPRI ( void  )
static

Definition at line 192 of file portmacro.h.

◆ vPortSetBASEPRI()

static portFORCE_INLINE void vPortSetBASEPRI ( uint32_t  ulNewMaskValue)
static

Definition at line 232 of file portmacro.h.

◆ vPortSuppressTicksAndSleep()

void vPortSuppressTicksAndSleep ( TickType_t  xExpectedIdleTime)

◆ xPortIsInsideInterrupt()

static portFORCE_INLINE BaseType_t xPortIsInsideInterrupt ( void  )
static

Definition at line 170 of file portmacro.h.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:59