1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Tidied serial and telemetry files

This commit is contained in:
Martin Budden 2016-08-01 06:45:59 +01:00
parent 9a38d8a9e1
commit 168469236b
12 changed files with 48 additions and 38 deletions

View file

@ -21,7 +21,6 @@
*/
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "platform.h"

View file

@ -15,10 +15,9 @@
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/
#include "rx/rx.h"
#pragma once
#ifndef TELEMETRY_FRSKY_H_
#define TELEMETRY_FRSKY_H_
#include "rx/rx.h"
typedef enum {
FRSKY_VFAS_PRECISION_LOW = 0,
@ -32,4 +31,3 @@ void initFrSkyTelemetry(telemetryConfig_t *telemetryConfig);
void configureFrSkyTelemetryPort(void);
void freeFrSkyTelemetryPort(void);
#endif /* TELEMETRY_FRSKY_H_ */

View file

@ -57,11 +57,12 @@
#include <string.h>
#include "platform.h"
#include "build_config.h"
#include "debug.h"
#ifdef TELEMETRY
#include "build_config.h"
#include "debug.h"
#include "common/axis.h"
#include "drivers/system.h"

View file

@ -0,0 +1,23 @@
/*
* This file is part of Cleanflight.
*
* Cleanflight is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cleanflight is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Cleanflight. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
struct telemetryConfig_s;
void initJetiExBusTelemetry(struct telemetryConfig_s *initialTelemetryConfig);
void checkJetiExBusTelemetryState(void);
void handleJetiExBusTelemetry(void);

View file

@ -33,10 +33,10 @@
#include "platform.h"
#include "build_config.h"
#ifdef TELEMETRY
#include "build_config.h"
#include "common/maths.h"
#include "common/axis.h"
#include "common/color.h"

View file

@ -17,7 +17,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "platform.h"
@ -40,7 +39,7 @@
#include "telemetry/hott.h"
#include "telemetry/smartport.h"
#include "telemetry/ltm.h"
#include "rx/jetiexbus.h"
#include "telemetry/jetiexbus.h"
static telemetryConfig_t *telemetryConfig;