mirror of
https://github.com/opentx/opentx.git
synced 2025-07-15 20:35:17 +03:00
Taranis X9D REV4a support removed (didn't compile since 2.2)
This commit is contained in:
parent
eba9171d0e
commit
cf5cb10d6f
3 changed files with 2 additions and 12 deletions
|
@ -42,8 +42,6 @@
|
||||||
const int8_t ana_direction[NUM_ANALOGS] = {-1,1,-1,1, 1,1};
|
const int8_t ana_direction[NUM_ANALOGS] = {-1,1,-1,1, 1,1};
|
||||||
#elif defined(PCBXLITE)
|
#elif defined(PCBXLITE)
|
||||||
const int8_t ana_direction[NUM_ANALOGS] = {1,-1,-1,1, -1,1, 1};
|
const int8_t ana_direction[NUM_ANALOGS] = {1,-1,-1,1, -1,1, 1};
|
||||||
#elif defined(REV4a)
|
|
||||||
const int8_t ana_direction[NUM_ANALOGS] = {1,-1,1,-1, 1,-1,0, 1,1, 1};
|
|
||||||
#else
|
#else
|
||||||
const int8_t ana_direction[NUM_ANALOGS] = {1,-1,1,-1, 1,1,0, 1,1, 1};
|
const int8_t ana_direction[NUM_ANALOGS] = {1,-1,1,-1, 1,1,0, 1,1, 1};
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -639,11 +639,7 @@ uint8_t isBacklightEnabled(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// I2C driver: EEPROM + Audio Volume
|
// I2C driver: EEPROM + Audio Volume
|
||||||
#if defined(REV4a)
|
|
||||||
#define EEPROM_SIZE (64*1024)
|
|
||||||
#else
|
|
||||||
#define EEPROM_SIZE (32*1024)
|
#define EEPROM_SIZE (32*1024)
|
||||||
#endif
|
|
||||||
|
|
||||||
void i2cInit(void);
|
void i2cInit(void);
|
||||||
void eepromReadBlock(uint8_t * buffer, size_t address, size_t size);
|
void eepromReadBlock(uint8_t * buffer, size_t address, size_t size);
|
||||||
|
|
|
@ -1215,11 +1215,7 @@
|
||||||
#define I2C_SCL_GPIO_PinSource GPIO_PinSource6
|
#define I2C_SCL_GPIO_PinSource GPIO_PinSource6
|
||||||
#define I2C_SDA_GPIO_PinSource GPIO_PinSource7
|
#define I2C_SDA_GPIO_PinSource GPIO_PinSource7
|
||||||
#endif
|
#endif
|
||||||
#if defined(REV4a)
|
|
||||||
#define I2C_SPEED 100000
|
|
||||||
#else
|
|
||||||
#define I2C_SPEED 400000
|
#define I2C_SPEED 400000
|
||||||
#endif
|
|
||||||
#define I2C_ADDRESS_EEPROM 0xA2
|
#define I2C_ADDRESS_EEPROM 0xA2
|
||||||
#define I2C_ADDRESS_VOLUME 0x5C
|
#define I2C_ADDRESS_VOLUME 0x5C
|
||||||
#define I2C_FLASH_PAGESIZE 64
|
#define I2C_FLASH_PAGESIZE 64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue