Change in osmo-ccid-firmware[master]: sercom config for t1

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Nov 28 15:17:05 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16265 )

Change subject: sercom config for t1
......................................................................

sercom config for t1

T0 doesn't work, as the datasheet states it's synchronous, apparently to the internal clock.
That doesn't align too well with what 7816-3 says, so this already fails during the ATR after a few tries.

Change-Id: Ie6cb7ec51036f1de15c83b59d130f3cb85309594
---
M sysmoOCTSIM/config/hpl_sercom_config.h
1 file changed, 14 insertions(+), 14 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/sysmoOCTSIM/config/hpl_sercom_config.h b/sysmoOCTSIM/config/hpl_sercom_config.h
index beac040..bb2bbff 100644
--- a/sysmoOCTSIM/config/hpl_sercom_config.h
+++ b/sysmoOCTSIM/config/hpl_sercom_config.h
@@ -52,7 +52,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_0_USART_SBMODE
-#define CONF_SERCOM_0_USART_SBMODE 0
+#define CONF_SERCOM_0_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -70,7 +70,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_0_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_0_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_0_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -324,7 +324,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_1_USART_SBMODE
-#define CONF_SERCOM_1_USART_SBMODE 0
+#define CONF_SERCOM_1_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -342,7 +342,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_1_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_1_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_1_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -596,7 +596,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_2_USART_SBMODE
-#define CONF_SERCOM_2_USART_SBMODE 0
+#define CONF_SERCOM_2_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -614,7 +614,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_2_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_2_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_2_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -868,7 +868,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_3_USART_SBMODE
-#define CONF_SERCOM_3_USART_SBMODE 0
+#define CONF_SERCOM_3_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -886,7 +886,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_3_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_3_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_3_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -1140,7 +1140,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_4_USART_SBMODE
-#define CONF_SERCOM_4_USART_SBMODE 0
+#define CONF_SERCOM_4_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -1158,7 +1158,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_4_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_4_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_4_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -1412,7 +1412,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_5_USART_SBMODE
-#define CONF_SERCOM_5_USART_SBMODE 0
+#define CONF_SERCOM_5_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -1430,7 +1430,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_5_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_5_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_5_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge
@@ -1684,7 +1684,7 @@
 // <i> Number of stop bits in USART frame
 // <id> usart_stop_bit
 #ifndef CONF_SERCOM_6_USART_SBMODE
-#define CONF_SERCOM_6_USART_SBMODE 0
+#define CONF_SERCOM_6_USART_SBMODE 1
 #endif
 
 // <o> Baud rate <1-3000000>
@@ -1702,7 +1702,7 @@
 // <i> Define ISO7816 protocol type as 0.
 // <id> usart_iso7816_type
 #ifndef CONF_SERCOM_6_USART_ISO7816_PROTOCOL_T
-#define CONF_SERCOM_6_USART_ISO7816_PROTOCOL_T 0x1
+#define CONF_SERCOM_6_USART_ISO7816_PROTOCOL_T 0x0
 #endif
 
 // <o> ISO7816 Inhibit Not Acknowledge

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16265
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: Ie6cb7ec51036f1de15c83b59d130f3cb85309594
Gerrit-Change-Number: 16265
Gerrit-PatchSet: 4
Gerrit-Owner: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191128/45821d97/attachment.htm>


More information about the gerrit-log mailing list