mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 15:33:57 -04:00
AP_BoardConfig: init chibios IO after boardconfig
this allows for the init to use parameters such as BRD_IO_ENABLE from AP_BoardConfig
This commit is contained in:
parent
c742543565
commit
e88fe93688
@ -278,6 +278,11 @@ void AP_BoardConfig::board_setup()
|
|||||||
px4_setup_peripherals();
|
px4_setup_peripherals();
|
||||||
px4_setup_pwm();
|
px4_setup_pwm();
|
||||||
px4_setup_safety_mask();
|
px4_setup_safety_mask();
|
||||||
|
#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
|
||||||
|
// init needs to be done after boardconfig is read so parameters are set
|
||||||
|
hal.gpio->init();
|
||||||
|
hal.rcin->init();
|
||||||
|
hal.rcout->init();
|
||||||
#endif
|
#endif
|
||||||
board_setup_uart();
|
board_setup_uart();
|
||||||
board_setup_sbus();
|
board_setup_sbus();
|
||||||
|
Loading…
Reference in New Issue
Block a user