Devin Alexander / Mbed OS MAX326xxFTHR_LoRa_RFM95

Dependencies:   BMI160 BufferedSerial SX1276GenericLib USBDeviceHT max32630fthr

Fork of STM32L0_LoRa by Helmut Tschemernjak

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 /*
00002  * Copyright (c) 2018 Helmut Tschemernjak
00003  * 30826 Garbsen (Hannover) Germany
00004   * Licensed under the Apache License, Version 2.0);
00005 */
00006 
00007 
00008 #include "mbed.h"
00009 #include "PinMap.h"
00010 #include "BufferedSerial.h"
00011 #ifdef FEATURE_USBSERIAL
00012 #include "USBSerialBuffered.h"
00013 #endif
00014 #include "GenericPingPong.h"
00015 
00016  
00017 #define FEATURE_LORA
00018 
00019  
00020 
00021 extern BufferedSerial *ser;
00022 #ifdef FEATURE_USBSERIAL
00023 extern USBSerialBuffered *usb;
00024 #endif
00025 extern bool _useDprintf;
00026 extern void InitSerial(int timeout, DigitalOut *led);  
00027 extern void dump(const char *title, const void *data, int len, bool dwords = false);
00028 
00029 extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2)));
00030 extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2)));
00031 extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg);