#include "dispatch.h" #include "handlers.h" #include "igmp.h" std::string_view firmware_name = "picomap"; uint32_t firmware_build_epoch = BUILD_EPOCH; static constexpr handler_entry handlers[] = { {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(PICOMAP_PORT_BE); igmp::join(PICOMAP_DISCOVERY_GROUP); handlers_start(); dispatch_run(handlers); }