1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00

Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention.

This commit is contained in:
mikeller 2017-11-05 08:46:59 +13:00
parent 62c5711ce7
commit a8d34dabb0
152 changed files with 589 additions and 588 deletions

View file

@ -51,7 +51,6 @@ baro_bmp280_unittest_SRC := \
$(USER_DIR)/drivers/barometer/barometer_bmp280.c
baro_bmp280_unittest_DEFINES := \
USE_BARO \
USE_BARO_BMP280 \
USE_BARO_SPI_BMP280
@ -59,7 +58,6 @@ baro_ms5611_unittest_SRC := \
$(USER_DIR)/drivers/barometer/barometer_ms5611.c
baro_ms5611_unittest_DEFINES := \
USE_BARO \
USE_BARO_MS5611 \
USE_BARO_SPI_MS5611
@ -91,9 +89,9 @@ cli_unittest_SRC := \
$(USER_DIR)/common/typeconversion.c
cli_unittest_DEFINES := \
USE_OSD \
USE_CLI \
SystemCoreClock=1000000 \
OSD
SystemCoreClock=1000000
cms_unittest_SRC := \
$(USER_DIR)/cms/cms.c \
@ -160,7 +158,7 @@ osd_unittest_SRC := \
$(USER_DIR)/fc/runtime_config.c
osd_unittest_DEFINES := \
OSD
USE_OSD
parameter_groups_unittest_SRC := \

View file

@ -22,7 +22,7 @@
//#define DEBUG_ALTITUDE_HOLD
#define BARO
#define USE_BARO
extern "C" {
#include "debug.h"

View file

@ -23,7 +23,7 @@
#include <math.h>
#define BARO
#define USE_BARO
extern "C" {
#include "platform.h"

View file

@ -22,7 +22,7 @@
#include <math.h>
#define BARO
#define USE_BARO
extern "C" {
#include "common/maths.h"

View file

@ -26,9 +26,9 @@
#define U_ID_2 2
#define MAX_PROFILE_COUNT 3
#define MAG
#define BARO
#define GPS
#define USE_MAG
#define USE_BARO
#define USE_GPS
#define USE_DASHBOARD
#define TELEMETRY
#define LED_STRIP

View file

@ -20,14 +20,14 @@
#define SCHEDULER_DELAY_LIMIT 1
#define TASK_GYROPID_DESIRED_PERIOD 100
#define CMS
#define USE_CMS
#define CMS_MAX_DEVICE 4
#define USE_FAKE_GYRO
#define BEEPER
#define BLACKBOX
#define MAG
#define BARO
#define GPS
#define USE_BLACKBOX
#define USE_MAG
#define USE_BARO
#define USE_GPS
#define USE_DASHBOARD
#define SERIAL_RX
#define USE_RX_MSP