|
STM32_UART_BareMetal
|

Functions | |
| int | __io_putchar (int ch) |
| void | USART3_Tx_Init (void) |
| void | UARTx_Write (USART_TypeDef *USARTx, uint8_t val) |
| void | UARTx_Config (USART_TypeDef *USARTx, uint32_t DataWidth, uint32_t Parity, uint32_t StopBits) |
| void | UARTx_SetBaudrate (USART_TypeDef *USARTx, uint32_t PeriphClock, uint32_t Baudrate) |
| uint16_t | UARTx_ComputeDivider (uint32_t PerpihClock, uint32_t Baudrate) |
| void | UARTx_SetTransferDirection (USART_TypeDef *USARTx, uint32_t Direction) |
| int __io_putchar | ( | int | ch | ) |
Retargeting part of implementation of printf.
From now on, USART3 will be used
| [in] | ch | character to be sent |

| uint16_t UARTx_ComputeDivider | ( | uint32_t | PerpihClock, |
| uint32_t | Baudrate | ||
| ) |
USART generic baudrate divider calculation method.
| [in] | PeriphClock | Peripheral Clock frequency [Hz] |
| [in] | Baudrate | Selectected baudrate for USART |
| [out] | BaudDiv | Calculated baudrate divider based on clock and desired baudrate |

| void UARTx_Config | ( | USART_TypeDef * | USARTx, |
| uint32_t | DataWidth, | ||
| uint32_t | Parity, | ||
| uint32_t | StopBits | ||
| ) |
USART generic configuration method.
| [in] | USARTx | USART Handler |
| [in] | DataWidth | Width of data (refer to USARTx_CR1) |
| [in] | Parity | Enable of disable parity check (refer to USARTx_CR1) |
| [in] | StopBits | Number of stop bits (refer to USARTx_CR2) |

| void UARTx_SetBaudrate | ( | USART_TypeDef * | USARTx, |
| uint32_t | PeriphClock, | ||
| uint32_t | Baudrate | ||
| ) |
USART generic baudrate selection method.
| [in] | USARTx | USART Handler |
| [in] | PeriphClock | Peripheral Clock frequency [Hz] |
| [in] | Baudrate | Selectected baudrate for USART |


| void UARTx_SetTransferDirection | ( | USART_TypeDef * | USARTx, |
| uint32_t | Direction | ||
| ) |
USART generic tranmission selection method.
| [in] | USARTx | USART Handler |
| [in] | Direction | Transmission direction [Half Duplex, Full Duplex] (refer to USARTx_CR1) |

| void UARTx_Write | ( | USART_TypeDef * | USARTx, |
| uint8_t | val | ||
| ) |
USART generic write method.
Applicable for both cases, when FIFO is disabled or enabled.
| [in] | USARTx | USART Handler |
| [in] | val | Value to be sent over USART (refer to USARTx_ISR and _TDR) |

| void USART3_Tx_Init | ( | void | ) |
USART3 initialization for transmission purposes.
For STM32H723 nucleo board, following pins are used:

