Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
main.h
- Committer:
- marcozecchini
- Date:
- 2018-05-22
- Revision:
- 21:5d64f9f79190
- Parent:
- 19:7763501775e5
- Child:
- 22:2c1359292de1
File content as of revision 21:5d64f9f79190:
/* * 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" extern BufferedSerial *ser; #ifdef FEATURE_USBSERIAL extern USBSerialBuffered *usb; #endif void get_distance(uint8_t* 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);