From a7e1de1e837961b33021a8ae4ca63571fbf1f4a2 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 8 Jan 2023 00:02:17 +0700 Subject: [PATCH] temporarily suppress redundant-decls due to USART_Printf_Init() fix codespell --- hw/bsp/ch32v307/family.c | 2 +- hw/bsp/ch32v307/family.mk | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/bsp/ch32v307/family.c b/hw/bsp/ch32v307/family.c index ea1c252c4..428466ad7 100644 --- a/hw/bsp/ch32v307/family.c +++ b/hw/bsp/ch32v307/family.c @@ -85,7 +85,7 @@ void board_init(void) { GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz; GPIO_Init(GPIOC, &GPIO_InitStructure); - /* Enable interrupts globaly */ + /* Enable interrupts globally */ __enable_irq(); board_delay(2); diff --git a/hw/bsp/ch32v307/family.mk b/hw/bsp/ch32v307/family.mk index ef2af26e6..12565016d 100644 --- a/hw/bsp/ch32v307/family.mk +++ b/hw/bsp/ch32v307/family.mk @@ -30,7 +30,10 @@ CFLAGS += \ -nostdlib -nostartfiles \ -DCFG_TUSB_MCU=OPT_MCU_CH32V307 \ -Xlinker --gc-sections \ - -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED + -DBOARD_DEVICE_RHPORT_SPEED=OPT_MODE_HIGH_SPEED + +# caused by extra void USART_Printf_Init() in debug_uart.h and EVT/EXAME/SRC/DEBUG/debug.h +CFLAGS += -Wno-error=redundant-decls LDFLAGS += \ -Xlinker --gc-sections --specs=nano.specs --specs=nosys.specs