Hoernchen has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/40722?usp=email )
Change subject: timers: fix them
......................................................................
timers: fix them
Since they are barely used at all they silently broke during the usb fixing attempts,
which in turn broke ATR timeouts for cards that don't play well with 5V.
Change-Id: I0a9ba7a9097fe09614beceeae7541bd7b82b9087
---
M sysmoOCTSIM/main.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/22/40722/1
diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c
index b0c0229..7d81853 100644
--- a/sysmoOCTSIM/main.c
+++ b/sysmoOCTSIM/main.c
@@ -543,7 +543,7 @@
void reset_all_stuff_irq(void)
{
- SysTick->CTRL = 0; // no clock ticks for osmo timers
+ SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; // no clock ticks for osmo timers
Sercom *const sercom_modules[] = SERCOM_INSTS;
for (uint32_t i = 0; i < SERCOM_INST_NUM; i++) {
@@ -605,7 +605,7 @@
#endif
}
- SysTick->CTRL = 1;
+ SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk;
// while (!ccid_df_is_enabled())
// ;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/40722?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I0a9ba7a9097fe09614beceeae7541bd7b82b9087
Gerrit-Change-Number: 40722
Gerrit-PatchSet: 1
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>