Change in simtrace2[master]: cardem: Use USART timeout for waiting time

laforge gerrit-no-reply at
Sun Apr 4 21:19:58 UTC 2021

Hello Jenkins Builder, tsaitgaist, 

I'd like you to reexamine a change. Please visit

to look at the new patch set (#2).

Change subject: cardem: Use USART timeout for waiting time

cardem: Use USART timeout for waiting time

The reset/ATR handling has been heavily updated/fixed.

Instead of using the timer/counter peripheral to handle the waiting time
and corresponding timeout, the USART peripheral internal timeout
mechanism is used.

This is particularly important for the SIMtrace board since the clock
signal is not connected to the timer counter.  thus this change adds
card emulation support for SIMtrace boards.

Fi and Di have been properly rename to F and D since the "i" stands only
for an "indicated" value, not the actual value.  This does not change
the USB protocol (the variable have just been renamed).  Additional
variables store more information about the card capabilities

NOTE: It has only be tested for the SIMtrace board

Change-Id: Ibcb2c8cace9137695adf5fb3de43566f7cfb93b5
M contrib/
M firmware/apps/cardem/Makefile
M firmware/apps/cardem/main.c
M firmware/apps/trace/Makefile
M firmware/libboard/qmod/include/board.h
M firmware/libboard/simtrace/include/board.h
M firmware/libcommon/include/card_emu.h
M firmware/libcommon/include/simtrace_prot.h
M firmware/libcommon/include/tc_etu.h
M firmware/libcommon/source/card_emu.c
M firmware/libcommon/source/mode_cardemu.c
M firmware/libcommon/source/tc_etu.c
M firmware/libosmocore/include/osmocom/core/utils.h
M host/src/simtrace2-cardem-pcsc.c
14 files changed, 340 insertions(+), 64 deletions(-)

  git pull ssh:// refs/changes/20/23620/2
To view, visit
To unsubscribe, or for help writing mail filters, visit

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-Change-Id: Ibcb2c8cace9137695adf5fb3de43566f7cfb93b5
Gerrit-Change-Number: 23620
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: tsaitgaist <kredon at>
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gerrit-log mailing list