Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
main.h@34:8393ded26b4f, 2018-09-17 (annotated)
- Committer:
- marcozecchini
- Date:
- Mon Sep 17 22:16:48 2018 +0000
- Revision:
- 34:8393ded26b4f
- Parent:
- 29:04e1489f8fe2
Bug fixed 4
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Helmut64 | 0:c43b6919ae15 | 1 | #include "mbed.h" |
Helmut64 | 0:c43b6919ae15 | 2 | #include "PinMap.h" |
Helmut64 | 0:c43b6919ae15 | 3 | #include "BufferedSerial.h" |
Helmut64 | 17:98f2528e8399 | 4 | #ifdef FEATURE_USBSERIAL |
Helmut64 | 17:98f2528e8399 | 5 | #include "USBSerialBuffered.h" |
Helmut64 | 17:98f2528e8399 | 6 | #endif |
marcozecchini | 19:7763501775e5 | 7 | #include "smartage.h" |
marcozecchini | 19:7763501775e5 | 8 | #include "hcsr04.h" |
marcozecchini | 24:bb733d746bda | 9 | #include "XNucleoIKS01A2.h" |
Helmut64 | 0:c43b6919ae15 | 10 | |
Helmut64 | 0:c43b6919ae15 | 11 | |
Helmut64 | 0:c43b6919ae15 | 12 | extern BufferedSerial *ser; |
Helmut64 | 17:98f2528e8399 | 13 | #ifdef FEATURE_USBSERIAL |
Helmut64 | 17:98f2528e8399 | 14 | extern USBSerialBuffered *usb; |
Helmut64 | 17:98f2528e8399 | 15 | #endif |
marcozecchini | 22:2c1359292de1 | 16 | void get_distance(char message[]); |
marcozecchini | 24:bb733d746bda | 17 | void get_temperature(char message[]); |
marcozecchini | 25:18a57be7bb17 | 18 | bool send_orientation(); |
Helmut64 | 17:98f2528e8399 | 19 | extern bool _useDprintf; |
Helmut64 | 17:98f2528e8399 | 20 | extern void InitSerial(int timeout, DigitalOut *led); |
Helmut64 | 0:c43b6919ae15 | 21 | extern void dump(const char *title, const void *data, int len, bool dwords = false); |
Helmut64 | 0:c43b6919ae15 | 22 | |
Helmut64 | 17:98f2528e8399 | 23 | extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2))); |
Helmut64 | 17:98f2528e8399 | 24 | extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2))); |
Helmut64 | 17:98f2528e8399 | 25 | extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg); |