EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
retargetserial.h
Go to the documentation of this file.
1 /**************************************************************************/
17 #ifndef __RETARGETSERIAL_H
18 #define __RETARGETSERIAL_H
19 
20 #include "retargetserialconfig.h"
21 
22 /***************************************************************************/
27 /***************************************************************************/
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #if defined(__CROSSWORKS_ARM)
37 int __putchar(int ch);
38 int __getchar(void);
39 #endif
40 
41 int RETARGET_ReadChar(void);
42 int RETARGET_WriteChar(char c);
43 
44 void RETARGET_SerialCrLf(int on);
45 void RETARGET_SerialInit(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
54 #endif
int RETARGET_ReadChar(void)
Receive a byte from USART/LEUART and put into global buffer.
int RETARGET_WriteChar(char c)
Transmit single byte to USART/LEUART.
void RETARGET_SerialInit(void)
Intializes UART/LEUART.
void RETARGET_SerialCrLf(int on)
UART/LEUART toggle LF to CRLF conversion.