Watchdog timer, boot reason tracking, net_poll frame limit, reboot/picoboot CLI commands

This commit is contained in:
Ian Gulliver
2026-04-12 08:27:21 +09:00
parent 6c3e0757f9
commit 21c7900444
7 changed files with 25 additions and 9 deletions

View File

@@ -7,6 +7,7 @@
extern std::string_view firmware_name;
void handlers_init();
void handlers_start();
std::optional<ResponsePICOBOOT> handle_picoboot(const responder& resp, const RequestPICOBOOT&);
std::optional<ResponseInfo> handle_info(const responder& resp, const RequestInfo&);
std::optional<ResponseLog> handle_log(const responder& resp, const RequestLog&);

View File

@@ -47,6 +47,7 @@ struct RequestInfo {
enum class boot_reason : uint8_t {
cold_boot = 0,
request_reboot = 1,
watchdog = 2,
};
struct ResponseInfo {