Add fallback serials for emulation.

Let's see how it works.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2026-05-12 22:26:01 +02:00
parent d3ce3c20dc
commit 15148acab5
3 changed files with 242 additions and 2 deletions

View File

@@ -21,7 +21,11 @@
#include <stdint.h>
#if !defined (PICO_PLATFORM)
#if __APPLE__
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 16
#else
#define PICO_UNIQUE_BOARD_ID_SIZE_BYTES 8
#endif
typedef struct { uint8_t id[PICO_UNIQUE_BOARD_ID_SIZE_BYTES]; } picokey_serial_t;
#else
#include "pico/unique_id.h"