Smartage application

Dependencies:   BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2

Fork of STM32L0_LoRa by Helmut Tschemernjak

Committer:
marcozecchini
Date:
Fri May 25 15:13:25 2018 +0000
Revision:
24:bb733d746bda
Parent:
22:2c1359292de1
Child:
25:18a57be7bb17
sensor measuring added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Helmut64 0:c43b6919ae15 1 /*
Helmut64 17:98f2528e8399 2 * Copyright (c) 2018 Helmut Tschemernjak
Helmut64 0:c43b6919ae15 3 * 30826 Garbsen (Hannover) Germany
Helmut64 17:98f2528e8399 4 * Licensed under the Apache License, Version 2.0);
Helmut64 17:98f2528e8399 5 */
Helmut64 0:c43b6919ae15 6
Helmut64 0:c43b6919ae15 7 #include "mbed.h"
Helmut64 0:c43b6919ae15 8 #include "PinMap.h"
Helmut64 0:c43b6919ae15 9 #include "BufferedSerial.h"
Helmut64 17:98f2528e8399 10 #ifdef FEATURE_USBSERIAL
Helmut64 17:98f2528e8399 11 #include "USBSerialBuffered.h"
Helmut64 17:98f2528e8399 12 #endif
marcozecchini 19:7763501775e5 13 #include "smartage.h"
marcozecchini 19:7763501775e5 14 #include "hcsr04.h"
marcozecchini 24:bb733d746bda 15 #include "XNucleoIKS01A2.h"
Helmut64 0:c43b6919ae15 16
Helmut64 0:c43b6919ae15 17
Helmut64 0:c43b6919ae15 18 extern BufferedSerial *ser;
Helmut64 17:98f2528e8399 19 #ifdef FEATURE_USBSERIAL
Helmut64 17:98f2528e8399 20 extern USBSerialBuffered *usb;
Helmut64 17:98f2528e8399 21 #endif
marcozecchini 22:2c1359292de1 22 void get_distance(char message[]);
marcozecchini 24:bb733d746bda 23 void get_temperature(char message[]);
Helmut64 17:98f2528e8399 24 extern bool _useDprintf;
Helmut64 17:98f2528e8399 25 extern void InitSerial(int timeout, DigitalOut *led);
Helmut64 0:c43b6919ae15 26 extern void dump(const char *title, const void *data, int len, bool dwords = false);
Helmut64 0:c43b6919ae15 27
Helmut64 17:98f2528e8399 28 extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2)));
Helmut64 17:98f2528e8399 29 extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2)));
Helmut64 17:98f2528e8399 30 extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg);