1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Create a pg for rxConfig

This commit is contained in:
jflyper 2018-05-25 11:01:49 +09:00
parent 60de878452
commit 041bfb22c6
99 changed files with 320 additions and 101 deletions

View file

@ -190,7 +190,9 @@ rx_ranges_unittest_SRC := \
$(USER_DIR)/common/bitarray.c \
$(USER_DIR)/common/maths.c \
$(USER_DIR)/fc/rc_modes.c \
$(USER_DIR)/rx/rx.c
$(USER_DIR)/rx/rx.c \
$(USER_DIR)/pg/pg.c \
$(USER_DIR)/pg/rx.c
rx_rx_unittest_SRC := \
@ -198,7 +200,8 @@ rx_rx_unittest_SRC := \
$(USER_DIR)/fc/rc_modes.c \
$(USER_DIR)/common/bitarray.c \
$(USER_DIR)/common/maths.c \
$(USER_DIR)/config/feature.c
$(USER_DIR)/config/feature.c \
$(USER_DIR)/pg/rx.c
scheduler_unittest_SRC := \

View file

@ -24,6 +24,7 @@ extern "C" {
#include "config/feature.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "fc/config.h"
#include "fc/controlrate_profile.h"
#include "fc/fc_core.h"

View file

@ -25,6 +25,7 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/accgyro/accgyro.h"
#include "drivers/accgyro/gyro_sync.h"

View file

@ -27,9 +27,10 @@ extern "C" {
#include "platform.h"
#include "target.h"
#include "build/version.h"
#include "pg/pg.h"
#include "config/feature.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/buf_writer.h"
#include "drivers/vtx_common.h"
#include "fc/config.h"

View file

@ -21,11 +21,12 @@
#include <limits.h>
extern "C" {
#include "platform.h"
#include "build/debug.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "platform.h"
#include "pg/rx.h"
#include "common/axis.h"
#include "common/maths.h"

View file

@ -21,13 +21,16 @@
#include <cmath>
extern "C" {
#include "platform.h"
#include "build/debug.h"
#include "common/axis.h"
#include "common/maths.h"
#include "config/feature.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/accgyro/accgyro.h"
#include "drivers/compass/compass.h"

View file

@ -22,12 +22,15 @@
//#define DEBUG_LEDSTRIP
extern "C" {
#include "platform.h"
#include "build/build_config.h"
#include "common/axis.h"
#include "common/color.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/io.h"
#include "drivers/light_ws2811strip.h"

View file

@ -27,7 +27,9 @@ extern "C" {
#include "blackbox/blackbox.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "common/time.h"

View file

@ -18,6 +18,7 @@
#pragma once
#include <stdio.h>
#include <stdint.h>
#define USE_PARAMETER_GROUPS
@ -108,3 +109,5 @@ typedef struct
#define NVIC_PriorityGroup_2 0x500
#include "target.h"
#include "target/common_defaults_post.h"

View file

@ -29,6 +29,7 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "blackbox/blackbox.h"
#include "blackbox/blackbox_fielddefs.h"
@ -735,4 +736,4 @@ timeDelta_t getTaskDeltaTime(cfTaskId_e) { return 20000; }
}
armingDisableFlags_e getArmingDisableFlags(void) {
return (armingDisableFlags_e) 0;
}
}

View file

@ -47,6 +47,7 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/vcd.h"
#include "pg/rx.h"
#include "rx/rx.h"

View file

@ -28,6 +28,8 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "common/crc.h"
#include "common/utils.h"

View file

@ -20,6 +20,7 @@
extern "C" {
#include "platform.h"
#include "pg/pg.h"
#include "pg/rx.h"
#include "drivers/serial.h"
#include "drivers/time.h"
#include "io/serial.h"

View file

@ -25,7 +25,9 @@ extern "C" {
#include "drivers/io.h"
#include "common/maths.h"
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "fc/rc_controls.h"
#include "fc/rc_modes.h"
#include "rx/rx.h"

View file

@ -23,6 +23,7 @@
extern "C" {
#include "platform.h"
#include "pg/rx.h"
#include "drivers/io.h"
#include "rx/rx.h"
#include "fc/rc_modes.h"

View file

@ -37,6 +37,7 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/nvic.h"
#include "drivers/serial.h"

View file

@ -36,6 +36,7 @@ extern "C" {
#include "pg/pg.h"
#include "pg/pg_ids.h"
#include "pg/rx.h"
#include "drivers/serial.h"
#include "drivers/system.h"