TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

USART default values for defines. More...

Macros

#define TM_USART_BUFFER_SIZE   32
 
#define TM_USART1_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART2_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART3_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_UART4_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_UART5_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART6_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_UART7_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_UART8_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART4_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART5_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART7_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define TM_USART8_BUFFER_SIZE   TM_USART_BUFFER_SIZE
 
#define USART_NVIC_PRIORITY   0x06
 
#define TM_USART1_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART1_MODE   USART_MODE_TX_RX
 
#define TM_USART1_PARITY   USART_PARITY_NONE
 
#define TM_USART1_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART1_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART2_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART2_MODE   USART_MODE_TX_RX
 
#define TM_USART2_PARITY   USART_PARITY_NONE
 
#define TM_USART2_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART2_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART3_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART3_MODE   USART_MODE_TX_RX
 
#define TM_USART3_PARITY   USART_PARITY_NONE
 
#define TM_USART3_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART3_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_UART4_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_UART4_MODE   USART_MODE_TX_RX
 
#define TM_UART4_PARITY   USART_PARITY_NONE
 
#define TM_UART4_STOP_BITS   USART_STOPBITS_1
 
#define TM_UART4_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_UART5_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_UART5_MODE   USART_MODE_TX_RX
 
#define TM_UART5_PARITY   USART_PARITY_NONE
 
#define TM_UART5_STOP_BITS   USART_STOPBITS_1
 
#define TM_UART5_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART6_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART6_MODE   USART_MODE_TX_RX
 
#define TM_USART6_PARITY   USART_PARITY_NONE
 
#define TM_USART6_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART6_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_UART7_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_UART7_MODE   USART_MODE_TX_RX
 
#define TM_UART7_PARITY   USART_PARITY_NONE
 
#define TM_UART7_STOP_BITS   USART_STOPBITS_1
 
#define TM_UART7_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_UART8_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_UART8_MODE   USART_MODE_TX_RX
 
#define TM_UART8_PARITY   USART_PARITY_NONE
 
#define TM_UART8_STOP_BITS   USART_STOPBITS_1
 
#define TM_UART8_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART4_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART4_MODE   USART_MODE_TX_RX
 
#define TM_USART4_PARITY   USART_PARITY_NONE
 
#define TM_USART4_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART4_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART5_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART5_MODE   USART_MODE_TX_RX
 
#define TM_USART5_PARITY   USART_PARITY_NONE
 
#define TM_USART5_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART5_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART7_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART7_MODE   USART_MODE_TX_RX
 
#define TM_USART7_PARITY   USART_PARITY_NONE
 
#define TM_USART7_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART7_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define TM_USART8_HARDWARE_FLOW_CONTROL   TM_USART_HardwareFlowControl_None
 
#define TM_USART8_MODE   USART_MODE_TX_RX
 
#define TM_USART8_PARITY   USART_PARITY_NONE
 
#define TM_USART8_STOP_BITS   USART_STOPBITS_1
 
#define TM_USART8_WORD_LENGTH   UART_WORDLENGTH_8B
 
#define USART_ISR_RXNE   USART_SR_RXNE
 
#define USART_STRING_DELIMITER   '\n'
 Default string delimiter for USART.
 
#define USART_TX_REG(USARTx)    ((USARTx)->TDR)
 
#define USART_WRITE_DATA(USARTx, data)    ((USARTx)->TDR = (data))
 
#define USART_READ_DATA(USARTx)    ((USARTx)->RDR)
 
#define GPIO_AF_UART5   (GPIO_AF7_UART5)
 
#define USART_STATUS_REG   ISR
 
#define USART_TXEMPTY(USARTx)    ((USARTx)->USART_STATUS_REG & USART_FLAG_TXE)
 
#define USART_WAIT(USARTx)    while (!USART_TXEMPTY(USARTx))
 

Detailed Description

USART default values for defines.

All values can be overwritten in your project's defines.h file.

Do this only in case you know what are you doing.