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 8feac76a73
commit a3c60f762d
7 changed files with 64 additions and 31 deletions

View File

@@ -221,6 +221,7 @@ int scan_files() {
void scan_all() {
scan_flash();
scan_files();
}
void init_fido() {
@@ -240,7 +241,7 @@ uint32_t user_present_time_limit = 0;
bool check_user_presence() {
if (user_present_time_limit == 0 || user_present_time_limit+TRANSPORT_TIME_LIMIT < board_millis()) {
if (wait_button() == true) //timeout
if (wait_button_pressed() == true) //timeout
return false;
user_present_time_limit = board_millis();
}