Files
picomap/firmware/firmware.cpp

20 lines
686 B
C++
Raw Normal View History

#include "dispatch.h"
#include "handlers.h"
2026-04-06 20:09:30 +09:00
std::string_view firmware_name = "picomap";
static constexpr handler_entry handlers[] = {
{RequestPICOBOOT::ext_id, typed_handler<RequestPICOBOOT, handle_picoboot>},
{RequestInfo::ext_id, typed_handler<RequestInfo, handle_info>},
{RequestLog::ext_id, typed_handler<RequestLog, handle_log>},
{RequestFlashErase::ext_id, typed_handler<RequestFlashErase, handle_flash_erase>},
{RequestFlashWrite::ext_id, typed_handler<RequestFlashWrite, handle_flash_write>},
{RequestReboot::ext_id, typed_handler<RequestReboot, handle_reboot>},
};
int main() {
handlers_init();
dispatch_init();
dispatch_run(handlers);
}