diff --git a/bsp/essemi/es32f369x/applications/arduino_pinout/README.md b/bsp/essemi/es32f369x/applications/arduino_pinout/README.md index 16ea3918a9d32196856b144944c8ae14e7e0b7e4..5144d2536437fb36b07b90e5fe8a45dbfc9ad5da 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 c5422fd553ca9df9d7d23e42df38d03e2f1199c9..c233cc55f2e1721bd24245756b962b7891cc7f74 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 addd5da9c4c3f6571452b641bf14539019b01da1..d3f7561d32199d469820dc770d3562979c612064 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 81cae3ac9f0e66bca8bbd799654da8a0a40edda2..9914b7ecdd0fd71632881b48a93df76bde729bd5 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 c536d193d5ecd738a66a5e5c7eebf8b1b8dd9462..8fea416ad3fb3dcc0081ee5f85e3f9ef9e0f84bd 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 3e4346ccfd00d3b2272d0302295c7780df9c827f..8e00ff2944befa547207ad58de07aa177f45d9e4 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 580f545731216dfef6dacca42087f2df3b2a9e5e..0c4f9319751d7cb8739f38d54b2a3d94ffcb091a 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 fd9f6787bba8f22ae8ad05762f29f446171243cb..f968517ecad7fcce9aa54d3a4c38860afc8b1e10 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 4c08dcde9cb2549ef60293d33e921090f0f9a333..8a0dbcc0c214ab610662d3e84317bb5bb7fd04f6 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 144f956ce7008e5109bc6855ece4f836c125a5e6..49072a11156f60f3fc99f5c2c6dfdf4fc4a35a60 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引脚排布