From c9474c20a558e9d7934a3d72cc9bb17a98c20871 Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Thu, 11 Jun 2020 14:06:42 +0800 Subject: [PATCH] bsp/nuclei: remove comments in rt_hw_*_drvinit Signed-off-by: Huaqi Fang <578567190@qq.com> --- bsp/nuclei/gd32vf103_rvstar/board/board.c | 36 +++++++---------------- 1 file changed, 11 insertions(+), 25 deletions(-) diff --git a/bsp/nuclei/gd32vf103_rvstar/board/board.c b/bsp/nuclei/gd32vf103_rvstar/board/board.c index dc45755185..1a470f9b1e 100644 --- a/bsp/nuclei/gd32vf103_rvstar/board/board.c +++ b/bsp/nuclei/gd32vf103_rvstar/board/board.c @@ -32,23 +32,21 @@ extern void *_heap_end; */ extern void _init(void); -// Check pin assignment here https://doc.nucleisys.com/nuclei_board_labs/hw/hw.html +/* + * - Check MCU pin assignment here https://doc.nucleisys.com/nuclei_board_labs/hw/hw.html + * - If you changed menuconfig to use different peripherals such as SPI, ADC, GPIO, + * HWTIMER, I2C, PWM, UART, WDT, RTC, please add or change related pinmux configuration + * code in functions(rt_hw_*_drvinit) below + */ void rt_hw_spi_drvinit(void) { - /* Comments below are sample configuration code for - * Configure PA5 PA6 PA7 (SPI0 SCK MISO MOSI) as alternate function - * gpio_init(GPIOA, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_5 | GPIO_PIN_7); - * gpio_init(GPIOA, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, GPIO_PIN_6); - */ + } void rt_hw_adc_drvinit(void) { - /* Comments below are sample configuration code for - * Configure PA0, PA3 as analog mode - * gpio_init(GPIOA, GPIO_MODE_AIN, GPIO_OSPEED_50MHZ, GPIO_PIN_0|GPIO_PIN_3); - */ + } void rt_hw_gpio_drvinit(void) @@ -69,19 +67,12 @@ void rt_hw_hwtimer_drvinit(void) void rt_hw_i2c_drvinit(void) { - /* Comments below are sample configuration code for - * Configure PB10 PB11 (I2C1 SCL SDA) as alternate function - * gpio_init(GPIOB, GPIO_MODE_AF_OD, GPIO_OSPEED_50MHZ, GPIO_PIN_10 | GPIO_PIN_11); - */ + } void rt_hw_pwm_drvinit(void) { - /* Comments below are sample configuration code for - * Configure PA6 PA7 PB0 PB1(TIMER2 CH0 CH1 CH2 CH3) as alternate function - * gpio_init(GPIOA, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_6 | GPIO_PIN_7); - * gpio_init(GPIOB, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_0 | GPIO_PIN_1); - */ + } void rt_hw_rtc_drvinit(void) @@ -91,13 +82,8 @@ void rt_hw_rtc_drvinit(void) void rt_hw_uart_drvinit(void) { - // Debug UART4 GPIO pins are already initialized in nuclei_sdk + /* Notice: Debug UART4 GPIO pins are already initialized in nuclei_sdk */ - /* Comments below are sample configuration code for - * Configure PC10 PC11(UART3 TX RX) as alternate function - * gpio_init(GPIOC, GPIO_MODE_AF_PP, GPIO_OSPEED_50MHZ, GPIO_PIN_10); - * gpio_init(GPIOC, GPIO_MODE_IN_FLOATING, GPIO_OSPEED_50MHZ, GPIO_PIN_11); - */ } void rt_hw_wdt_drvinit(void)