Attempting to add support to esp32s3.

Will it work? Who knows...

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-04-04 21:01:55 +02:00
parent 3d0a27c834
commit 023039deb2
24 changed files with 229 additions and 74 deletions

View File

@@ -196,7 +196,10 @@ void apdu_thread() {
card_init_core1();
while (1) {
uint32_t m = 0;
#if defined(ESP_PLATFORM)
#else
queue_remove_blocking(&usb_to_card_q, &m);
#endif
if (m == EV_VERIFY_CMD_AVAILABLE || m == EV_MODIFY_CMD_AVAILABLE) {
set_res_sw(0x6f, 0x00);
@@ -213,7 +216,10 @@ done: ;
finished_data_size = apdu_next();
uint32_t flag = EV_EXEC_FINISHED;
#if defined(ESP_PLATFORM)
#else
queue_add_blocking(&card_to_usb_q, &flag);
#endif
}
//printf("EXIT !!!!!!\r\n");
if (current_app && current_app->unload) {