78 #include <stm32f4xx.h>
81 #define CARME_UART0 USART1
82 #define CARME_UART1 USART3
85 #define CARME_ERROR_UART_NO_DATA (CARME_ERROR_UART_BASE+0)
uint8_t ERROR_CODES
Error variable.
void CARME_UART_Init(USART_TypeDef *UARTx, USART_InitTypeDef *pUSART_InitStruct)
UART initialization.
void CARME_UART_SendString(USART_TypeDef *UARTx, char *pStr)
Send a string over the UART port. You can use printf() to send a formated String over the CARME_UART0...
void CARME_UART_SendChar(USART_TypeDef *UARTx, char c)
Send a char over the UART port.
void CARME_UART_GPIO_Init(void)
CARME UART port GPIO initialization.
USART Init Structure definition.
ERROR_CODES CARME_UART_ReceiveString(USART_TypeDef *UARTx, char *pc, uint8_t count)
Receive a string from the UART input buffer until new line or carriage return or there is no more dat...
ERROR_CODES CARME_UART_ReceiveChar(USART_TypeDef *UARTx, char *pc)
Receive a char from the UART input buffer.