Referee/User/bsp/bsp_config.yaml
2026-03-11 23:02:01 +08:00

95 lines
1.6 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: 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'
enabled: true
mm:
enabled: true
pwm:
configs:
- channel: TIM_CHANNEL_1
custom_name: TIM10_CH1
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: VT13
- instance: USART6
name: REF
enabled: true