mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
firmware: octsimtest: ensure all card_insert GPIO are 0 after reset
Change-Id: I3c3744673ba53750cb66aa5023c8228edb006bfc
This commit is contained in:
@@ -79,8 +79,10 @@ void board_main_top(void)
|
||||
mux_init();
|
||||
i2c_pin_init();
|
||||
/* PORT A: all outputs, Port B0 output, B1..B7 unused */
|
||||
if (mcp23017_init(MCP23017_ADDRESS, 0x00, 0xfe) == 0)
|
||||
if (mcp23017_init(MCP23017_ADDRESS, 0x00, 0xfe) == 0) {
|
||||
mcp2317_present = true;
|
||||
mcp23017_set_output_a(MCP23017_ADDRESS, 0);
|
||||
}
|
||||
/* Initialize checking for card insert/remove events */
|
||||
//card_present_init();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user