Re #2908: frsky_d.cpp split into ARM and nonARM files, ARM Frsky alarms code removed completely

This commit is contained in:
Damjan Adamic
2015-09-20 13:08:41 +02:00
parent 18ffe9f503
commit bfc01f9504
5 changed files with 344 additions and 360 deletions
+23 -1
View File
@@ -50,6 +50,18 @@
#define FRSKY_SPORT_AVERAGING 4
#define FRSKY_D_AVERAGING 8
// Enumerate FrSky packet codes
#define LINKPKT 0xfe
#define USRPKT 0xfd
#define A11PKT 0xfc
#define A12PKT 0xfb
#define A21PKT 0xfa
#define A22PKT 0xf9
#define ALRM_REQUEST 0xf8
#define RSSI1PKT 0xf7
#define RSSI2PKT 0xf6
#define RSSI_REQUEST 0xf1
// FrSky PRIM IDs (1 byte)
#define DATA_FRAME 0x10
@@ -471,7 +483,7 @@ enum FrSkyDataState {
#endif
};
#if defined(PCBTARANIS)
#if defined(CPUARM)
#define frskySendAlarms()
#else
#define SEND_RSSI_ALARMS 6
@@ -486,6 +498,16 @@ enum FrSkyDataState {
}
#endif
#if defined(FRSKY_HUB)
typedef enum {
TS_IDLE = 0, // waiting for 0x5e frame marker
TS_DATA_ID, // waiting for dataID
TS_DATA_LOW, // waiting for data low byte
TS_DATA_HIGH, // waiting for data high byte
TS_XOR = 0x80 // decode stuffed byte
} TS_STATE;
#endif
// FrSky D Protocol
void processHubPacket(uint8_t id, int16_t value);
void frskyDSendNextAlarm(void);