Skip to content

ZJYC/RealtimeRTOS_BasedOn_KeilC51

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Just for learning not for using


The functions this RTOS supported

  1. task create
  2. task delete
  3. task delay
  4. signal(Include ISR mode)
  5. mutex(Include ISR mode)
  6. message(Include ISR mode)
  7. soft timer
  8. stack check

Step for demonstration

/* init the OS,Include all the Data structure */

OS_Init();

/* create user task */

TaskCreate((OS_CPU_INT) Task_0, Task_0_Stack, Task_0_StackSize, Task_0_Prio);

/* Start the OS */

OS_Start();

As for OS timer

/* The following means : Call TimerTask_1 every 10 ticks */

OS_TIMER_ADD((OS_CPU_INT) TimerTask_1, 10, OS_TIMER_TYPE_PERIOD, 0);

/* the following means:call TimerTask_2 every 10 ticks,only call 4 times */

OS_TIMER_ADD((OS_CPU_INT) TimerTask_2, 10, OS_TIMER_TYPE_nTimes, 4);

About

A smple RTOS base on KEIL-C51

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published