mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-06 21:54:15 +01:00
Merged in f5soh/librepilot/LP-582_Revonano_flexi_i2c (pull request #497)
LP-582 RevoNano: Fix missing flexi I2C Approved-by: Philippe Renon <philippe_renon@yahoo.fr> Approved-by: Lalanne Laurent <f5soh@free.fr>
This commit is contained in:
commit
1ab7956c1a
@ -207,6 +207,15 @@ void PIOS_Board_Init(void)
|
|||||||
PIOS_BOARD_IO_Configure_UART(&pios_usart_flexi_cfg, flexi_function_map[hwsettings_flexiport]);
|
PIOS_BOARD_IO_Configure_UART(&pios_usart_flexi_cfg, flexi_function_map[hwsettings_flexiport]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(PIOS_INCLUDE_I2C)
|
||||||
|
if (hwsettings_flexiport == HWSETTINGS_RM_FLEXIPORT_I2C) {
|
||||||
|
if (PIOS_I2C_Init(&pios_i2c_flexiport_adapter_id, &pios_i2c_flexiport_adapter_cfg)) {
|
||||||
|
PIOS_Assert(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Configure MainPort */
|
||||||
uint8_t hwsettings_mainport;
|
uint8_t hwsettings_mainport;
|
||||||
HwSettingsRM_MainPortGet(&hwsettings_mainport);
|
HwSettingsRM_MainPortGet(&hwsettings_mainport);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user