CSCE 4620 RealTime Operating Systems - PowerPoint PPT Presentation

1 / 44
About This Presentation
Title:

CSCE 4620 RealTime Operating Systems

Description:

... high priority tasks to generate simulated interrupts. On random delays. By resuming the suspended simulated ISRs. Use slightly lower priority tasks to simulate ... – PowerPoint PPT presentation

Number of Views:21
Avg rating:3.0/5.0
Slides: 45
Provided by: dorothy55
Category:

less

Transcript and Presenter's Notes

Title: CSCE 4620 RealTime Operating Systems


1
CSCE 4620 Real-Time Operating Systems
  • Richard Goodrum

2
Chapter 5
  • Time Management

3
Functions Covered
4
(No Transcript)
5
(No Transcript)
6
(No Transcript)
7
Time Related Macros
8
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
(No Transcript)
12
(No Transcript)
13
(No Transcript)
14
Chapter 18
  • PC Services

15
(No Transcript)
16
(No Transcript)
17
(No Transcript)
18
(No Transcript)
19
Display Address Calculation
20
Display Functions
21
(No Transcript)
22
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
27
(No Transcript)
28
(No Transcript)
29
(No Transcript)
30
(No Transcript)
31
(No Transcript)
32
(No Transcript)
33
(No Transcript)
34
(No Transcript)
35
(No Transcript)
36
(No Transcript)
37
(No Transcript)
38
(No Transcript)
39
(No Transcript)
40
Design Example
41
(No Transcript)
42
Traffic Intersection Simulator
  • Without actual sensors,
  • Use high priority tasks to generate simulated
    interrupts
  • On random delays
  • By resuming the suspended simulated ISRs.
  • Use slightly lower priority tasks to simulate
    ISRs.
  • Keep on LONG delays
  • Use even lower priority tasks to test signal
    light control.
  • A portion of traffic in each direction will turn
    left without the benefit of a protecting left
    turn signal.

43
Simulated Interrupts
  • void SimulateInterrupt( void arg )
  • int delay
  • for()
  • delay random( 100 )
  • OSTimeDly( delay )
  • OSTimeDlyResume( arg )

44
Simulated ISR
  • void SimulatedISR( void arg )
  • for()
  • OSTimeDly ( 65535 )
  • OSIntEnter()
  • // Do appropriate ISR operations
  • OSIntExit()
Write a Comment
User Comments (0)
About PowerShow.com