![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All tasks complete
Dependencies: mbed MCP23017 mbed-rtos WattBob_TextLCD
header.h
- Committer:
- aingks
- Date:
- 2019-03-26
- Revision:
- 4:27340b291c09
- Parent:
- 3:f88d667629e6
- Child:
- 5:f5dda79b93cb
File content as of revision 4:27340b291c09:
#ifndef HEADER_whatever #define HEADER_whatever #include "mbed.h" #include "WattBob_TextLCD.h" #include "rtos.h" #include "MCP23017.h" #define pin_analog_1 p15 #define pin_analog_2 p16 #define pin_digital_1 p17 #define pin_digital_2 p18 #define pin_digital_3 p19 #define pin_digital_4 p20 #define pin_LED1 LED1 #define pin_LED2 LED2 #define pin_LED3 LED3 #define pin_LED4 LED4 #define pin_LED5 p25 #define pin_LED6 p26 //call the functions at the end for the main //STRUCTURE typedef struct { float brakevalue; float accelvalue; float array[5]; float average; float rawspeed; }SDATA; typedef struct { int ENGINESTATE; uint8_t odometer; uint8_t leftind; uint8_t rightind; uint8_t sideind; }CARINFO; typedef struct { float brakevalue; float accelvalue; float odometer; float rawspeed; }SIMU_DATA; //calling all functions void task1readbrake(); void task2readaccel(); void task3enginestate(); void task4average(); void task5brakeLED(); void task6speedmonitor(); void task7displayvalues(); void task8sidelights(); void task9indLED(); void taskXserialdump(); #endif