This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Hoernchen gerrit-no-reply at lists.osmocom.orgHoernchen has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16291 ) Change subject: cuart: fix etu calculation ...................................................................... cuart: fix etu calculation Change-Id: Ib2f83654bdaae5090bb1dfd75e0906551d6b6aa7 --- M ccid_common/cuart.c 1 file changed, 6 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ccid-firmware refs/changes/91/16291/1 diff --git a/ccid_common/cuart.c b/ccid_common/cuart.c index 9a68167..1ae50c6 100644 --- a/ccid_common/cuart.c +++ b/ccid_common/cuart.c @@ -29,8 +29,12 @@ /* obtain the current ETU in us */ static int get_etu_in_us(struct card_uart *cuart) { - /* FIXME: actually implement this based on the real baud rate */ - return (1000000/9600); + OSMO_ASSERT(cuart); + OSMO_ASSERT(cuart->driver); + OSMO_ASSERT(cuart->driver->ops); + OSMO_ASSERT(cuart->driver->ops->ctrl); + + return 1e6 / cuart->driver->ops->ctrl(cuart, CUART_CTL_GET_BAUDRATE, 0); } /* software waiting-time timer has expired */ -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16291 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: Ib2f83654bdaae5090bb1dfd75e0906551d6b6aa7 Gerrit-Change-Number: 16291 Gerrit-PatchSet: 1 Gerrit-Owner: Hoernchen <ewild at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191127/165eb64a/attachment.htm>