An example project for the Heltec Turtle LoRa board (STM32L4 and SX1276 chips). The projects is only supported for the Nucleo-L432KC board platform in the mbed online and offline compiler environment. Visit www.radioshuttle.de (choose Turtle board) for instructions. Note that most source files and libraries are open source, however some files especially the RadioShuttle core protocol is copyrighted work. Check header for details.

Dependencies:   mbed BufferedSerial SX1276GenericLib OLED_SSD1306 HELIOS_Si7021 NVProperty RadioShuttle-STM32L4 USBDeviceHT

Revision:
45:22bb680cad5a
Parent:
43:ec1b7aa823a6
Child:
47:59a9923a9f77
--- a/Utils/utils.cpp	Fri Feb 15 10:53:47 2019 +0100
+++ b/Utils/utils.cpp	Sun Feb 24 14:57:36 2019 +0100
@@ -21,7 +21,7 @@
 #endif
 bool _useDprintf;
 
-void InitSerial(int timeout, DigitalOut *led)
+void InitSerial(int timeout, DigitalOut *led, InterruptIn *intr)
 {
     _useDprintf = true;
     bool uartActive = true;
@@ -40,7 +40,7 @@
                 *led = !*led;
             wait_ms(100);
             if (timeout) {
-                if (t.read_ms() >= timeout) {
+                if (t.read_ms() >= timeout || (intr && intr->read())) {
 					delete usb;
 					usb = NULL;
 					DigitalOut rx(USBRX);
@@ -446,7 +446,7 @@
 	" x -- LoRa TX Continuous Wave Test\r\n" \
 	" d -- Hexdump of memory address [offset count]\r\n"
 	" r -- Reset\r\n" \
-	" c -- Continue with RadioShuttle\r\n" \
+	" c -- Continue with RadioShuttle RadioTest\r\n" \
 	"\r\n" \
 	"waiting 10 secs ...\r\n" \
 	"\r\n";