mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fix redundant-decls warnings with USART_Printf_Init()
This commit is contained in:
parent
e61d4aefe6
commit
658897cf4e
@ -75,7 +75,7 @@ void uart_sync(void)
|
||||
}
|
||||
|
||||
|
||||
void USART_Printf_Init(uint32_t baudrate)
|
||||
void usart_printf_init(uint32_t baudrate)
|
||||
{
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
USART_InitTypeDef USART_InitStructure;
|
||||
|
@ -28,4 +28,4 @@
|
||||
|
||||
void uart_write(char c);
|
||||
void uart_sync(void);
|
||||
void USART_Printf_Init(uint32_t baudrate);
|
||||
void usart_printf_init(uint32_t baudrate);
|
||||
|
@ -10,7 +10,7 @@
|
||||
#ifndef __CH32V30x_IT_H
|
||||
#define __CH32V30x_IT_H
|
||||
|
||||
#include "debug.h"
|
||||
// #include "debug.h"
|
||||
|
||||
|
||||
#endif /* __CH32V30x_IT_H */
|
||||
|
@ -68,7 +68,7 @@ void board_init(void) {
|
||||
SysTick_Config(SystemCoreClock / 1000);
|
||||
#endif
|
||||
|
||||
USART_Printf_Init(115200);
|
||||
usart_printf_init(115200);
|
||||
|
||||
RCC_USBCLK48MConfig(RCC_USBCLK48MCLKSource_USBPHY);
|
||||
RCC_USBHSPLLCLKConfig(RCC_HSBHSPLLCLKSource_HSE);
|
||||
|
@ -30,9 +30,6 @@ CFLAGS += \
|
||||
-Xlinker --gc-sections \
|
||||
-DBOARD_TUD_MAX_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
|
||||
|
||||
@ -49,8 +46,7 @@ SRC_S += \
|
||||
|
||||
INC += \
|
||||
$(TOP)/$(BOARD_PATH) \
|
||||
$(TOP)/$(CH32V307_SDK_SRC)/Peripheral/inc \
|
||||
$(TOP)/$(CH32V307_SDK_SRC)/Debug
|
||||
$(TOP)/$(CH32V307_SDK_SRC)/Peripheral/inc
|
||||
|
||||
# For freeRTOS port source
|
||||
FREERTOS_PORT = RISC-V
|
||||
|
Loading…
x
Reference in New Issue
Block a user