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

@@ -85,14 +85,12 @@ static inline void ws2812_program_init(PIO pio,
}
#endif
#if defined(ENABLE_EMULATION)
#else
#include "usb.h"
#ifndef ESP_PLATFORM
#if !defined(ESP_PLATFORM) && !defined(ENABLE_EMULATION)
#include "hardware/rtc.h"
#include "bsp/board.h"
#endif
#endif
#include "usb.h"
extern void do_flash();
extern void low_flash_init();
@@ -427,8 +425,8 @@ int main(void) {
init_rtc();
#ifndef ENABLE_EMULATION
usb_init();
#ifndef ENABLE_EMULATION
#ifdef ESP_PLATFORM
tusb_cfg.string_descriptor[3] = pico_serial_str;
if (enable_wcid) {