Skip to content

Commit

Permalink
Merge pull request #9056 from dlt2018/aocodarcf7mini
Browse files Browse the repository at this point in the history
Update Aocodarcf7mini
  • Loading branch information
DzikuVx committed May 23, 2023
2 parents f3105b3 + c593b68 commit c1ec7cd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/target/AOCODARCF7MINI/target.c
@@ -1,3 +1,10 @@
/*
* @Author: g05047
* @Date: 2023-03-24 17:43:23
* @LastEditors: g05047
* @LastEditTime: 2023-05-11 15:49:30
* @Description: file content
*/
/*
* This file is part of INAV.
*
Expand Down Expand Up @@ -26,7 +33,9 @@
#include "drivers/pinio.h"
#include "drivers/sensor.h"

BUSDEV_REGISTER_SPI_TAG(busdev_mpu6500, DEVHW_MPU6500, MPU6500_SPI_BUS, MPU6500_CS_PIN, MPU6500_EXTI_PIN, 0, DEVFLAGS_NONE, IMU_MPU6500_ALIGN);
BUSDEV_REGISTER_SPI_TAG(busdev_mpu6500, DEVHW_MPU6500, MPU6500_SPI_BUS, MPU6500_CS_PIN, MPU6500_EXTI_PIN, 0, DEVFLAGS_NONE, IMU_MPU6500_ALIGN);
BUSDEV_REGISTER_SPI_TAG(busdev_mpu6000, DEVHW_MPU6000, MPU6000_SPI_BUS, MPU6000_CS_PIN, MPU6000_EXTI_PIN, 0, DEVFLAGS_NONE, IMU_MPU6000_ALIGN);


timerHardware_t timerHardware[] = {
DEF_TIM(TIM1, CH3, PA10, TIM_USE_PPM, 0, 0), // PPM, RX1
Expand Down
6 changes: 6 additions & 0 deletions src/main/target/AOCODARCF7MINI/target.h
Expand Up @@ -45,8 +45,14 @@
#define MPU6500_CS_PIN PB2
#define MPU6500_SPI_BUS BUS_SPI1

#define USE_IMU_MPU6000
#define IMU_MPU6000_ALIGN CW0_DEG
#define MPU6000_CS_PIN PB2
#define MPU6000_SPI_BUS BUS_SPI1

#define USE_EXTI
#define MPU6500_EXTI_PIN PC4
#define MPU6000_EXTI_PIN PC4

#define USE_MPU_DATA_READY_SIGNAL

Expand Down

0 comments on commit c1ec7cd

Please sign in to comment.