mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Re-organize files by topic
Keil project not updated, I have no way to verify it. Note, mw.c, drv_pwm.c and drv_system.c contain code for too many topics. Later commits will relocate the code as appropriate. Not even looked at utils yet. 'Utils' is a bad naming practice and is a synonym for 'too lazy to find the right file/name'.
This commit is contained in:
parent
a8f383077c
commit
9fa99cf9f5
61 changed files with 76 additions and 6363 deletions
64
src/board.h
64
src/board.h
|
@ -21,7 +21,7 @@
|
|||
#endif
|
||||
|
||||
#include "drv_system.h" // timers, delays, etc
|
||||
#include "drv_gpio.h"
|
||||
#include "drivers/gpio/drv_gpio.h"
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846f
|
||||
|
@ -278,48 +278,48 @@ typedef struct baro_t
|
|||
|
||||
#ifdef FY90Q
|
||||
// FY90Q
|
||||
#include "drv_adc.h"
|
||||
#include "drivers/adc/drv_adc.h"
|
||||
#include "drv_i2c.h"
|
||||
#include "drv_pwm.h"
|
||||
#include "drv_uart.h"
|
||||
#include "drivers/serial/drv_uart.h"
|
||||
#else
|
||||
|
||||
#ifdef OLIMEXINO
|
||||
// OLIMEXINO
|
||||
#include "drv_adc.h"
|
||||
#include "drv_i2c.h"
|
||||
#include "drv_spi.h"
|
||||
#include "drv_adxl345.h"
|
||||
#include "drv_mpu3050.h"
|
||||
#include "drv_mpu6050.h"
|
||||
#include "drv_l3g4200d.h"
|
||||
#include "drivers/adc/drv_adc.h"
|
||||
#include "drivers/bus/drv_i2c.h"
|
||||
#include "drivers/bus/drv_spi.h"
|
||||
#include "drivers/accgyro/drv_adxl345.h"
|
||||
#include "drivers/accgyro/drv_mpu3050.h"
|
||||
#include "drivers/accgyro/drv_mpu6050.h"
|
||||
#include "drivers/accgyro/drv_l3g4200d.h"
|
||||
#include "drv_pwm.h"
|
||||
#include "drv_timer.h"
|
||||
#include "drv_serial.h"
|
||||
#include "drv_uart.h"
|
||||
#include "drv_softserial.h"
|
||||
#include "drivers/timer/drv_timer.h"
|
||||
#include "drivers/serial/drv_serial.h"
|
||||
#include "drivers/serial/drv_uart.h"
|
||||
#include "drivers/serial/drv_softserial.h"
|
||||
#else
|
||||
|
||||
// AfroFlight32
|
||||
#include "drv_adc.h"
|
||||
#include "drv_adxl345.h"
|
||||
#include "drv_bma280.h"
|
||||
#include "drv_bmp085.h"
|
||||
#include "drv_ms5611.h"
|
||||
#include "drv_hmc5883l.h"
|
||||
#include "drv_i2c.h"
|
||||
#include "drv_spi.h"
|
||||
#include "drv_ledring.h"
|
||||
#include "drv_mma845x.h"
|
||||
#include "drv_mpu3050.h"
|
||||
#include "drv_mpu6050.h"
|
||||
#include "drv_l3g4200d.h"
|
||||
#include "drivers/adc/drv_adc.h"
|
||||
#include "drivers/accgyro/drv_adxl345.h"
|
||||
#include "drivers/accgyro/drv_bma280.h"
|
||||
#include "drivers/altimeter/drv_bmp085.h"
|
||||
#include "drivers/altimeter/drv_ms5611.h"
|
||||
#include "drivers/compass/drv_hmc5883l.h"
|
||||
#include "drivers/bus/drv_i2c.h"
|
||||
#include "drivers/bus/drv_spi.h"
|
||||
#include "drivers/light/drv_ledring.h"
|
||||
#include "drivers/accgyro/drv_mma845x.h"
|
||||
#include "drivers/accgyro/drv_mpu3050.h"
|
||||
#include "drivers/accgyro/drv_mpu6050.h"
|
||||
#include "drivers/accgyro/drv_l3g4200d.h"
|
||||
#include "drv_pwm.h"
|
||||
#include "drv_timer.h"
|
||||
#include "drv_serial.h"
|
||||
#include "drv_uart.h"
|
||||
#include "drv_softserial.h"
|
||||
#include "drv_hcsr04.h"
|
||||
#include "drivers/timer/drv_timer.h"
|
||||
#include "drivers/serial/drv_serial.h"
|
||||
#include "drivers/serial/drv_uart.h"
|
||||
#include "drivers/serial/drv_softserial.h"
|
||||
#include "drivers/sonar/drv_hcsr04.h"
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "board.h"
|
||||
#include "mw.h"
|
||||
|
||||
#include "telemetry_common.h"
|
||||
#include "telemetry/telemetry_common.h"
|
||||
|
||||
core_t core;
|
||||
|
||||
|
|
4
src/mw.c
4
src/mw.c
|
@ -1,8 +1,8 @@
|
|||
#include "board.h"
|
||||
#include "mw.h"
|
||||
|
||||
#include "cli.h"
|
||||
#include "telemetry_common.h"
|
||||
#include "ui/cli.h"
|
||||
#include "telemetry/telemetry_common.h"
|
||||
|
||||
// June 2013 V2.2-dev
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#include "board.h"
|
||||
#include "mw.h"
|
||||
|
||||
#include "cli.h"
|
||||
#include "telemetry_common.h"
|
||||
#include "ui/cli.h"
|
||||
#include "telemetry/telemetry_common.h"
|
||||
|
||||
// Multiwii Serial Protocol 0
|
||||
#define MSP_VERSION 0
|
Loading…
Add table
Add a link
Reference in a new issue