tinyOS  v1.00
tSwitch.c File Reference
#include "tinyOS.h"
#include "stm32f10x.h"
Include dependency graph for tSwitch.c:

Go to the source code of this file.

Macros

#define NVIC_INT_CTRL   0xE000ED04
 
#define NVIC_PENDSVSET   0x10000000
 
#define NVIC_SYSPRI2   0xE000ED22
 
#define NVIC_PENDSV_PRI   0x000000FF
 
#define MEM32(addr)   *(volatile unsigned long *)(addr)
 
#define MEM8(addr)   *(volatile unsigned char *)(addr)
 

Functions

tTaskCritical_t tTaskEnterCritical (void)
 
void tTaskExitCritical (tTaskCritical_t status)
 
__asm void PendSV_Handler (void)
 
uint32_t saveAndLoadStackAddr (uint32_t stackAddr)
 
void tTaskRunFirst (void)
 
void tTaskSwitch (void)