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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user