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
port.c File Reference
#include "FreeRTOS.h"
#include "task.h"

Go to the source code of this file.

Macros

#define configKERNEL_INTERRUPT_PRIORITY   255
 
#define configSYSTICK_CLOCK_HZ   configCPU_CLOCK_HZ
 
#define portNVIC_SYSTICK_CLK_BIT   ( 1UL << 2UL )
 
#define portNVIC_SYSTICK_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000e010 ) )
 
#define portNVIC_SYSTICK_LOAD_REG   ( * ( ( volatile uint32_t * ) 0xe000e014 ) )
 
#define portNVIC_SYSTICK_CURRENT_VALUE_REG   ( * ( ( volatile uint32_t * ) 0xe000e018 ) )
 
#define portNVIC_SYSPRI2_REG   ( * ( ( volatile uint32_t * ) 0xe000ed20 ) )
 
#define portNVIC_SYSTICK_INT_BIT   ( 1UL << 1UL )
 
#define portNVIC_SYSTICK_ENABLE_BIT   ( 1UL << 0UL )
 
#define portNVIC_SYSTICK_COUNT_FLAG_BIT   ( 1UL << 16UL )
 
#define portNVIC_PENDSVCLEAR_BIT   ( 1UL << 27UL )
 
#define portNVIC_PEND_SYSTICK_CLEAR_BIT   ( 1UL << 25UL )
 
#define portNVIC_PENDSV_PRI   ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL )
 
#define portNVIC_SYSTICK_PRI   ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL )
 
#define portFIRST_USER_INTERRUPT_NUMBER   ( 16 )
 
#define portNVIC_IP_REGISTERS_OFFSET_16   ( 0xE000E3F0 )
 
#define portAIRCR_REG   ( * ( ( volatile uint32_t * ) 0xE000ED0C ) )
 
#define portMAX_8_BIT_VALUE   ( ( uint8_t ) 0xff )
 
#define portTOP_BIT_OF_BYTE   ( ( uint8_t ) 0x80 )
 
#define portMAX_PRIGROUP_BITS   ( ( uint8_t ) 7 )
 
#define portPRIORITY_GROUP_MASK   ( 0x07UL << 8UL )
 
#define portPRIGROUP_SHIFT   ( 8UL )
 
#define portINITIAL_XPSR   ( 0x01000000UL )
 
#define portMAX_24_BIT_NUMBER   ( 0xffffffUL )
 
#define portMISSED_COUNTS_FACTOR   ( 45UL )
 
#define portTASK_RETURN_ADDRESS   prvTaskExitError
 

Functions

void vPortSetupTimerInterrupt (void)
 
void xPortPendSVHandler (void xPortSysTickHandler void)
 
void vPortSVCHandler (void)
 
BaseType_t xPortStartScheduler (void)
 
void vPortEndScheduler (void)
 
void vPortYield (void)
 
void vPortEnterCritical (void)
 
void vPortExitCritical (void)
 
 __attribute__ ((naked))
 
void xPortPendSVHandler (void)
 
void xPortSysTickHandler (void)
 
 __attribute__ ((weak))
 

Macro Definition Documentation

#define configKERNEL_INTERRUPT_PRIORITY   255

Definition at line 78 of file port.c.

#define configSYSTICK_CLOCK_HZ   configCPU_CLOCK_HZ

Definition at line 82 of file port.c.

#define portAIRCR_REG   ( * ( ( volatile uint32_t * ) 0xE000ED0C ) )

Definition at line 109 of file port.c.

#define portFIRST_USER_INTERRUPT_NUMBER   ( 16 )

Definition at line 107 of file port.c.

#define portINITIAL_XPSR   ( 0x01000000UL )

Definition at line 117 of file port.c.

#define portMAX_24_BIT_NUMBER   ( 0xffffffUL )

Definition at line 120 of file port.c.

#define portMAX_8_BIT_VALUE   ( ( uint8_t ) 0xff )

Definition at line 110 of file port.c.

#define portMAX_PRIGROUP_BITS   ( ( uint8_t ) 7 )

Definition at line 112 of file port.c.

#define portMISSED_COUNTS_FACTOR   ( 45UL )

Definition at line 125 of file port.c.

#define portNVIC_IP_REGISTERS_OFFSET_16   ( 0xE000E3F0 )

Definition at line 108 of file port.c.

#define portNVIC_PEND_SYSTICK_CLEAR_BIT   ( 1UL << 25UL )

Definition at line 101 of file port.c.

#define portNVIC_PENDSV_PRI   ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL )

Definition at line 103 of file port.c.

#define portNVIC_PENDSVCLEAR_BIT   ( 1UL << 27UL )

Definition at line 100 of file port.c.

#define portNVIC_SYSPRI2_REG   ( * ( ( volatile uint32_t * ) 0xe000ed20 ) )

Definition at line 95 of file port.c.

#define portNVIC_SYSTICK_CLK_BIT   ( 1UL << 2UL )

Definition at line 84 of file port.c.

#define portNVIC_SYSTICK_COUNT_FLAG_BIT   ( 1UL << 16UL )

Definition at line 99 of file port.c.

#define portNVIC_SYSTICK_CTRL_REG   ( * ( ( volatile uint32_t * ) 0xe000e010 ) )

Definition at line 92 of file port.c.

#define portNVIC_SYSTICK_CURRENT_VALUE_REG   ( * ( ( volatile uint32_t * ) 0xe000e018 ) )

Definition at line 94 of file port.c.

#define portNVIC_SYSTICK_ENABLE_BIT   ( 1UL << 0UL )

Definition at line 98 of file port.c.

#define portNVIC_SYSTICK_INT_BIT   ( 1UL << 1UL )

Definition at line 97 of file port.c.

#define portNVIC_SYSTICK_LOAD_REG   ( * ( ( volatile uint32_t * ) 0xe000e014 ) )

Definition at line 93 of file port.c.

#define portNVIC_SYSTICK_PRI   ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL )

Definition at line 104 of file port.c.

#define portPRIGROUP_SHIFT   ( 8UL )

Definition at line 114 of file port.c.

#define portPRIORITY_GROUP_MASK   ( 0x07UL << 8UL )

Definition at line 113 of file port.c.

#define portTASK_RETURN_ADDRESS   prvTaskExitError

Definition at line 133 of file port.c.

#define portTOP_BIT_OF_BYTE   ( ( uint8_t ) 0x80 )

Definition at line 111 of file port.c.

Function Documentation

__attribute__ ( (naked)  )

Definition at line 391 of file port.c.

__attribute__ ( (weak)  )

Definition at line 635 of file port.c.

void vPortEndScheduler ( void  )

Definition at line 351 of file port.c.

void vPortEnterCritical ( void  )

Definition at line 371 of file port.c.

void vPortExitCritical ( void  )

Definition at line 380 of file port.c.

void vPortSetupTimerInterrupt ( void  )
void vPortSVCHandler ( void  )

Definition at line 237 of file port.c.

void vPortYield ( void  )

Definition at line 359 of file port.c.

void xPortPendSVHandler ( void xPortSysTickHandler  void)

Definition at line 150 of file port.c.

void xPortPendSVHandler ( void  )

Definition at line 422 of file port.c.

BaseType_t xPortStartScheduler ( void  )

Definition at line 276 of file port.c.

void xPortSysTickHandler ( void  )

Definition at line 459 of file port.c.