mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
i2c: enable flexiport i2c on revolution
This commit is contained in:
parent
b0ef456ccb
commit
853600a2ef
@ -103,6 +103,9 @@ TIM8 | | | |
|
|||||||
#define PIOS_I2C_MAX_DEVS 3
|
#define PIOS_I2C_MAX_DEVS 3
|
||||||
extern uint32_t pios_i2c_mag_adapter_id;
|
extern uint32_t pios_i2c_mag_adapter_id;
|
||||||
#define PIOS_I2C_MAIN_ADAPTER (pios_i2c_mag_adapter_id)
|
#define PIOS_I2C_MAIN_ADAPTER (pios_i2c_mag_adapter_id)
|
||||||
|
extern uint32_t pios_i2c_flexiport_adapter_id;
|
||||||
|
#define PIOS_I2C_FLEXI_ADAPTER (pios_i2c_flexiport_adapter_id)
|
||||||
|
#define PIOS_I2C_ETASV3_ADAPTER (PIOS_I2C_FLEXI_ADAPTER)
|
||||||
|
|
||||||
//-------------------------
|
//-------------------------
|
||||||
// PIOS_USART
|
// PIOS_USART
|
||||||
|
@ -669,15 +669,12 @@ void PIOS_Board_Init(void) {
|
|||||||
case HWSETTINGS_RV_FLEXIPORT_DISABLED:
|
case HWSETTINGS_RV_FLEXIPORT_DISABLED:
|
||||||
break;
|
break;
|
||||||
case HWSETTINGS_RV_FLEXIPORT_I2C:
|
case HWSETTINGS_RV_FLEXIPORT_I2C:
|
||||||
//TODO: Enable I2C
|
|
||||||
#if defined(PIOS_INCLUDE_I2C)
|
#if defined(PIOS_INCLUDE_I2C)
|
||||||
/*
|
|
||||||
{
|
{
|
||||||
if (PIOS_I2C_Init(&pios_i2c_flexi_adapter_id, &pios_i2c_flexi_adapter_cfg)) {
|
if (PIOS_I2C_Init(&pios_i2c_flexiport_adapter_id, &pios_i2c_flexiport_adapter_cfg)) {
|
||||||
PIOS_Assert(0);
|
PIOS_Assert(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
#endif /* PIOS_INCLUDE_I2C */
|
#endif /* PIOS_INCLUDE_I2C */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user