From 97c483fe35e88efb92f428b4f6fe7c88d5ff6377 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Tue, 27 Sep 2022 12:44:57 -0400 Subject: [PATCH] [rtduino][readme] change title --- bsp/essemi/es32f369x/applications/arduino_pinout/README.md | 2 +- bsp/stm32/libraries/HAL_Drivers/drv_pwm.c | 2 ++ bsp/stm32/libraries/HAL_Drivers/drv_usart.c | 4 ---- .../stm32f072-st-nucleo/applications/arduino_pinout/README.md | 2 +- .../stm32f103-blue-pill/applications/arduino_pinout/README.md | 2 +- .../applications/arduino_pinout/README_zh.md | 2 +- .../stm32f401-st-nucleo/applications/arduino_pinout/README.md | 2 +- .../stm32f412-st-nucleo/applications/arduino_pinout/README.md | 2 +- .../stm32f469-st-disco/applications/arduino_pinout/README.md | 2 +- .../applications/arduino_pinout/README.md | 2 +- 10 files changed, 10 insertions(+), 12 deletions(-) diff --git a/bsp/essemi/es32f369x/applications/arduino_pinout/README.md b/bsp/essemi/es32f369x/applications/arduino_pinout/README.md index 16ea3918a9..5144d25364 100644 --- a/bsp/essemi/es32f369x/applications/arduino_pinout/README.md +++ b/bsp/essemi/es32f369x/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ ES32F3696已经适配了[RTduino软件包](https://github.com/RTduino/RTduino) ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` 2. 进入RTduino配置,打开需要使用的各项配置 (SPI,I2C,Adafrui等) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c b/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c index c5422fd553..c233cc55f2 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_pwm.c @@ -213,7 +213,9 @@ static rt_uint64_t tim_clock_get(TIM_HandleTypeDef *htim) if (0) #endif { +#if !(defined(SOC_SERIES_STM32F0) || defined(SOC_SERIES_STM32G0)) /* don't have HAL_RCC_GetPCLK2Freq */ tim_clock = (rt_uint32_t)(HAL_RCC_GetPCLK2Freq() * pclk2_doubler); +#endif } else { diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_usart.c b/bsp/stm32/libraries/HAL_Drivers/drv_usart.c index addd5da9c4..d3f7561d32 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_usart.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_usart.c @@ -422,10 +422,6 @@ static void dma_recv_isr(struct rt_serial_device *serial, rt_uint8_t isr_flag) static void uart_isr(struct rt_serial_device *serial) { struct stm32_uart *uart; -#ifdef RT_SERIAL_USING_DMA - rt_size_t recv_total_index, recv_len; - rt_base_t level; -#endif RT_ASSERT(serial != RT_NULL); uart = rt_container_of(serial, struct stm32_uart, serial); diff --git a/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout/README.md b/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout/README.md index 81cae3ac9f..9914b7ecdd 100644 --- a/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f072-st-nucleo/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布 diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md index c536d193d5..8fea416ad3 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README.md @@ -13,7 +13,7 @@ Please go to the [RTduino repository](https://github.com/RTduino/RTduino) to see ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino Pinout diff --git a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md index 3e4346ccfd..8e00ff2944 100644 --- a/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md +++ b/bsp/stm32/stm32f103-blue-pill/applications/arduino_pinout/README_zh.md @@ -13,7 +13,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布 diff --git a/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout/README.md b/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout/README.md index 580f545731..0c4f931975 100644 --- a/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f401-st-nucleo/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布 diff --git a/bsp/stm32/stm32f412-st-nucleo/applications/arduino_pinout/README.md b/bsp/stm32/stm32f412-st-nucleo/applications/arduino_pinout/README.md index fd9f6787bb..f968517eca 100644 --- a/bsp/stm32/stm32f412-st-nucleo/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f412-st-nucleo/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布 diff --git a/bsp/stm32/stm32f469-st-disco/applications/arduino_pinout/README.md b/bsp/stm32/stm32f469-st-disco/applications/arduino_pinout/README.md index 4c08dcde9c..8a0dbcc0c2 100644 --- a/bsp/stm32/stm32f469-st-disco/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32f469-st-disco/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布 diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/README.md b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/README.md index 144f956ce7..49072a1115 100644 --- a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/README.md +++ b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/README.md @@ -11,7 +11,7 @@ Env 工具下敲入 menuconfig 命令,或者 RT-Thread Studio IDE 下选择 RT ```Kconfig Hardware Drivers Config ---> Onboard Peripheral Drivers ---> - [*] Support Arduino + [*] Compatible with Arduino Ecosystem (RTduino) ``` ## 2 Arduino引脚排布