Telemetry/AVR/Unify serial driver

This commit is contained in:
PT_Dreamer
2017-02-04 12:03:20 +01:00
committed by Bertrand Songis
parent 2f9d9c1a99
commit f83aef4606
11 changed files with 181 additions and 392 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ enum FrSkyDataState {
#endif
};
NOINLINE void processFrskyTelemetryData(uint8_t data)
NOINLINE void processSerialData(uint8_t data)
{
static uint8_t dataState = STATE_DATA_IDLE;
+1 -1
View File
@@ -479,6 +479,6 @@ void frskySetCellVoltage(uint8_t battnumber, frskyCellVoltage_t cellVolts);
void frskyUpdateCells();
#endif
void processFrskyTelemetryData(uint8_t data);
void processSerialData(uint8_t data);
#endif // _FRSKY_H_
-1
View File
@@ -29,7 +29,6 @@
#define MAVLINK_COMM_NUM_BUFFERS 1
#include "GCS_MAVLink/include_v1.0/mavlink_types.h"
#include "targets/common/avr/serial_driver.h"
#include "opentx.h"
extern int8_t mav_heartbeat;
+2 -2
View File
@@ -82,7 +82,7 @@ void processTelemetryData(uint8_t data)
return;
}
#endif
processFrskyTelemetryData(data);
processSerialData(data);
}
#endif
@@ -115,7 +115,7 @@ void telemetryWakeup()
if (telemetryProtocol == PROTOCOL_FRSKY_D_SECONDARY) {
uint8_t data;
while (telemetrySecondPortReceive(data)) {
processFrskyTelemetryData(data);
processSerialData(data);
}
}
else {