mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-25 17:58:32 +03:00
qmod: invert WWAN_PERST logic (we use transistors now)
This commit is contained in:
@@ -26,7 +26,7 @@ static void perst_tmr_cb(void *data)
|
|||||||
{
|
{
|
||||||
const Pin *pin = data;
|
const Pin *pin = data;
|
||||||
/* release the (low-active) reset */
|
/* release the (low-active) reset */
|
||||||
PIO_Set(pin);
|
PIO_Clear(pin);
|
||||||
}
|
}
|
||||||
|
|
||||||
int wwan_perst_do_reset(int modem_nr)
|
int wwan_perst_do_reset(int modem_nr)
|
||||||
@@ -50,7 +50,7 @@ int wwan_perst_do_reset(int modem_nr)
|
|||||||
default:
|
default:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
PIO_Clear(pin);
|
PIO_Set(pin);
|
||||||
osmo_timer_schedule(tmr, PERST_DURATION_MS/1000, (PERST_DURATION_MS%1000)*1000);
|
osmo_timer_schedule(tmr, PERST_DURATION_MS/1000, (PERST_DURATION_MS%1000)*1000);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user