Professional Documents
Culture Documents
Contents
Part 1: Real_time Kernel Concepts Part 2: Kernel Structure Part 3: Interrupt Processing Part 4: Communication Part 5: Initialization & Configuration Part 6: Function Lists and Examples
Multiple Tasks
Task Priority
Static, Dynamic
Semaphores
Why to use?
Access to a shared resource Signal the occurrence of event Allow two tasks to synchronize
Type
Binary Counting
Critical Sections Tasks Task Control Blocks Task Scheduling Lock/ Unlock Changing Priority Delaying a task
Interrupt Service Routine Interrupt Latency, Response and Recovery Clock Tick
Part 4: Communication
Events
Semaphores Message Mailboxes Message Queues
Semaphores
Semaphores
Semaphores
Init&Config
OS_IDLE_TASK_STK_SIZE OS_MAX_TASKS OS_MAX_QS OSInit(), OSStart()
System Functions Lists OSInit OSTimeDly OSIntEnter OSCtxSw OSSched OSTaskCreate OSLock OSSemInit OSMboxInit OSQInit OSTCBGetFree Exapmples
Test 1 Test 2 Run Test1 Run Test2
OSStart OSTimeTick OSIntExit OSIntCtxSw OSChangePrio OSTaskDelete OSUnlock OSSemPost OSMboxPost OSQPost OSTCBPutFree
OSStartHighRdy OSTickISR