uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
port.c File Reference
#include "FreeRTOS.h"
#include "task.h"

Go to the source code of this file.

Macros

#define portTIMER_PRESCALE   8
 
#define portIE_BIT   ( 0x00000001 )
 
#define portEXL_BIT   ( 0x00000002 )
 
#define portSW0_ENABLE   ( 0x00000100 )
 
#define portINITIAL_SR   ( portIE_BIT | portEXL_BIT | portSW0_ENABLE )
 

Functions

void __attribute__ ((interrupt(ipl1), vector(_TIMER_1_VECTOR)))
 
void prvSetupTimerInterrupt (void)
 
void vPortEndScheduler (void)
 
portBASE_TYPE xPortStartScheduler (void)
 
void vPortIncrementTick (void)
 
unsigned portBASE_TYPE uxPortSetInterruptMaskFromISR (void)
 
void vPortClearInterruptMaskFromISR (unsigned portBASE_TYPE uxSavedStatusRegister)
 

Variables

volatile unsigned portBASE_TYPE uxInterruptNesting = 0x01
 
unsigned portBASE_TYPE uxSavedTaskStackPointer = 0
 
portSTACK_TYPE xISRStack [configISR_STACK_SIZE] = { 0 }
 
const portBASE_TYPE *const xISRStackTop = &( xISRStack[ configISR_STACK_SIZE - 7 ] )
 

Macro Definition Documentation

#define portEXL_BIT   ( 0x00000002 )

Definition at line 67 of file port.c.

#define portIE_BIT   ( 0x00000001 )

Definition at line 66 of file port.c.

#define portINITIAL_SR   ( portIE_BIT | portEXL_BIT | portSW0_ENABLE )

Definition at line 72 of file port.c.

#define portSW0_ENABLE   ( 0x00000100 )

Definition at line 68 of file port.c.

#define portTIMER_PRESCALE   8

Definition at line 63 of file port.c.

Function Documentation

void __attribute__ ( (interrupt(ipl1), vector(_TIMER_1_VECTOR))  )

Definition at line 89 of file port.c.

void prvSetupTimerInterrupt ( void  )

Definition at line 134 of file port.c.

unsigned portBASE_TYPE uxPortSetInterruptMaskFromISR ( void  )

Definition at line 193 of file port.c.

void vPortClearInterruptMaskFromISR ( unsigned portBASE_TYPE  uxSavedStatusRegister)

Definition at line 205 of file port.c.

void vPortEndScheduler ( void  )

Definition at line 143 of file port.c.

void vPortIncrementTick ( void  )

Definition at line 174 of file port.c.

portBASE_TYPE xPortStartScheduler ( void  )

Definition at line 152 of file port.c.

Variable Documentation

volatile unsigned portBASE_TYPE uxInterruptNesting = 0x01

Definition at line 76 of file port.c.

unsigned portBASE_TYPE uxSavedTaskStackPointer = 0

Definition at line 79 of file port.c.

portSTACK_TYPE xISRStack[configISR_STACK_SIZE] = { 0 }

Definition at line 82 of file port.c.

const portBASE_TYPE* const xISRStackTop = &( xISRStack[ configISR_STACK_SIZE - 7 ] )

Definition at line 86 of file port.c.