From 8c8aa93dd01b10bbc866f3b995af73e0419dfb14 Mon Sep 17 00:00:00 2001 From: ArjanteMarvelde Date: Thu, 22 Sep 2022 21:07:13 +0200 Subject: [PATCH] V3.10 Added FLASH command --- monitor.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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"},