Download EIS-project 2000

Transcript
Luleå University of Technology
Industrial Electronics
EIS-project 2000
1999-05-20
Bluetooth
module
14
Intertaskcommunication
Device driver for
hardware
Bluetooth
task
Real time
clock
Display
task
Display
Button
task
Buttons
RTC
task
Measuring task
Pressure
sensor
Fig. 3.1.1
2.7.2
Valve
Pump
Block-scheme for the device drivers and tasks.
RTXC Adaptation
The code for the device drivers has been written in three stages. The first stage was
to write them in pseudo-code, the next stage was to make them work on the naked
processor and the last stage was to make the code run ontop of the RTXC.
Step 1:
Pseudo code
Step 2:
Convert pseudo-code to low level C-routines
Step 3:
Modify the low-level C-routines allowing them to run
ontop of RTXC