16 lines
417 B
C++
16 lines
417 B
C++
#include "dispatch.h"
|
|
#include "handlers.h"
|
|
|
|
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>},
|
|
};
|
|
|
|
int main() {
|
|
dispatch_init();
|
|
dispatch_run(handlers);
|
|
}
|