Adding openpgp support.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-01-03 02:03:12 +01:00
parent 0af5685495
commit fd93f4779e
4 changed files with 36 additions and 90 deletions

View File

@@ -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) {\