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

@@ -38,7 +38,6 @@
#define mode_t unsigned short
#define lseek _lseek
#include "mman.h"
#include <fcntl.h>
#else
#ifdef ESP_PLATFORM
#include "esp_compat.h"
@@ -58,6 +57,7 @@ const esp_partition_t *part0;
#define XIP_BASE 0
int fd_map = 0;
uint8_t *map = NULL;
#include <fcntl.h>
#endif
#include "pico_keys.h"
#include <string.h>