AVR单片机C语言程序设计实例精粹
源代码在线查看: kernel.h
//******************************************************************************
// File Name : Kernel.h
// Author : Steaven
// Created : 2008-06-09
// Modified :
// Revision : V0.0
//******************************************************************************
//data type defintion(modify if needed)
#define INT8U unsigned char
#define INT8S signed char
#define INT16U unsigned int
#define INT16S signed int
#define INT32U unsigned long
#define INT32S signed long
//macro defintion
#define true 1
#define false 0
//time constant definition
#define cKernel_1S 100
#define cKernel_2S 200
#define cKernel_5S 500
#define cKernel_10S 1000
//constant definiton(modify if needed)
//#define cMaxTask 4
//public function list
INT16U OS_Event_Pend(INT8U bTaskPrio);
INT16U OS_Task_Switch(INT8U bTaskPrio);
void OS_Event_Post(INT8U bTaskPrio,INT16U wTaskEvent);
void OS_Task_Create(INT8U bTaskPrio,INT16U wTimerPeriod);
void OS_Task_Init(INT8U bTaskPrio,INT16U wTimerCount);
void OS_Task_Update(void);
void OS_Init(void);
void OS_Start(void);
//===============================END OF FILE==================================//