UART Bare Metal Drivers for STM32F4 Family of Microcontrollers. The Driver contains APIs for the user to Send & Receive Data via UART. Supports BAUD RATE From 300 To 1000000 BAUD. All 3 USART Peripherals i.e USART1, USART2 & USART6 Are Available To Use.
NOTE: On The STM32F411E-DISCO Board The USART1 Can't Use GPIOA Pins (Although This Functionality Has Still Been Provided)
- UARTx => x = (1, 2, 6)
- GPIOy => y = (A, B, C, D)
- UART_BAUDRATE => 300 To 1000000
- UART1_USE_GPIOA
- UART1_USE_GPIOB
- UART2_USE_GPIOA
- UART2_USE_GPIOD
- UART6_USE_GPIOC
- UART_Init
- UART_SendChar
- UART_SendString
- UART_ReadChar
- UART_ReadString
- UART_Printf
- UART_Init(UARTx, UARTx_USE_GPIOy, UART_BAURDRATE);
- UART_SendChar(UARTx, character);
- UART_SendString(UARTx, string);
- UART_ReadChar(UARTx);
- UART_ReadString(UARTx, buffer);Make Sure To Have A Large Enough Buffer To Store Data For UART_ReadString()
- UART_Printf(UARTx, string, parameters); Supports: %c, %d, %s, %x, %o, %f