diff --git a/bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c b/bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c index 3112da34f8..102bd90840 100644 --- a/bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c +++ b/bsp/at32/Libraries/rt_drivers/drv_soft_i2c.c @@ -18,7 +18,7 @@ #if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4) #error "Please define at least one BSP_USING_I2Cx" -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct at32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/at32/Libraries/rt_drivers/drv_usart.c b/bsp/at32/Libraries/rt_drivers/drv_usart.c index 04838bf2ac..2cf61c422b 100644 --- a/bsp/at32/Libraries/rt_drivers/drv_usart.c +++ b/bsp/at32/Libraries/rt_drivers/drv_usart.c @@ -15,7 +15,7 @@ #if !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2) && \ !defined(BSP_USING_UART3) #error "Please define at least one BSP_USING_UARTx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif struct at32_usart { diff --git a/bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c b/bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c index 23133b8336..a73da2b860 100644 --- a/bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c +++ b/bsp/bluetrum/libraries/hal_drivers/drv_soft_i2c.c @@ -19,7 +19,7 @@ #if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4) #error "Please define at least one BSP_USING_I2Cx" -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct ab32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c b/bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c index 18c9795c9e..176a7e3319 100644 --- a/bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c +++ b/bsp/gd32/libraries/gd32_drivers/drv_soft_i2c.c @@ -16,7 +16,7 @@ #if !defined(BSP_USING_I2C0) && !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) #error "Please define at least one BSP_USING_I2Cx" -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct gd32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/gd32vf103v-eval/drivers/drv_usart.c b/bsp/gd32vf103v-eval/drivers/drv_usart.c index 313440329c..9b6386550a 100644 --- a/bsp/gd32vf103v-eval/drivers/drv_usart.c +++ b/bsp/gd32vf103v-eval/drivers/drv_usart.c @@ -15,7 +15,7 @@ #if !defined(BSP_USING_UART0) && !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2) \ && !defined(BSP_USING_UART3) && !defined(BSP_USING_UART4) && !defined(BSP_USING_UART5) #error "Please define at least one BSP_USING_UARTx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif struct gd32_usart { diff --git a/bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c b/bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c index dc40083832..1dcfcf51e4 100644 --- a/bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c +++ b/bsp/hk32/libraries/rt_drivers/drv_soft_i2c.c @@ -18,7 +18,7 @@ #if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4) #error "Please define at least one BSP_USING_I2Cx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct hk32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/hk32/libraries/rt_drivers/drv_usart.c b/bsp/hk32/libraries/rt_drivers/drv_usart.c index ff5d5819d8..0619e3e494 100644 --- a/bsp/hk32/libraries/rt_drivers/drv_usart.c +++ b/bsp/hk32/libraries/rt_drivers/drv_usart.c @@ -14,7 +14,7 @@ #ifdef RT_USING_SERIAL #if !defined(BSP_USING_UART1) && !defined(BSP_USING_UART2) #error "Please define at least one BSP_USING_UARTx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif struct hk32_usart diff --git a/bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c b/bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c index 1feb0ac7e2..91847b303a 100644 --- a/bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c +++ b/bsp/n32g452xx/Libraries/rt_drivers/drv_soft_i2c.c @@ -18,7 +18,7 @@ #if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4) #error "Please define at least one BSP_USING_I2Cx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct n32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c b/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c index 2bd18241fa..57aa02e9e2 100644 --- a/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c +++ b/bsp/renesas/libraries/HAL_Drivers/drv_soft_i2c.c @@ -23,7 +23,7 @@ #if !defined(BSP_USING_I2C0) && !defined(BSP_USING_I2C1) #error "Please define at least one BSP_USING_I2Cx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct ra_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c b/bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c index d6f85f25eb..4c076d7b77 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_pulse_encoder.c @@ -19,7 +19,7 @@ #if !defined(BSP_USING_PULSE_ENCODER1) && !defined(BSP_USING_PULSE_ENCODER2) && !defined(BSP_USING_PULSE_ENCODER3) \ && !defined(BSP_USING_PULSE_ENCODER4) && !defined(BSP_USING_PULSE_ENCODER5) && !defined(BSP_USING_PULSE_ENCODER6) #error "Please define at least one BSP_USING_PULSE_ENCODERx" - /* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ + /* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif #define AUTO_RELOAD_VALUE 0x7FFF diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c b/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c index 871686650b..c284e3d965 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_soft_i2c.c @@ -20,7 +20,7 @@ #if !defined(BSP_USING_I2C1) && !defined(BSP_USING_I2C2) && !defined(BSP_USING_I2C3) && !defined(BSP_USING_I2C4) #error "Please define at least one BSP_USING_I2Cx" -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static const struct stm32_soft_i2c_config soft_i2c_config[] = diff --git a/bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c b/bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c index 0d3904444f..ff7a19cd22 100644 --- a/bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c +++ b/bsp/stm32/stm32l4r9-st-eval/board/ports/drv_touch_ft.c @@ -29,7 +29,7 @@ #define TOUCH_SLAVE_ADDR 0x38U #else #error "Please define at least one TOUCH DEVICE" -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #endif static struct rt_i2c_bus_device *ft_i2c_bus; diff --git a/bsp/tm4c123bsp/libraries/Drivers/drv_spi.c b/bsp/tm4c123bsp/libraries/Drivers/drv_spi.c index deee0b49bb..0eca8ab0e3 100644 --- a/bsp/tm4c123bsp/libraries/Drivers/drv_spi.c +++ b/bsp/tm4c123bsp/libraries/Drivers/drv_spi.c @@ -19,7 +19,7 @@ #ifdef RT_USING_SPI #if defined(BSP_USING_SPI0) || defined(BSP_USING_SPI1) || defined(BSP_USING_SPI2) || defined(BSP_USING_SPI3) -/* this driver can be disabled at menuconfig → RT-Thread Components → Device Drivers */ +/* this driver can be disabled at menuconfig -> RT-Thread Components -> Device Drivers */ #include "tm4c123_config.h" #include "spi_config.h" #include diff --git a/components/drivers/spi/spi-bit-ops.h b/components/drivers/spi/spi-bit-ops.h index 2f39548e15..f56bb98e9c 100644 --- a/components/drivers/spi/spi-bit-ops.h +++ b/components/drivers/spi/spi-bit-ops.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006-2018, RT-Thread Development Team + * Copyright (c) 2006-2022, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * @@ -32,7 +32,7 @@ struct rt_spi_bit_ops void (*const dir_miso)(void *data, rt_int32_t state); void (*const udelay)(rt_uint32_t us); - rt_uint32_t delay_us; /* sclk、mosi and miso line delay */ + rt_uint32_t delay_us; /* sclk, mosi and miso line delay */ }; struct rt_spi_bit_obj @@ -42,7 +42,7 @@ struct rt_spi_bit_obj struct rt_spi_configuration config; }; -rt_err_t rt_spi_bit_add_bus(struct rt_spi_bit_obj *obj, +rt_err_t rt_spi_bit_add_bus(struct rt_spi_bit_obj *obj, const char *bus_name, struct rt_spi_bit_ops *ops);