mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-27 16:45:10 +02:00
Improved multicore synchronization. Now they exchange signals and protect areas atomically.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#define _USB_H_
|
||||
|
||||
#if defined(ENABLE_EMULATION)
|
||||
#include <stdbool.h>
|
||||
#include "emulation.h"
|
||||
#elif defined(ESP_PLATFORM)
|
||||
#include "esp_compat.h"
|
||||
#else
|
||||
@@ -77,11 +77,8 @@ enum {
|
||||
};
|
||||
|
||||
extern void usb_task();
|
||||
#ifndef ENABLE_EMULATION
|
||||
extern queue_t usb_to_card_q;
|
||||
extern queue_t card_to_usb_q;
|
||||
#endif
|
||||
extern uint8_t card_locked_itf;
|
||||
|
||||
extern void card_start(uint8_t, void (*func)(void));
|
||||
extern void card_exit();
|
||||
|
||||
Reference in New Issue
Block a user