Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
main.h
- Committer:
- marcozecchini
- Date:
- 2018-05-25
- Revision:
- 24:bb733d746bda
- Parent:
- 22:2c1359292de1
- Child:
- 25:18a57be7bb17
File content as of revision 24:bb733d746bda:
/* * Copyright (c) 2018 Helmut Tschemernjak * 30826 Garbsen (Hannover) Germany * Licensed under the Apache License, Version 2.0); */ #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[]); 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);