icE1usb fw: Expose the GPS NMEA data as a CDC ACM
Note that this is read-only. We drop all data from the host
because we can't have the host reconfigure the module ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Change-Id: Ieb6a653ece882c5f90ab27da1bca04c94184dc5a
diff --git a/firmware/ice40-riscv/icE1usb/gps.c b/firmware/ice40-riscv/icE1usb/gps.c
index 2fd6ab8..c1ad3a8 100644
--- a/firmware/ice40-riscv/icE1usb/gps.c
+++ b/firmware/ice40-riscv/icE1usb/gps.c
@@ -13,6 +13,7 @@
#include "console.h"
#include "gps.h"
#include "misc.h"
+#include "usb_gps.h"
#include "utils.h"
#include "config.h"
@@ -217,6 +218,9 @@
/* If we do, process it locally to update our state */
_gps_parse_nmea(nmea);
+
+ /* And queue it for USB */
+ usb_gps_puts(nmea);
}
void