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
main.h@0:3b6c2ce051a6, 2019-01-18 (annotated)
- Committer:
- Helmut64
- Date:
- Fri Jan 18 15:59:46 2019 +0000
- Revision:
- 0:3b6c2ce051a6
- Child:
- 3:b5052f3fa638
inital checkin
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Helmut64 | 0:3b6c2ce051a6 | 1 | /* |
Helmut64 | 0:3b6c2ce051a6 | 2 | * Copyright (c) 2018 Helmut Tschemernjak |
Helmut64 | 0:3b6c2ce051a6 | 3 | * 30826 Garbsen (Hannover) Germany |
Helmut64 | 0:3b6c2ce051a6 | 4 | * Licensed under the Apache License, Version 2.0); |
Helmut64 | 0:3b6c2ce051a6 | 5 | */ |
Helmut64 | 0:3b6c2ce051a6 | 6 | |
Helmut64 | 0:3b6c2ce051a6 | 7 | #include "mbed.h" |
Helmut64 | 0:3b6c2ce051a6 | 8 | #include "PinMap.h" |
Helmut64 | 0:3b6c2ce051a6 | 9 | #include "BufferedSerial.h" |
Helmut64 | 0:3b6c2ce051a6 | 10 | #ifdef FEATURE_USBSERIAL |
Helmut64 | 0:3b6c2ce051a6 | 11 | #include "USBSerialBuffered.h" |
Helmut64 | 0:3b6c2ce051a6 | 12 | #endif |
Helmut64 | 0:3b6c2ce051a6 | 13 | #include "GenericPingPong.h" |
Helmut64 | 0:3b6c2ce051a6 | 14 | |
Helmut64 | 0:3b6c2ce051a6 | 15 | |
Helmut64 | 0:3b6c2ce051a6 | 16 | extern BufferedSerial *ser; |
Helmut64 | 0:3b6c2ce051a6 | 17 | #ifdef FEATURE_USBSERIAL |
Helmut64 | 0:3b6c2ce051a6 | 18 | extern USBSerialBuffered *usb; |
Helmut64 | 0:3b6c2ce051a6 | 19 | #endif |
Helmut64 | 0:3b6c2ce051a6 | 20 | extern bool _useDprintf; |
Helmut64 | 0:3b6c2ce051a6 | 21 | extern void InitSerial(int timeout, DigitalOut *led); |
Helmut64 | 0:3b6c2ce051a6 | 22 | extern void dump(const char *title, const void *data, int len, bool dwords = false); |
Helmut64 | 0:3b6c2ce051a6 | 23 | |
Helmut64 | 0:3b6c2ce051a6 | 24 | extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2))); |
Helmut64 | 0:3b6c2ce051a6 | 25 | extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2))); |
Helmut64 | 0:3b6c2ce051a6 | 26 | extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg); |