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 mbed
Fork of TRANSMITTER by
main.h@0:acd8e2ba10c5, 2018-05-23 (annotated)
- Committer:
- gabrio
- Date:
- Wed May 23 20:59:12 2018 +0000
- Revision:
- 0:acd8e2ba10c5
- Child:
- 3:e2ca3bc926e2
Reads from A0 AND A2 and transmit through lora (no encryption)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gabrio | 0:acd8e2ba10c5 | 1 | /* |
gabrio | 0:acd8e2ba10c5 | 2 | * Copyright (c) 2017 Helmut Tschemernjak |
gabrio | 0:acd8e2ba10c5 | 3 | * 30826 Garbsen (Hannover) Germany |
gabrio | 0:acd8e2ba10c5 | 4 | * Licensed under the Apache License, Version 2.0); |
gabrio | 0:acd8e2ba10c5 | 5 | */ |
gabrio | 0:acd8e2ba10c5 | 6 | |
gabrio | 0:acd8e2ba10c5 | 7 | #include "mbed.h" |
gabrio | 0:acd8e2ba10c5 | 8 | #include "PinMap.h" |
gabrio | 0:acd8e2ba10c5 | 9 | #include "BufferedSerial.h" |
gabrio | 0:acd8e2ba10c5 | 10 | #include "Transmitter.h" |
gabrio | 0:acd8e2ba10c5 | 11 | |
gabrio | 0:acd8e2ba10c5 | 12 | void SystemClock_Config(void); |
gabrio | 0:acd8e2ba10c5 | 13 | |
gabrio | 0:acd8e2ba10c5 | 14 | extern BufferedSerial *ser; |
gabrio | 0:acd8e2ba10c5 | 15 | extern void dump(const char *title, const void *data, int len, bool dwords = false); |
gabrio | 0:acd8e2ba10c5 | 16 | |
gabrio | 0:acd8e2ba10c5 | 17 | #define dprintf(...) { ser->printf(__VA_ARGS__); ser->printf("\r\n"); } |