hero_head/User/bsp/bsp_config.yaml
2026-01-13 05:54:15 +08:00

84 lines
1.4 KiB
YAML

can:
devices:
- instance: CAN2
name: '2'
enabled: true
dwt:
enabled: true
fdcan:
devices:
- instance: FDCAN1
name: '1'
- instance: FDCAN2
name: '2'
- instance: FDCAN3
name: '3'
enabled: true
flash:
dual_bank: true
enabled: true
mcu_name: STM32F407I(E-G)Hx
sectors: 24
gpio:
configs:
- 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: 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
enabled: true
mm:
enabled: true
pwm:
configs:
- channel: TIM_CHANNEL_1
custom_name: B
label: TIM5_CH1
timer: TIM5
- channel: TIM_CHANNEL_2
custom_name: G
label: TIM5_CH2
timer: TIM5
- channel: TIM_CHANNEL_3
custom_name: R
label: TIM5_CH3
timer: TIM5
enabled: true
spi:
devices:
- instance: SPI1
name: BMI088
enabled: true
time:
enabled: true
uart:
devices:
- instance: UART5
name: RC
enabled: true