diff --git a/monitor.c b/monitor.c index 88e7dd3..0b9406f 100644 --- a/monitor.c +++ b/monitor.c @@ -13,6 +13,8 @@ #include #include #include "pico/stdlib.h" +#include "pico.h" +#include "pico/bootrom.h" #include "uSDR.h" #include "lcd.h" @@ -67,6 +69,14 @@ void mon_init() /*** Below the definitions of the shell commands, add where needed ***/ /*** ------------------------------------------------------------- ***/ +/* + * Reboots the Pico as a USB mass storage device, ready to be programmed + */ +void mon_flash(void) +{ + reset_usb_boot(1< ", "Dumps Si5351 registers"}, {"vfo", 3, &mon_vfo, "vfo ", "Dumps vfo[id] registers"}, {"lt", 2, &mon_lt, "lt (no parameters)", "LCD test, dumps characterset on LCD"},