diff options
| author | Meco Man <[email protected]> | 2023-07-06 19:18:54 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-07-08 21:47:57 -0400 |
| commit | 4f1f96bbcea3d0d90c49b9ca423f9b0fe39b612f (patch) | |
| tree | ab086611abb626d193ee600ece4feedb850fa53d /bsp | |
| parent | 9295bc78eac9b3befd1737af040321652bed8225 (diff) | |
[stm32l475][RTduino] support tone timer
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h | 2 | ||||
| -rw-r--r-- | bsp/stm32/stm32l475-atk-pandora/board/Kconfig | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h index 58f6993d57..b6a60061dc 100644 --- a/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h +++ b/bsp/stm32/stm32l475-atk-pandora/applications/arduino_pinout/pins_arduino.h @@ -66,6 +66,8 @@ /* Serial2 - PA2-TX PA3-RX */ #define RTDUINO_SERIAL2_DEVICE_NAME "uart2" +#define RTDUINO_TONE_HWTIMER_DEVICE_NAME "timer7" + /* I2C */ #if defined(BSP_USING_ARDUINO_AHT10) #define RTDUINO_DEFAULT_IIC_BUS_NAME "i2c4" /* i2c4 - AHT10 (On Board) */ diff --git a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig index 56a58ecbe1..61d4f2abfb 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/Kconfig +++ b/bsp/stm32/stm32l475-atk-pandora/board/Kconfig @@ -24,6 +24,8 @@ menu "Onboard Peripheral Drivers" select PKG_USING_RTDUINO select BSP_USING_STLINK_TO_USART select BSP_USING_GPIO + select BSP_USING_TIM + select BSP_USING_TIM7 select BSP_USING_PWM select BSP_USING_PWM1 select BSP_USING_PWM1_CH1 |
