Keisuke Sehara
/
STM32_Whisking
fast-feedback virtual target task code on STM Nucleo
Diff: core/IO.h
- Revision:
- 26:b4421d1ee57a
- Parent:
- 2:0c241937eabd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/IO.h Thu Jul 05 20:15:37 2018 +0000 @@ -0,0 +1,28 @@ +#ifndef IO_H_ +#define IO_H_ + +#include "mbed.h" +#define LOGGER_BAUDRATE 9600 + +#define STR_DELIMITER ";" +#define STR_NEWLINE "\r\n" + +namespace IO { + + const char CONFIG_HEADER = '@'; + const char INFO_HEADER = '>'; + const char RESULT_HEADER = '+'; + const char ERROR_HEADER = '*'; + const char DEBUG_HEADER = '.'; + + int getc(); + void config(const char *fmt,...); + void info(const char *fmt,...); + void result(const char *fmt,...); + void error(const char *fmt,...); + void debug(const char *fmt,...); + void write(const char *fmt,...); + void write(const char& c); +} + +#endif \ No newline at end of file