Lecture: | 35 |
Objective: | Fairy Tale RTOS
|
Fairy Tale RTOS
Operations:
- main: InitializeMultitasking(numTasks, numEvents);
- main: CreateTask(taskName, priority);
- main: CreateEvent(semaphoreName,initialValue);
- main: StartMultitasking();
- task: WaitForEvent(semaphoreName);
- task: SignalEvent(semaphoreName,value);
- task: Delay(millDelay);
Key:
- Ellipse = task
- Blue text = semaphore
- Red text = sharable variable
- Rectangle = ISR
Fairy Tale RTOS code