PowerBlocks SDK
 
Loading...
Searching...
No Matches
portmacro.h File Reference

FreeRTOS PowerBlocks Port. More...

#include <stdio.h>
#include <stddef.h>
#include <stdbool.h>
#include "powerblocks/core/system/system.h"

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   uint32_t
 
#define portSTACK_GROWTH   ( -1 )
 
#define portTICK_PERIOD_MS   ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
 
#define portBYTE_ALIGNMENT   4
 
#define portPOINTER_SIZE_TYPE   size_t
 
#define portMAX_DELAY   ( TickType_t ) 0xffffU
 
#define configUSE_PORT_OPTIMISED_TASK_SELECTION   1
 
#define portRECORD_READY_PRIORITY(uxPriority, uxReadyPriorities)
 
#define portRESET_READY_PRIORITY(uxPriority, uxReadyPriorities)
 
#define portGET_HIGHEST_PRIORITY(uxTopPriority, uxReadyPriorities)
 
#define portDISABLE_INTERRUPTS()
 
#define portENABLE_INTERRUPTS()
 
#define portCRITICAL_NESTING_IN_TCB   1
 
#define portENTER_CRITICAL   vTaskEnterCritical
 
#define portEXIT_CRITICAL   vTaskExitCritical
 
#define portENTER_CRITICAL_FROM_ISR   vTaskEnterCriticalFromISR
 
#define portEXIT_CRITICAL_FROM_ISR   vTaskExitCriticalFromISR
 
#define portYIELD()
 
#define portTASK_FUNCTION_PROTO(vFunction, pvParameters)
 
#define portTASK_FUNCTION(vFunction, pvParameters)
 

Typedefs

typedef portSTACK_TYPE StackType_t
 
typedef int32_t BaseType_t
 
typedef uint32_t UBaseType_t
 
typedef uint16_t TickType_t
 

Functions

void vPortYield (void)
 

Variables

uint32_t freertos_isr_enabled
 

Detailed Description

FreeRTOS PowerBlocks Port.

FreeRTOS PowerBlocks Port

Author
Samuel Fitzsimons (rainbain)
Date
2025

Macro Definition Documentation

◆ portDISABLE_INTERRUPTS

#define portDISABLE_INTERRUPTS ( )
Value:
do {int ee; SYSTEM_DISABLE_ISR(freertos_isr_enabled);} while( 0 )
#define SYSTEM_DISABLE_ISR(ee_enabled)
Disables interrupts.
Definition system.h:170

◆ portENABLE_INTERRUPTS

#define portENABLE_INTERRUPTS ( )
Value:
do {SYSTEM_ENABLE_ISR(freertos_isr_enabled);} while( 0 )
#define SYSTEM_ENABLE_ISR(ee_enabled)
Enables interrupts if ee_enabled is set.
Definition system.h:186

◆ portGET_HIGHEST_PRIORITY

#define portGET_HIGHEST_PRIORITY ( uxTopPriority,
uxReadyPriorities )
Value:
do { \
uxTopPriority = 0; \
} while( 0 )

◆ portRECORD_READY_PRIORITY

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

◆ portRESET_READY_PRIORITY

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

◆ portTASK_FUNCTION

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

◆ portTASK_FUNCTION_PROTO

#define portTASK_FUNCTION_PROTO ( vFunction,
pvParameters )
Value:
void vFunction( void * pvParameters ) __attribute__( ( noreturn ) )

◆ portYIELD

#define portYIELD ( )
Value:
vPortYield()