mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Introduce per device pin pre-init
This commit is contained in:
parent
2e81109be1
commit
9ea1428d11
44 changed files with 219 additions and 201 deletions
|
@ -46,6 +46,19 @@
|
|||
uint8_t requestedSensors[SENSOR_INDEX_COUNT] = { GYRO_NONE, ACC_NONE, BARO_NONE, MAG_NONE, RANGEFINDER_NONE };
|
||||
uint8_t detectedSensors[SENSOR_INDEX_COUNT] = { GYRO_NONE, ACC_NONE, BARO_NONE, MAG_NONE, RANGEFINDER_NONE };
|
||||
|
||||
void sensorsPreInit(void)
|
||||
{
|
||||
gyroPreInit();
|
||||
|
||||
#ifdef USE_MAG
|
||||
compassPreInit();
|
||||
#endif
|
||||
|
||||
#ifdef USE_BARO
|
||||
baroPreInit();
|
||||
#endif
|
||||
}
|
||||
|
||||
bool sensorsAutodetect(void)
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue