STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Typedefs | Functions
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 portTICK_TYPE_IS_ATOMIC   1
 
#define portSTACK_GROWTH   ( -1 )
 
#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
 
#define portBYTE_ALIGNMENT   8
 
#define portYIELD()
 
#define portNVIC_INT_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000ed04 ) )
 
#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )
 
#define portEND_SWITCHING_ISR(xSwitchRequired)   if( xSwitchRequired != pdFALSE ) portYIELD()
 
#define portYIELD_FROM_ISR(x)   portEND_SWITCHING_ISR( x )
 
#define portSET_INTERRUPT_MASK_FROM_ISR()   ulPortRaiseBASEPRI()
 
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x)   vPortSetBASEPRI(x)
 
#define portDISABLE_INTERRUPTS()   vPortRaiseBASEPRI()
 
#define portENABLE_INTERRUPTS()   vPortSetBASEPRI(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 configUSE_PORT_OPTIMISED_TASK_SELECTION   1
 
#define portRECORD_READY_PRIORITY(uxPriority, uxReadyPriorities)   ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) )
 
#define portRESET_READY_PRIORITY(uxPriority, uxReadyPriorities)   ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) )
 
#define portGET_HIGHEST_PRIORITY(uxTopPriority, uxReadyPriorities)   uxTopPriority = ( 31 - ucPortCountLeadingZeros( ( uxReadyPriorities ) ) )
 
#define portNOP()
 
#define portFORCE_INLINE   inline __attribute__(( always_inline))
 

Typedefs

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

Functions

void vPortEnterCritical (void)
 
void vPortExitCritical (void)
 
void vPortSuppressTicksAndSleep (TickType_t xExpectedIdleTime)
 
 __attribute__ ((always_inline)) static inline uint8_t ucPortCountLeadingZeros(uint32_t ulBitmap)
 

Macro Definition Documentation

#define configUSE_PORT_OPTIMISED_TASK_SELECTION   1

Definition at line 166 of file portmacro.h.

#define portBASE_TYPE   long

Definition at line 95 of file portmacro.h.

#define portBYTE_ALIGNMENT   8

Definition at line 117 of file portmacro.h.

#define portCHAR   char

Definition at line 89 of file portmacro.h.

#define portCLEAR_INTERRUPT_MASK_FROM_ISR (   x)    vPortSetBASEPRI(x)

Definition at line 142 of file portmacro.h.

#define portDISABLE_INTERRUPTS ( )    vPortRaiseBASEPRI()

Definition at line 143 of file portmacro.h.

#define portDOUBLE   double

Definition at line 91 of file portmacro.h.

#define portENABLE_INTERRUPTS ( )    vPortSetBASEPRI(0)

Definition at line 144 of file portmacro.h.

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

Definition at line 134 of file portmacro.h.

#define portENTER_CRITICAL ( )    vPortEnterCritical()

Definition at line 145 of file portmacro.h.

#define portEXIT_CRITICAL ( )    vPortExitCritical()

Definition at line 146 of file portmacro.h.

#define portFLOAT   float

Definition at line 90 of file portmacro.h.

#define portFORCE_INLINE   inline __attribute__(( always_inline))

Definition at line 206 of file portmacro.h.

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

Definition at line 191 of file portmacro.h.

#define portLONG   long

Definition at line 92 of file portmacro.h.

#define portMAX_DELAY   ( TickType_t ) 0xffffffffUL

Definition at line 106 of file portmacro.h.

#define portNOP ( )

Definition at line 203 of file portmacro.h.

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

Definition at line 132 of file portmacro.h.

#define portNVIC_PENDSVSET_BIT   ( 1UL << 28UL )

Definition at line 133 of file portmacro.h.

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

Definition at line 186 of file portmacro.h.

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

Definition at line 187 of file portmacro.h.

#define portSET_INTERRUPT_MASK_FROM_ISR ( )    ulPortRaiseBASEPRI()

Definition at line 141 of file portmacro.h.

#define portSHORT   short

Definition at line 93 of file portmacro.h.

#define portSTACK_GROWTH   ( -1 )

Definition at line 115 of file portmacro.h.

#define portSTACK_TYPE   uint32_t

Definition at line 94 of file portmacro.h.

#define portSUPPRESS_TICKS_AND_SLEEP (   xExpectedIdleTime)    vPortSuppressTicksAndSleep( xExpectedIdleTime )

Definition at line 160 of file portmacro.h.

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

Definition at line 154 of file portmacro.h.

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

Definition at line 153 of file portmacro.h.

#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )

Definition at line 116 of file portmacro.h.

#define portTICK_TYPE_IS_ATOMIC   1

Definition at line 110 of file portmacro.h.

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

Definition at line 121 of file portmacro.h.

#define portYIELD_FROM_ISR (   x)    portEND_SWITCHING_ISR( x )

Definition at line 135 of file portmacro.h.

Typedef Documentation

typedef long BaseType_t

Definition at line 98 of file portmacro.h.

Definition at line 97 of file portmacro.h.

typedef uint32_t TickType_t

Definition at line 105 of file portmacro.h.

typedef unsigned long UBaseType_t

Definition at line 99 of file portmacro.h.

Function Documentation

__attribute__ ( (always_inline)  )

Definition at line 172 of file portmacro.h.

void vPortEnterCritical ( void  )

Definition at line 391 of file port.c.

void vPortExitCritical ( void  )

Definition at line 408 of file port.c.

void vPortSuppressTicksAndSleep ( TickType_t  xExpectedIdleTime)