mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-24 22:05:58 +08:00
[chibios] Improved px4 support
- sensors working (SPI) - telemetry wortking (UART) - more to do (PWM, TIMERS, I2C, ADC...)
This commit is contained in:
@@ -75,11 +75,13 @@ void __early_init(void) {
|
||||
#if HAL_USE_SDC || defined(__DOXYGEN__)
|
||||
/**
|
||||
* @brief SDC card detection.
|
||||
* PX4FMU_2.4 doesn't have a sense line for card insertion
|
||||
* it is assumed always present.
|
||||
*/
|
||||
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||
|
||||
(void)sdcp;
|
||||
return !palReadPad(GPIOB, GPIOB_SDIO_DETECT);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user