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:
Pol Henarejos
2024-08-23 19:24:18 +02:00
parent 90842bb8f7
commit 7a88a2b8e7
11 changed files with 238 additions and 110 deletions

View File

@@ -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();