From 93cd53d06fffc8c26ae569ee264463910ec9a4d2 Mon Sep 17 00:00:00 2001 From: bxhsiman <64024208+bxhsiman@users.noreply.github.com> Date: Tue, 25 Jul 2023 19:09:23 +0800 Subject: [PATCH] [bsp][wch] fix UART IRQ declarion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将UART4后的中断函数声明改为UART --- .../risc-v/Libraries/ch32_drivers/drv_usart.c | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c index f45aaf9381..9daa586c35 100644 --- a/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c +++ b/bsp/wch/risc-v/Libraries/ch32_drivers/drv_usart.c @@ -418,9 +418,9 @@ void USART3_IRQHandler(void) #ifdef BSP_USING_UART4 #if defined (SOC_RISCV_SERIES_CH32V2) -void USART4_IRQHandler(void) __attribute__((interrupt())); +void UART4_IRQHandler(void) __attribute__((interrupt())); #else -void USART4_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); +void UART4_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); #endif void UART4_IRQHandler(void) { @@ -434,9 +434,9 @@ void UART4_IRQHandler(void) #ifdef BSP_USING_UART5 #if defined (SOC_RISCV_SERIES_CH32V2) -void USART5_IRQHandler(void) __attribute__((interrupt())); +void UART5_IRQHandler(void) __attribute__((interrupt())); #else -void USART5_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); +void UART5_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); #endif void UART5_IRQHandler(void) { @@ -450,9 +450,9 @@ void UART5_IRQHandler(void) #ifdef BSP_USING_UART6 #if defined (SOC_RISCV_SERIES_CH32V2) -void USART6_IRQHandler(void) __attribute__((interrupt())); +void UART6_IRQHandler(void) __attribute__((interrupt())); #else -void USART6_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); +void UART6_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); #endif void UART6_IRQHandler(void) { @@ -466,9 +466,9 @@ void UART6_IRQHandler(void) #ifdef BSP_USING_UART7 #if defined (SOC_RISCV_SERIES_CH32V2) -void USART7_IRQHandler(void) __attribute__((interrupt())); +void UART7_IRQHandler(void) __attribute__((interrupt())); #else -void USART7_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); +void UART7_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); #endif void UART7_IRQHandler(void) { @@ -482,9 +482,9 @@ void UART7_IRQHandler(void) #ifdef BSP_USING_UART8 #if defined (SOC_RISCV_SERIES_CH32V2) -void USART8_IRQHandler(void) __attribute__((interrupt())); +void UART8_IRQHandler(void) __attribute__((interrupt())); #else -void USART8_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); +void UART8_IRQHandler(void) __attribute__((interrupt("WCH-Interrupt-fast"))); #endif void UART8_IRQHandler(void) {