Steering_Wheel_Infatry/User/bsp/bsp_config.yaml
2026-01-26 12:19:25 +08:00

117 lines
2.0 KiB
YAML

can:
devices:
- instance: CAN1
name: '1'
- instance: CAN2
name: '2'
enabled: true
dwt:
enabled: true
gpio:
configs:
- custom_name: USER_KEY
has_exti: true
ioc_label: USER_KEY
pin: PA0-WKUP
type: EXTI
- custom_name: ACCL_CS
has_exti: false
ioc_label: ACCL_CS
pin: PA4
type: OUTPUT
- custom_name: GYRO_CS
has_exti: false
ioc_label: GYRO_CS
pin: PB0
type: OUTPUT
- custom_name: DIR_P
has_exti: false
ioc_label: DIR_P
pin: PB1
type: OUTPUT
- custom_name: DIR_N
has_exti: false
ioc_label: DIR_N
pin: PB2
type: OUTPUT
- custom_name: PUL_P
has_exti: false
ioc_label: PUL_P
pin: PC1
type: OUTPUT
- custom_name: PUL_N
has_exti: false
ioc_label: PUL_N
pin: PC2
type: OUTPUT
- custom_name: ACCL_INT
has_exti: true
ioc_label: ACCL_INT
pin: PC4
type: EXTI
- custom_name: GYRO_INT
has_exti: true
ioc_label: GYRO_INT
pin: PC5
type: EXTI
- custom_name: CMPS_INT
has_exti: true
ioc_label: CMPS_INT
pin: PG3
type: EXTI
- custom_name: CMPS_RST
has_exti: false
ioc_label: CMPS_RST
pin: PG6
type: OUTPUT
- custom_name: LED_BLUE
has_exti: false
ioc_label: LED_Blue
pin: PH10
type: OUTPUT
- custom_name: LED_GREEN
has_exti: false
ioc_label: LED_Green
pin: PH11
type: OUTPUT
- custom_name: LED_RED
has_exti: false
ioc_label: LED_Red
pin: PH12
type: OUTPUT
enabled: true
i2c:
devices:
- instance: I2C1
name: '1'
- instance: I2C1
name: '2'
enabled: true
mm:
enabled: true
pwm:
configs:
- channel: TIM_CHANNEL_1
custom_name: IMU_HEAT
label: TIM10_CH1
timer: TIM10
enabled: true
spi:
devices:
- instance: SPI1
name: BMI088
enabled: true
time:
enabled: true
uart:
devices:
- instance: USART1
name: '1'
- instance: USART2
name: '2'
- instance: USART3
name: '3'
- instance: USART6
name: AI
enabled: true