2026rc_r2/User/bsp/bsp_config.yaml
2026-03-17 04:39:54 +08:00

91 lines
1.5 KiB
YAML

can:
devices:
- instance: CAN1
name: CAN1
- instance: CAN2
name: CAN2
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: OUT2
has_exti: false
ioc_label: OUT2
pin: PE11
type: OUTPUT
- custom_name: OUT3
has_exti: false
ioc_label: OUT3
pin: PE13
type: OUTPUT
- custom_name: OUT1
has_exti: false
ioc_label: OUT1
pin: PE9
type: OUTPUT
- 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_1
custom_name: IMU_HEAT_PWM
label: IMU_HEAT_PWM
timer: TIM10
enabled: true
spi:
devices:
- instance: SPI1
name: BSP_SPI_BMI088
enabled: true
time:
enabled: true
uart:
devices:
- instance: USART1
name: BSP_UART_NUC
- instance: USART3
name: BSP_UART_DR16
enabled: true