summaryrefslogtreecommitdiff
path: root/hw/bsp/ch32v30x/debug_uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bsp/ch32v30x/debug_uart.c')
-rw-r--r--hw/bsp/ch32v30x/debug_uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/bsp/ch32v30x/debug_uart.c b/hw/bsp/ch32v30x/debug_uart.c
index 2fd3a9d64..4d2992c58 100644
--- a/hw/bsp/ch32v30x/debug_uart.c
+++ b/hw/bsp/ch32v30x/debug_uart.c
@@ -49,7 +49,8 @@ void USART1_IRQHandler(void) {
__asm volatile ("call USART1_IRQHandler_impl; mret");
}
-__attribute__((used)) void USART1_IRQHandler_impl(void)
+void USART1_IRQHandler_impl(void) __attribute__((used)) ;
+void USART1_IRQHandler_impl(void)
{
if(USART_GetITStatus(USART1, USART_IT_TC) != RESET)
{