diff options
| author | hathach <[email protected]> | 2023-01-08 00:02:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-01-08 00:02:25 +0700 |
| commit | a7e1de1e837961b33021a8ae4ca63571fbf1f4a2 (patch) | |
| tree | 5df73084468073b9e866cf0b63c81a071f87057b | |
| parent | 949950e592d9a23a4b449784b0f8e7e274129318 (diff) | |
temporarily suppress redundant-decls due to USART_Printf_Init()
fix codespell
| -rw-r--r-- | hw/bsp/ch32v307/family.c | 2 | ||||
| -rw-r--r-- | 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 |
