diff options
author | Kévin Redon <kredon@sysmocom.de> | 2018-07-26 15:34:03 +0200 |
---|---|---|
committer | Kévin Redon <kredon@sysmocom.de> | 2018-07-26 15:34:08 +0200 |
commit | 8e84f8125c68389f0fdc611040fb129282d7febc (patch) | |
tree | 0d62cec9b72afab03d8e7d24f956d93818ce6b9f /firmware | |
parent | d1c65361546203e6c886ff4b8d27ef71696ef76e (diff) |
sniff: rename reset hold/release to assert/deassert
this change is to match the nomenclature used in cardem
Change-Id: Ide99e731cad26aec949ad14d54f46fa611a0b7f8
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/libcommon/include/simtrace_prot.h | 4 | ||||
-rw-r--r-- | firmware/libcommon/source/sniffer.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/firmware/libcommon/include/simtrace_prot.h b/firmware/libcommon/include/simtrace_prot.h index 58e51be..878bc34 100644 --- a/firmware/libcommon/include/simtrace_prot.h +++ b/firmware/libcommon/include/simtrace_prot.h @@ -291,8 +291,8 @@ struct st_modem_status { /* SIMTRACE_MSGT_SNIFF_CHANGE flags */ #define SNIFF_CHANGE_FLAG_CARD_INSERT (1<<0) #define SNIFF_CHANGE_FLAG_CARD_EJECT (1<<1) -#define SNIFF_CHANGE_FLAG_RESET_HOLD (1<<2) -#define SNIFF_CHANGE_FLAG_RESET_RELEASE (1<<3) +#define SNIFF_CHANGE_FLAG_RESET_ASSERT (1<<2) +#define SNIFF_CHANGE_FLAG_RESET_DEASSERT (1<<3) #define SNIFF_CHANGE_FLAG_TIMEOUT_WT (1<<4) /* SIMTRACE_MSGT_SNIFF_ATR, SIMTRACE_MSGT_SNIFF_PPS, SIMTRACE_MSGT_SNIFF_TPDU flags */ #define SNIFF_DATA_FLAG_ERROR_INCOMPLETE (1<<5) diff --git a/firmware/libcommon/source/sniffer.c b/firmware/libcommon/source/sniffer.c index f99c25a..e800216 100644 --- a/firmware/libcommon/source/sniffer.c +++ b/firmware/libcommon/source/sniffer.c @@ -854,9 +854,9 @@ static void Sniffer_reset_isr(const Pin* pPin) } /* Update the ISO state according to the reset change (reset is active low) */ if (PIO_Get(&pin_rst)) { - change_flags |= SNIFF_CHANGE_FLAG_RESET_RELEASE; /* set flag and let main loop send it */ + change_flags |= SNIFF_CHANGE_FLAG_RESET_DEASSERT; /* set flag and let main loop send it */ } else { - change_flags |= SNIFF_CHANGE_FLAG_RESET_HOLD; /* set flag and let main loop send it */ + change_flags |= SNIFF_CHANGE_FLAG_RESET_ASSERT; /* set flag and let main loop send it */ } } @@ -1030,12 +1030,12 @@ void Sniffer_run(void) /* Handle flags */ if (change_flags) { /* WARNING this is not synced with the data buffer handling */ - if (change_flags & SNIFF_CHANGE_FLAG_RESET_HOLD) { + if (change_flags & SNIFF_CHANGE_FLAG_RESET_ASSERT) { if (ISO7816_S_RESET != iso_state) { change_state(ISO7816_S_RESET); } } - if (change_flags & SNIFF_CHANGE_FLAG_RESET_RELEASE) { + if (change_flags & SNIFF_CHANGE_FLAG_RESET_DEASSERT) { if (ISO7816_S_WAIT_ATR != iso_state) { change_state(ISO7816_S_WAIT_ATR); } |