Updated
Diff: serial_terminal.hpp
- Revision:
- 0:f3fb124dace1
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/serial_terminal.hpp Sat Jan 05 15:02:46 2019 +0000 @@ -0,0 +1,25 @@ +#ifndef __serial_terminal__ +#define __serial_terminal__ + +#include "mbed.h" +#include "main.h" +#include "sample_hardware.hpp" +#include "Watchdog.h" +#include "SDCard.hpp" +#include "mbed_events.h" +#include <iostream> +#include <string> + + +typedef enum +{ + READ,DELETE,SETDATE,SETTIME,SETT,STATE,LOGGING,ALL,ON,OFF,UNKNOWN +} e_commands; + +extern void serialterm(void); +extern void serial_toutISR(void); +extern void serialISR(); +extern void serialData(); +e_commands stringconv(string in); + +#endif \ No newline at end of file