Serial Library STE
Dependencies: mbed mbed-rtos MODSERIAL
main.h@0:7077a789f16a, 2020-12-23 (annotated)
- Committer:
- JavierGC
- Date:
- Wed Dec 23 08:54:49 2020 +0000
- Revision:
- 0:7077a789f16a
Serial Library STE
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JavierGC | 0:7077a789f16a | 1 | #ifndef _main_H_ |
JavierGC | 0:7077a789f16a | 2 | #define _main_H_ |
JavierGC | 0:7077a789f16a | 3 | |
JavierGC | 0:7077a789f16a | 4 | #include "mbed.h" |
JavierGC | 0:7077a789f16a | 5 | #include "rtos.h" |
JavierGC | 0:7077a789f16a | 6 | #include "PC.h" |
JavierGC | 0:7077a789f16a | 7 | |
JavierGC | 0:7077a789f16a | 8 | Timer t; // create your timer object |
JavierGC | 0:7077a789f16a | 9 | |
JavierGC | 0:7077a789f16a | 10 | void PCEventHandler(int e, char *data); |
JavierGC | 0:7077a789f16a | 11 | PC pc(LED1, USBTX, USBRX, PCEventHandler); |
JavierGC | 0:7077a789f16a | 12 | |
JavierGC | 0:7077a789f16a | 13 | char CMD[5]; |
JavierGC | 0:7077a789f16a | 14 | char DATO[25]; |
JavierGC | 0:7077a789f16a | 15 | char DATA[25]; |
JavierGC | 0:7077a789f16a | 16 | int E; |
JavierGC | 0:7077a789f16a | 17 | |
JavierGC | 0:7077a789f16a | 18 | void Setup(void); |
JavierGC | 0:7077a789f16a | 19 | void UpdateStatus(void); |
JavierGC | 0:7077a789f16a | 20 | |
JavierGC | 0:7077a789f16a | 21 | extern "C" void mbed_reset(); |
JavierGC | 0:7077a789f16a | 22 | |
JavierGC | 0:7077a789f16a | 23 | #endif /* _main_H_ */ |