Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
main.h
- Committer:
- marcozecchini
- Date:
- 2018-09-17
- Revision:
- 34:8393ded26b4f
- Parent:
- 29:04e1489f8fe2
File content as of revision 34:8393ded26b4f:
#include "mbed.h" #include "PinMap.h" #include "BufferedSerial.h" #ifdef FEATURE_USBSERIAL #include "USBSerialBuffered.h" #endif #include "smartage.h" #include "hcsr04.h" #include "XNucleoIKS01A2.h" extern BufferedSerial *ser; #ifdef FEATURE_USBSERIAL extern USBSerialBuffered *usb; #endif void get_distance(char message[]); void get_temperature(char message[]); bool send_orientation(); extern bool _useDprintf; extern void InitSerial(int timeout, DigitalOut *led); extern void dump(const char *title, const void *data, int len, bool dwords = false); extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2))); extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2))); extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg);