aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2018-06-24 16:23:16 +1000
committerGitHub <noreply@github.com>2018-06-24 16:23:16 +1000
commit8e590e6cb3013ab3e317e219031b326df16fb6dc (patch)
tree870a7846aef63fc80aecce175e35bab08f812f5b /Demos/Device/LowLevel/CCID/Lib/Iso7816.c
parentfc371d0d0e3a60b06dec862e37612375860c41d5 (diff)
parentded673ec02a92906c5402d5f749518e55beff9fc (diff)
downloadlufa-8e590e6cb3013ab3e317e219031b326df16fb6dc.tar.gz
lufa-8e590e6cb3013ab3e317e219031b326df16fb6dc.tar.bz2
lufa-8e590e6cb3013ab3e317e219031b326df16fb6dc.zip
Merge pull request #126 from kidbomb/feature-ccid
CCID: Multiple Low level and Class driver changes.
Diffstat (limited to 'Demos/Device/LowLevel/CCID/Lib/Iso7816.c')
-rw-r--r--Demos/Device/LowLevel/CCID/Lib/Iso7816.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Device/LowLevel/CCID/Lib/Iso7816.c b/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
index eaa96e544..0c2e5e8b0 100644
--- a/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
+++ b/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
@@ -31,17 +31,17 @@
#include "Iso7816.h"
-void Iso7816_CreateSimpleAttr(uint8_t* attr, uint8_t* attrLength)
+void Iso7816_CreateSimpleAtr(uint8_t* atr, uint8_t* atrLength)
{
- attr[0] = 0x3B; // TS: direct convention
+ atr[0] = 0x3B; // TS: direct convention
uint8_t interfaceBytesPresence = 0;
uint8_t historycalBytes[14] = "Lufa CCID Demo"; // Must be equal or less than 15
uint8_t historicalBytesLength = sizeof(historycalBytes);
- attr[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO
- memcpy(attr + 2, historycalBytes, historicalBytesLength);
+ atr[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO
+ memcpy(atr + 2, historycalBytes, historicalBytesLength);
- *attrLength = historicalBytesLength + 2;
+ *atrLength = historicalBytesLength + 2;
}