Adding openpgp support.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
25
hsm2040.h
25
hsm2040.h
@@ -11,33 +11,8 @@
|
||||
|
||||
#define USB_REQ_CCID 0xA1
|
||||
|
||||
#define USB_LL_BUF_SIZE 64
|
||||
|
||||
extern const uint8_t historical_bytes[];
|
||||
|
||||
#define DEBUG_INFO(s) TU_LOG2(s)
|
||||
|
||||
static void put_hex (uint8_t nibble)
|
||||
{
|
||||
uint8_t c;
|
||||
|
||||
if (nibble < 0x0a)
|
||||
c = '0' + nibble;
|
||||
else
|
||||
c = 'a' + nibble - 0x0a;
|
||||
|
||||
TU_LOG3("%c",c);
|
||||
}
|
||||
|
||||
void put_byte (uint8_t b)
|
||||
{
|
||||
put_hex (b >> 4);
|
||||
put_hex (b &0x0f);
|
||||
TU_LOG3("\r\n");
|
||||
}
|
||||
|
||||
#define DEBUG_BYTE(b) put_byte(b)
|
||||
|
||||
#define DEBUG_PAYLOAD(p,s) { \
|
||||
TU_LOG3("Payload %s (%d bytes):\r\n", #p,s);\
|
||||
for (int i = 0; i < s; i += 16) {\
|
||||
|
||||
Reference in New Issue
Block a user