version 1.0
Dependencies: CMSIS_DSP_401 GPS MPU9150_DMP PID QuaternionMath Servo mbed
Fork of SolarOnFoils_MainModule_20150518 by
Diff: uart.h
- Revision:
- 0:81b21910454e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uart.h Tue Jun 23 13:55:28 2015 +0000 @@ -0,0 +1,48 @@ +/****************************************************************************** + * Module : UART + * Copyright : 2008 - H. Arends + * Description : STK525 Driver + ****************************************************************************** + Change History: + + Version 0.1 - March 2008 + > Initial revision + +******************************************************************************/ + +/****************************************************************************** + +******************************************************************************/ + +#ifndef _UART_H_ +#define _UART_H_ + +/****************************************************************************** + Defines +******************************************************************************/ +#define BAUDRATE 9600 + +#define CR ('\r') +#define LF ('\n') +#define BACKSPACE ('\b') +#define SPACE (' ') +#define ESC 0x1B + + +/****************************************************************************** + Function prototypes +******************************************************************************/ +void UART_vInitIO (void); +void UART_vPutStr (char *p); +void UART_vGetStr (unsigned short l, char *p); +int UART_iPutCh (int c); +unsigned char UART_ucGetCh (void); +void UART_vPutInt (int c); + +void UART_vPutStr_P(uint8_t *p); + +#endif // _UART_H_ + +/****************************************************************************** + EOF +******************************************************************************/