[bsp][stm32]fix bug with dma setting
@@ -334,8 +334,8 @@ static const struct rt_uart_ops stm32_uart_ops =
struct stm32_uart uart1 =
{
USART1,
-#ifdef RT_SERIAL_USING_DMA
USART1_IRQn,
+#ifdef RT_SERIAL_USING_DMA
{
DMA2_Stream5,
DMA_Channel_4,
@@ -377,8 +377,8 @@ void DMA2_Stream5_IRQHandler(void) {
struct stm32_uart uart2 =
{
USART2,
-#ifdef RT_SERIAL_USING_DMA
USART2_IRQn,
+#ifdef RT_SERIAL_USING_DMA
{
DMA1_Stream5,
DMA_Channel_4,
@@ -421,8 +421,8 @@ void DMA1_Stream5_IRQHandler(void) {
struct stm32_uart uart3 =
{
USART3,
-#ifdef RT_SERIAL_USING_DMA
USART3_IRQn,
+#ifdef RT_SERIAL_USING_DMA
{
DMA1_Stream1,
DMA_Channel_4,
@@ -465,8 +465,8 @@ void DMA1_Stream1_IRQHandler(void) {
struct stm32_uart uart4 =
{
UART4,
-#ifdef RT_SERIAL_USING_DMA
UART4_IRQn,
+#ifdef RT_SERIAL_USING_DMA
{
DMA1_Stream2,
DMA_Channel_4,
@@ -509,8 +509,8 @@ void DMA1_Stream2_IRQHandler(void) {
struct stm32_uart uart5 =
{
UART5,
-#ifdef RT_SERIAL_USING_DMA
UART5_IRQn,
+#ifdef RT_SERIAL_USING_DMA
{
DMA1_Stream0,
DMA_Channel_4,
