Add dispatch loop, copy_to_ram, retry picotool load without sleep

This commit is contained in:
Ian Gulliver
2026-04-06 17:36:41 +09:00
parent b197f0bfa7
commit 00b960d81d
7 changed files with 87 additions and 116 deletions

View File

@@ -0,0 +1,11 @@
#pragma once
#include <cstdint>
#include <span>
#include "usb_cdc.h"
struct handler_entry {
int8_t type_id;
void (*handle)(usb_cdc&, uint32_t);
};
[[noreturn]] void dispatch(std::span<const handler_entry> handlers);