From 2c9d7450ac7d0f95a5c9923e49aeb27482a20166 Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Thu, 15 Oct 2015 21:07:54 +0100 Subject: [PATCH] Add MPU INT support to mpu6500 driver. --- src/main/drivers/accgyro_mpu6500.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/drivers/accgyro_mpu6500.c b/src/main/drivers/accgyro_mpu6500.c index 925d63b2ab..258be3f68b 100644 --- a/src/main/drivers/accgyro_mpu6500.c +++ b/src/main/drivers/accgyro_mpu6500.c @@ -66,11 +66,15 @@ bool mpu6500GyroDetect(gyro_t *gyro) void mpu6500AccInit(void) { + mpuIntExtiInit(); + acc_1G = 512 * 8; } void mpu6500GyroInit(uint16_t lpf) { + mpuIntExtiInit(); + #ifdef NAZE // FIXME target specific code in driver code.