diff options
author | Kévin Redon <kredon@sysmocom.de> | 2019-05-14 23:20:15 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-02 19:28:52 +0100 |
commit | 8b6991c18c4f90ec6f205756adbabc794abe5c2c (patch) | |
tree | 59750b8b269ee0c144bb1d88a15045036400d3fa | |
parent | 1cfc25e8c18fe57b8a4083cf07184ca27579925d (diff) |
better detect VCC and nRST changes on simtrace2 board
monitoring the state changes of the VCC and nRST lines is required
to correctly detect warm and cold reset
Change-Id: I72099956332724f84226e1495fdc5a5b1a034695
-rw-r--r-- | firmware/libboard/simtrace/include/board.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/libboard/simtrace/include/board.h b/firmware/libboard/simtrace/include/board.h index c109bea..35c9426 100644 --- a/firmware/libboard/simtrace/include/board.h +++ b/firmware/libboard/simtrace/include/board.h @@ -74,9 +74,9 @@ /** Phone connection **/ /* Phone USIM slot 1 VCC pin (VCC_PHONE in schematic) */ -#define PIN_USIM1_VCC {PIO_PA25, PIOA, ID_PIOA, PIO_INPUT, PIO_DEFAULT} +#define PIN_USIM1_VCC {PIO_PA25, PIOA, ID_PIOA, PIO_INPUT, PIO_IT_EDGE | PIO_DEGLITCH } /* Phone USIM slot 1 RST pin (active low; RST_PHONE in schematic) */ -#define PIN_USIM1_nRST {PIO_PA24, PIOA, ID_PIOA, PIO_INPUT, PIO_IT_RISE_EDGE | PIO_DEGLITCH } +#define PIN_USIM1_nRST {PIO_PA24, PIOA, ID_PIOA, PIO_INPUT, PIO_IT_EDGE | PIO_DEGLITCH } /* Phone I/O data signal input/output (I/O_PHONE in schematic) */ #define PIN_PHONE_IO {PIO_PA22A_TXD1, PIOA, ID_PIOA, PIO_PERIPH_A, PIO_DEFAULT} /* Phone CLK clock input (CLK_PHONE in schematic) */ |