diff options
| author | lpy <[email protected]> | 2022-11-21 10:48:39 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-20 21:48:39 -0500 |
| commit | 8e8fcd8d257efb10998da4f8ff8321f197505126 (patch) | |
| tree | 58347a2ddd91b81436df549cfc61245548b6d3a3 /bsp | |
| parent | aa15f7cd56bf11ce7e62dacd385bccd04bf39b88 (diff) | |
[stm32f410][RTduino] 修改pins_arduino.c和Kconfig (#6629)
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.c | 2 | ||||
| -rw-r--r-- | bsp/stm32/stm32f410-st-nucleo/board/Kconfig | 22 |
2 files changed, 22 insertions, 2 deletions
diff --git a/bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.c b/bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.c index 26dfc7ed04..e5ce42dc48 100644 --- a/bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.c +++ b/bsp/stm32/stm32f410-st-nucleo/applications/arduino_pinout/pins_arduino.c @@ -28,7 +28,7 @@ const pin_map_t pin_map_table[]= {D4, GET_PIN(B,5)}, {D5, GET_PIN(B,4)}, {D6, GET_PIN(B,10)}, - {D7, GET_PIN(A,8), "PWM1", 1}, + {D7, GET_PIN(A,8)}, {D8, GET_PIN(A,9), "pwm1", 2}, /* PWM */ {D9, GET_PIN(C,7)}, {D10, GET_PIN(B,6)}, diff --git a/bsp/stm32/stm32f410-st-nucleo/board/Kconfig b/bsp/stm32/stm32f410-st-nucleo/board/Kconfig index 5fcfe41b18..1e8fda9e88 100644 --- a/bsp/stm32/stm32f410-st-nucleo/board/Kconfig +++ b/bsp/stm32/stm32f410-st-nucleo/board/Kconfig @@ -95,7 +95,27 @@ menu "On-chip Peripheral Drivers" default n endif endif - + + menuconfig BSP_USING_I2C1 + bool "Enable I2C1 BUS (software simulation)" + default n + select RT_USING_I2C + select RT_USING_I2C_BITOPS + select RT_USING_PIN + if BSP_USING_I2C1 + comment "Notice: PB8 --> 24; PB9 --> 25" + config BSP_I2C1_SCL_PIN + int "i2c1 scl pin number" + range 0 80 + default 24 + config BSP_I2C1_SDA_PIN + int "I2C1 sda pin number" + range 0 80 + default 25 + endif + + source "../libraries/HAL_Drivers/Kconfig" + endmenu menu "Board extended module Drivers" |
