Reorganizing core0/core1 split.

Now CBOR and APDU (i.e., intensive processing) areas are executed on core1, while core0 is dedicated for hardware tasks (usb, button, led, etc.).
This commit is contained in:
Pol Henarejos
2022-09-20 14:39:59 +02:00
parent 847005d94f
commit 8b97791d8f
6 changed files with 64 additions and 44 deletions

View File

@@ -174,7 +174,7 @@ int driver_process_usb_packet(uint16_t rx_read) {
ccid_response->abRFU1 = 0;
//printf("1 %x %x %x || %x %x %x\r\n",ccid_response->apdu,apdu.rdata,ccid_response,ccid_header,ccid_header->apdu,apdu.data);
memcpy(apdu.rdata, ccid_atr+1, size_atr);
card_start();
card_start(apdu_thread);
ccid_status = 0;
ccid_write(size_atr);
}