projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MassStorageBootloader: Fix lower nibble cluster update.
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
CCID
/
Lib
/
Iso7816.c
diff --git
a/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
b/Demos/Device/LowLevel/CCID/Lib/Iso7816.c
index
eaa96e5
..
9e5bcef
100644
(file)
--- a/
Demos/Device/LowLevel/CCID/Lib/Iso7816.c
+++ b/
Demos/Device/LowLevel/CCID/Lib/Iso7816.c
@@
-1,14
+1,14
@@
/*
LUFA Library
/*
LUFA Library
- Copyright (C) Dean Camera, 201
8
.
+ Copyright (C) Dean Camera, 201
9
.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
- Copyright 201
8
Dean Camera (dean [at] fourwalledcubicle [dot] com)
- Copyright 201
8
Filipe Rodrigues (filipepazrodrigues [at] gmail [dot] com)
+ Copyright 201
9
Dean Camera (dean [at] fourwalledcubicle [dot] com)
+ Copyright 201
9
Filipe Rodrigues (filipepazrodrigues [at] gmail [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
@@
-31,17
+31,18
@@
#include "Iso7816.h"
#include "Iso7816.h"
-void Iso7816_CreateSimpleAttr(uint8_t* attr, uint8_t* attrLength)
+void Iso7816_CreateSimpleAtr(uint8_t* const atr,
+ uint8_t* const atrLength)
{
{
- at
t
r[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);
uint8_t interfaceBytesPresence = 0;
uint8_t historycalBytes[14] = "Lufa CCID Demo"; // Must be equal or less than 15
uint8_t historicalBytesLength = sizeof(historycalBytes);
- at
t
r[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO
- memcpy(at
t
r + 2, historycalBytes, historicalBytesLength);
+ atr[1] = (interfaceBytesPresence << 4) + historicalBytesLength; //TO
+ memcpy(atr + 2, historycalBytes, historicalBytesLength);
- *at
t
rLength = historicalBytesLength + 2;
+ *atrLength = historicalBytesLength + 2;
}
}