[stm32f410][RTduino] 修改pins_arduino.c和Kconfig (#6629)

This commit is contained in:
lpy 2022-11-21 10:48:39 +08:00 committed by GitHub
parent aa15f7cd56
commit 8e8fcd8d25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const pin_map_t pin_map_table[]=
{D4, GET_PIN(B,5)}, {D4, GET_PIN(B,5)},
{D5, GET_PIN(B,4)}, {D5, GET_PIN(B,4)},
{D6, GET_PIN(B,10)}, {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 */ {D8, GET_PIN(A,9), "pwm1", 2}, /* PWM */
{D9, GET_PIN(C,7)}, {D9, GET_PIN(C,7)},
{D10, GET_PIN(B,6)}, {D10, GET_PIN(B,6)},

View File

@ -95,7 +95,27 @@ menu "On-chip Peripheral Drivers"
default n default n
endif endif
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 endmenu
menu "Board extended module Drivers" menu "Board extended module Drivers"