95,7 → 95,7 |
//FC.StatusFlags = (OSDStatusFlags & OSD_FLAG_MASK1) | (OSDStatusFlags2 & ~OSD_FLAG_MASK1); |
//FC.StatusFlags2 = (OSDStatusFlags & OSD_FLAG_MASK2) | (OSDStatusFlags2 & ~OSD_FLAG_MASK2); |
|
// FC ERRORS FLAGS |
// FC.Error[0] |
#define FC_ERROR0_GYRO_NICK 0x01 |
#define FC_ERROR0_GYRO_ROLL 0x02 |
#define FC_ERROR0_GYRO_YAW 0x04 |
105,13 → 105,14 |
#define FC_ERROR0_PRESSURE 0x40 |
#define FC_ERROR0_CAREFREE 0x80 |
|
// FC.Error[1] |
#define FC_ERROR1_I2C 0x01 |
#define FC_ERROR1_BL_MISSING 0x02 |
#define FC_ERROR1_SPI_RX 0x04 |
#define FC_ERROR1_PPM 0x08 |
#define FC_ERROR1_MIXER 0x10 |
#define FC_ERROR1_RES1 0x20 |
#define FC_ERROR1_RES2 0x40 |
#define FC_ERROR1_RC_VOLTAGE 0x20 |
#define FC_ERROR1_ACC_NOT_CAL 0x40 |
#define FC_ERROR1_RES3 0x80 |
|
// NC Errors |
332,9 → 333,15 |
extern u8 CheckLicense(u8); |
|
// Portpin inputs |
#define PIN6_0 (GPIO6->DR[0x3FC] & 0x01) |
#define PIN6_1 (GPIO6->DR[0x3FC] & 0x02) |
#define PIN6_2 (GPIO6->DR[0x3FC] & 0x04) |
#define PIN6_3 (GPIO6->DR[0x3FC] & 0x08) |
#define PIN6_4 (GPIO6->DR[0x3FC] & 0x10) |
#define PIN6_5 (GPIO6->DR[0x3FC] & 0x20) |
|
#define TRIGGER_PP_INTERN PIN6_0 |
#define TRIGGER_PP_EXTERN PIN6_3 |
#define BLITZ_CONNECTED PIN6_4 |
|
#endif // _MAIN_H |