[chibios] Improved px4 support

- sensors working (SPI)
- telemetry wortking (UART)
- more to do (PWM, TIMERS, I2C, ADC...)
This commit is contained in:
Michal Podhradsky
2017-02-17 11:15:53 -08:00
parent 4e8bbbf7c0
commit a4f1cefc7e
2 changed files with 234 additions and 573 deletions
@@ -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