qmod: invert WWAN_PERST logic (we use transistors now)

This commit is contained in:
Harald Welte
2017-02-07 16:34:05 +01:00
parent 6732248f71
commit 4a9bce127f

View File

@@ -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;