- Adding the rest of Gnuk USB/CCID methods.
- It runs the openpgp thread in the other core (core1) and leaves the main program/ccid/usb methods running in the core 0. - At this moment it does not call openpgp_thread. - Compiles but it needs further debug
This commit is contained in:
29
hsm2040.h
29
hsm2040.h
@@ -11,4 +11,33 @@
|
||||
|
||||
#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)
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user