-#define CR1_RUN_SET ((uint16_t)0x2000) /* USART Enable MASK */
-#define CR1_RUN_RESET ((uint16_t)0xDFFF) /* USART Disable MASK */
-#define CR1_RWU_SET ((uint16_t)0x0002) /* USART mute mode Enable MASK */
-#define CR1_RWU_RESET ((uint16_t)0xFFFD) /* USART mute mode Enable MASK */
-#define CR1_SBK_SET ((uint16_t)0x0001) /* USART Break Character send MASK */
-#define CR1_CLEAR_MASK ((uint16_t)0xE9F3) /* USART CR1 MASK */
-
-#define CR2_MASK ((uint16_t)0xFFF0) /* USART address MASK */
-#define CR2_LINE_SET ((uint16_t)0x4000) /* USART LIN Enable MASK */
-#define CR2_LINE_RESET ((uint16_t)0xBFFF) /* USART LIN Disable MASK */
-#define CR2_CLEAR_MASK ((uint16_t)0xC0FF) /* USART CR2 MASK */
-
-#define CR3_SCEN_SET ((uint16_t)0x0020) /* USART SC Enable MASK */
-#define CR3_SCEN_RESET ((uint16_t)0xFFDF) /* USART SC Disable MASK */
-#define CR3_NACK_SET ((uint16_t)0x0010) /* USART SC NACK Enable MASK */
-#define CR3_NACK_RESET ((uint16_t)0xFFEF) /* USART SC NACK Disable MASK */
-#define CR3_HDSEL_SET ((uint16_t)0x0008) /* USART Half-Duplex Enable MASK */
-#define CR3_HDSEL_RESET ((uint16_t)0xFFF7) /* USART Half-Duplex Disable MASK */
-#define CR3_IRLP_MASK ((uint16_t)0xFFFB) /* USART IrDA LowPower mode MASK */
-#define CR3_LBDL_MASK ((uint16_t)0xFFDF) /* USART LIN Break detection MASK */
-#define CR3_WAKE_MASK ((uint16_t)0xF7FF) /* USART WakeUp Method MASK */
-#define CR3_IREN_SET ((uint16_t)0x0002) /* USART IrDA Enable MASK */
-#define CR3_IREN_RESET ((uint16_t)0xFFFD) /* USART IrDA Disable MASK */
-#define CR3_CLEAR_MASK ((uint16_t)0xFCFF) /* USART CR3 MASK */
-
-#define GTPR_LSB_MASK ((uint16_t)0x00FF) /* Guard Time Register LSB MASK */
-#define GTPR_MSB_MASK ((uint16_t)0xFF00) /* Guard Time Register MSB MASK */
-
-#define USART_IT_MASK ((uint16_t)0x001F) /* USART Interrupt MASK */
-
-/* USART flags */
-#define USART_FLAG_CTS ((uint16_t)0x0200)
-#define USART_FLAG_LBD ((uint16_t)0x0100)
-#define USART_FLAG_TXE ((uint16_t)0x0080)
-#define USART_FLAG_TC ((uint16_t)0x0040)
-#define USART_FLAG_RXNE ((uint16_t)0x0020)
-#define USART_FLAG_IDLE ((uint16_t)0x0010)
-#define USART_FLAG_ORE ((uint16_t)0x0008)
-#define USART_FLAG_NE ((uint16_t)0x0004)
-#define USART_FLAG_FE ((uint16_t)0x0002)
-#define USART_FLAG_PE ((uint16_t)0x0001)