mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Merge pull request #11585 from SteveCEvans/exti_use
Remove USE_EXTI, USE_GYRO_EXTI and USE_MPU_DATA_READY_SIGNAL defines
This commit is contained in:
commit
671f8abbc5
121 changed files with 143 additions and 483 deletions
|
@ -197,9 +197,16 @@ extern "C" {
|
|||
void IOHi() {}
|
||||
void IOLo() {}
|
||||
void IOInit() {}
|
||||
bool IORead(IO_t ) { return true; }
|
||||
void IOGetByTag() {}
|
||||
void IORelease(IO_t) {}
|
||||
bool busBusy(const extDevice_t*, bool*) {return false;}
|
||||
void busDeviceRegister(const extDevice_t*) {}
|
||||
bool busReadRegisterBufferStart(const extDevice_t*, uint8_t, uint8_t*, uint8_t) {return true;}
|
||||
bool busWriteRegisterStart(const extDevice_t*, uint8_t, uint8_t) {return true;}
|
||||
void EXTIHandlerInit(extiCallbackRec_t *, extiHandlerCallback *) {}
|
||||
void EXTIConfig(IO_t, extiCallbackRec_t *, int, ioConfig_t, extiTrigger_t) {}
|
||||
void EXTIRelease(IO_t) {}
|
||||
void EXTIEnable(IO_t) {}
|
||||
void EXTIDisable(IO_t) {}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
extern "C" {
|
||||
#include "drivers/accgyro/accgyro.h"
|
||||
#include "platform.h"
|
||||
#include "pg/pg.h"
|
||||
#include "pg/pg_ids.h"
|
||||
|
@ -80,6 +81,10 @@ extern "C" {
|
|||
|
||||
// set up tasks to take a simulated representative time to execute
|
||||
bool gyroFilterReady(void) { return taskFilterReady; }
|
||||
gyroDev_t gyro {
|
||||
.gyroModeSPI = GYRO_EXTI_NO_INT
|
||||
};
|
||||
gyroDev_t *gyroActiveDev(void) { return &gyro; }
|
||||
bool pidLoopReady(void) { return taskPidReady; }
|
||||
void failsafeCheckDataFailurePeriod(void) {}
|
||||
void failsafeUpdateState(void) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue