![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Copy_Assignment3
Dependencies: mbed MCP23017 WattBob_TextLCD mbed-rtos
include/my_tasks.h@1:d980a57e422a, 2018-03-28 (annotated)
- Committer:
- aoc2
- Date:
- Wed Mar 28 18:53:05 2018 +0000
- Revision:
- 1:d980a57e422a
- Parent:
- 0:8940db3353d7
Publish
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aoc2 | 0:8940db3353d7 | 1 | #pragma once |
aoc2 | 0:8940db3353d7 | 2 | #ifndef __MY__TASKS_H__ |
aoc2 | 0:8940db3353d7 | 3 | #define __MY__TASKS_H__ |
aoc2 | 0:8940db3353d7 | 4 | |
aoc2 | 0:8940db3353d7 | 5 | #include "mbed.h" |
aoc2 | 0:8940db3353d7 | 6 | #include "rtos.h" |
aoc2 | 0:8940db3353d7 | 7 | |
aoc2 | 0:8940db3353d7 | 8 | // Runs at 10 Hz - Starts TASK 1 and TASK 3 |
aoc2 | 0:8940db3353d7 | 9 | void timer1(void *arg); |
aoc2 | 0:8940db3353d7 | 10 | |
aoc2 | 0:8940db3353d7 | 11 | // Runs at 2 Hz - Starts TASKS 2 - 4 - 6; TASK 5 - 9 & TASK 10 |
aoc2 | 0:8940db3353d7 | 12 | void timer2(void *arg); |
aoc2 | 0:8940db3353d7 | 13 | |
aoc2 | 0:8940db3353d7 | 14 | // Runs at 0.2 Hz - Starts TASK 7 and TASK 8 |
aoc2 | 0:8940db3353d7 | 15 | void timer3(void *arg); |
aoc2 | 0:8940db3353d7 | 16 | |
aoc2 | 0:8940db3353d7 | 17 | // Car Simulator - Runs at 20 Hz |
aoc2 | 0:8940db3353d7 | 18 | void task0_carSim(void *arg); |
aoc2 | 0:8940db3353d7 | 19 | |
aoc2 | 0:8940db3353d7 | 20 | void task1_readAccelBrake(void *arg); |
aoc2 | 0:8940db3353d7 | 21 | |
aoc2 | 0:8940db3353d7 | 22 | void task2_readEngineState(void *arg); |
aoc2 | 0:8940db3353d7 | 23 | |
aoc2 | 0:8940db3353d7 | 24 | void task3_filterSpeed(void *arg); |
aoc2 | 0:8940db3353d7 | 25 | |
aoc2 | 0:8940db3353d7 | 26 | void task4_showUseOfBrake(void *arg); |
aoc2 | 0:8940db3353d7 | 27 | |
aoc2 | 0:8940db3353d7 | 28 | void task5_monitorSpeed(void *arg); |
aoc2 | 0:8940db3353d7 | 29 | |
aoc2 | 0:8940db3353d7 | 30 | void task6_writeLCD(void *arg); |
aoc2 | 0:8940db3353d7 | 31 | |
aoc2 | 0:8940db3353d7 | 32 | void task7_sendToMailQueue(void *arg); |
aoc2 | 0:8940db3353d7 | 33 | |
aoc2 | 0:8940db3353d7 | 34 | void task8_dumpMailQueue(void *arg); |
aoc2 | 0:8940db3353d7 | 35 | |
aoc2 | 0:8940db3353d7 | 36 | void task9_readSideLight(void *arg); |
aoc2 | 0:8940db3353d7 | 37 | |
aoc2 | 0:8940db3353d7 | 38 | void task10_turnIndic(void *arg); |
aoc2 | 0:8940db3353d7 | 39 | |
aoc2 | 0:8940db3353d7 | 40 | #endif /*! __MY__TASKS_H__ */ |