We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c9c3c2 commit 0ae0687Copy full SHA for 0ae0687
1 file changed
flight/targets/boards/revonano/firmware/pios_board.c
@@ -207,6 +207,15 @@ void PIOS_Board_Init(void)
207
PIOS_BOARD_IO_Configure_UART(&pios_usart_flexi_cfg, flexi_function_map[hwsettings_flexiport]);
208
}
209
210
+#if defined(PIOS_INCLUDE_I2C)
211
+ if (hwsettings_flexiport == HWSETTINGS_RM_FLEXIPORT_I2C) {
212
+ if (PIOS_I2C_Init(&pios_i2c_flexiport_adapter_id, &pios_i2c_flexiport_adapter_cfg)) {
213
+ PIOS_Assert(0);
214
+ }
215
216
+#endif
217
+
218
+ /* Configure MainPort */
219
uint8_t hwsettings_mainport;
220
HwSettingsRM_MainPortGet(&hwsettings_mainport);
221
0 commit comments