duolun/User/bsp/bsp_config.yaml
2025-09-24 15:08:41 +08:00

80 lines
1.3 KiB
YAML

can:
devices:
- instance: CAN1
name: '1'
- instance: CAN2
name: '2'
enabled: true
dwt:
enabled: true
gpio:
configs:
- custom_name: KEY
has_exti: true
ioc_label: 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: 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: LED_B
has_exti: false
ioc_label: LED_B
pin: PH10
type: OUTPUT
- custom_name: LED_G
has_exti: false
ioc_label: LED_G
pin: PH11
type: OUTPUT
- custom_name: LED_R
has_exti: false
ioc_label: LED_R
pin: PH12
type: OUTPUT
enabled: true
mm:
enabled: true
pwm:
configs:
- channel: TIM_CHANNEL_3
custom_name: BUZZER
label: Buzzer
timer: TIM4
- channel: TIM_CHANNEL_1
custom_name: IMU_HEAT_PWM
label: IMU_HEAT_PWM
timer: TIM10
enabled: true
spi:
devices:
- instance: SPI1
name: BMI088
enabled: true
time:
enabled: true
uart:
devices:
- instance: USART3
name: DR16
- instance: USART6
name: NUC
enabled: true