/*--- LumModule
Usart Config ---------------------------------------*/
#define LUMMOD_UART
USART3
#define
LUMMOD_UART_GPIO GPIOC
#define
LUMMOD_UART_CLK RCC_APB1Periph_USART3
#define
LUMMOD_UART_GPIO_CLK RCC_APB2Periph_GPIOC
#define LUMMOD_UART_RxPin
GPIO_Pin_11
#define
LUMMOD_UART_TxPin GPIO_Pin_10
#define
LUMMOD_UART_IRQn USART3_IRQn
#define
LUMMOD_UART_DR_Base (USART3_BASE + 0x4) //0x40013804
#define
LUMMOD_UART_Tx_DMA_Channel DMA1_Channel2
#define LUMMOD_UART_Tx_DMA_FLAG
DMA1_FLAG_GL2//DMA1_FLAG_TC2
| DMA1_FLAG_TE2
#define
LUMMOD_UART_Tx_DMA_IRQ DMA1_Channel2_IRQn
#define
LUMMOD_UART_Rx_DMA_Channel DMA1_Channel3
#define
LUMMOD_UART_Rx_DMA_FLAG DMA1_FLAG_GL3//DMA1_FLAG_TC3 | DMA1_FLAG_TE3
#define
LUMMOD_UART_Rx_DMA_IRQ DMA1_Channel3_IRQn
|