mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-28 01:53:48 +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__)
|
#if HAL_USE_SDC || defined(__DOXYGEN__)
|
||||||
/**
|
/**
|
||||||
* @brief SDC card detection.
|
* @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) {
|
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||||
|
|
||||||
(void)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