[bsp][wch] fix UART IRQ declarion

将UART4后的中断函数声明改为UART
This commit is contained in:
bxhsiman 2023-07-25 19:09:23 +08:00 committed by Meco Man
parent 6f119d4ce9
commit 93cd53d06f
1 changed files with 10 additions and 10 deletions

View File

@ -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)
{