Add portal web simulator, SPI bridges, and Pico firmware updates.

Bring the five-panel hex portal online with a browser 3D/schematic preview, Pi SPI backends, and renamed multi-panel Pico UDP firmware.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-30 14:54:51 +12:00
parent d5cab2efdf
commit 5094c7bcee
78 changed files with 62251 additions and 832 deletions

21
firmware/pico/timer.c Normal file
View File

@@ -0,0 +1,21 @@
#include "timer.h"
static struct repeating_timer g_timer;
static void (*g_callback)(void);
void wizchip_1ms_timer_initialize(void (*callback)(void)) {
g_callback = callback;
add_repeating_timer_us(-1000, wizchip_1ms_timer_callback, NULL, &g_timer);
}
bool wizchip_1ms_timer_callback(struct repeating_timer *t) {
(void)t;
if (g_callback != NULL) {
g_callback();
}
return true;
}
void wizchip_delay_ms(uint32_t ms) {
sleep_ms(ms);
}