#include "dispatch.h" #include "handlers.h" std::string_view firmware_name = "picomap"; static constexpr handler_entry handlers[] = { {RequestPICOBOOT::ext_id, typed_handler}, {RequestInfo::ext_id, typed_handler}, {RequestLog::ext_id, typed_handler}, {RequestFlashErase::ext_id, typed_handler}, {RequestFlashWrite::ext_id, typed_handler}, {RequestReboot::ext_id, typed_handler}, {RequestFlashStatus::ext_id, typed_handler}, }; int main() { handlers_init(); dispatch_init(); handlers_start(); dispatch_run(handlers); }