Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
main.h@22:2c1359292de1, 2018-05-22 (annotated)
- Committer:
 - marcozecchini
 - Date:
 - Tue May 22 21:33:34 2018 +0000
 - Revision:
 - 22:2c1359292de1
 - Parent:
 - 21:5d64f9f79190
 - Child:
 - 24:bb733d746bda
 
get_distance() addition
Who changed what in which revision?
| User | Revision | Line number | New 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" | 
| Helmut64 | 0:c43b6919ae15 | 15 | |
| Helmut64 | 0:c43b6919ae15 | 16 | |
| Helmut64 | 0:c43b6919ae15 | 17 | extern BufferedSerial *ser; | 
| Helmut64 | 17:98f2528e8399 | 18 | #ifdef FEATURE_USBSERIAL | 
| Helmut64 | 17:98f2528e8399 | 19 | extern USBSerialBuffered *usb; | 
| Helmut64 | 17:98f2528e8399 | 20 | #endif | 
| marcozecchini | 22:2c1359292de1 | 21 | void get_distance(char message[]); | 
| Helmut64 | 17:98f2528e8399 | 22 | extern bool _useDprintf; | 
| Helmut64 | 17:98f2528e8399 | 23 | extern void InitSerial(int timeout, DigitalOut *led); | 
| Helmut64 | 0:c43b6919ae15 | 24 | extern void dump(const char *title, const void *data, int len, bool dwords = false); | 
| Helmut64 | 0:c43b6919ae15 | 25 | |
| Helmut64 | 17:98f2528e8399 | 26 | extern void dprintf(const char *format, ...) __attribute__((format(printf,1,2))); | 
| Helmut64 | 17:98f2528e8399 | 27 | extern void rprintf(const char *format, ...) __attribute__((format(printf,1,2))); | 
| Helmut64 | 17:98f2528e8399 | 28 | extern void VAprintf(bool timstamp, bool newline, bool printEnabled, const char *format, va_list arg); | 
