projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reformatting and add const qualifiers.
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
CCID
/
CCID.c
diff --git
a/Demos/Device/LowLevel/CCID/CCID.c
b/Demos/Device/LowLevel/CCID/CCID.c
index
8b46e89
..
764392d
100644
(file)
--- a/
Demos/Device/LowLevel/CCID/CCID.c
+++ b/
Demos/Device/LowLevel/CCID/CCID.c
@@
-197,9
+197,9
@@
void EVENT_USB_Device_ControlRequest(void)
* THe slot must reply back with a recognizable ATR (answer to reset)
*/
uint8_t CCID_IccPowerOn(uint8_t slot,
* THe slot must reply back with a recognizable ATR (answer to reset)
*/
uint8_t CCID_IccPowerOn(uint8_t slot,
- uint8_t* atr,
- uint8_t* atrLength,
- uint8_t* error)
+ uint8_t*
const
atr,
+ uint8_t*
const
atrLength,
+ uint8_t*
const
error)
{
if (slot == 0)
{
{
if (slot == 0)
{
@@
-219,7
+219,7
@@
uint8_t CCID_IccPowerOn(uint8_t slot,
* whenever an application at the host wants to send a power off signal to a slot.
*/
uint8_t CCID_IccPowerOff(uint8_t slot,
* whenever an application at the host wants to send a power off signal to a slot.
*/
uint8_t CCID_IccPowerOff(uint8_t slot,
- uint8_t* error)
+ uint8_t*
const
error)
{
if (slot == 0)
{
{
if (slot == 0)
{
@@
-238,7
+238,7
@@
uint8_t CCID_IccPowerOff(uint8_t slot,
* slot status.
*/
uint8_t CCID_GetSlotStatus(uint8_t slot,
* slot status.
*/
uint8_t CCID_GetSlotStatus(uint8_t slot,
- uint8_t* error)
+ uint8_t*
const
error)
{
if (slot == 0)
{
{
if (slot == 0)
{
@@
-258,7
+258,7
@@
uint8_t CCID_GetSlotStatus(uint8_t slot,
*/
uint8_t CCID_Abort(uint8_t slot,
uint8_t seq,
*/
uint8_t CCID_Abort(uint8_t slot,
uint8_t seq,
- uint8_t* error)
+ uint8_t*
const
error)
{
if (Aborted && slot == 0 && AbortedSeq == seq)
{
{
if (Aborted && slot == 0 && AbortedSeq == seq)
{
@@
-283,7
+283,7
@@
uint8_t CCID_Abort(uint8_t slot,
}
/** Gets and status and verifies whether an error occurred. */
}
/** Gets and status and verifies whether an error occurred. */
-bool CCID_CheckStatusNoError(
in
t status)
+bool CCID_CheckStatusNoError(
uint8_
t status)
{
return (status & 0xC0) == 0x0;
}
{
return (status & 0xC0) == 0x0;
}