Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
PinMap.h@30:d43802606136, 2018-09-17 (annotated)
- Committer:
- marcozecchini
- Date:
- Mon Sep 17 20:39:50 2018 +0000
- Revision:
- 30:d43802606136
- Parent:
- 29:04e1489f8fe2
bug fixed2
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcozecchini | 29:04e1489f8fe2 | 1 | /* Here are defined the GPIO ports and those other pins necessary to manage the lora connection. |
marcozecchini | 29:04e1489f8fe2 | 2 | */ |
marcozecchini | 30:d43802606136 | 3 | |
marcozecchini | 29:04e1489f8fe2 | 4 | #ifdef TARGET_DISCO_L072CZ_LRWAN1 |
Helmut64 | 16:675f4d0ee9e9 | 5 | #define FEATURE_LORA |
marcozecchini | 30:d43802606136 | 6 | #endif |
Helmut64 | 0:c43b6919ae15 | 7 | |
Helmut64 | 13:5a32a1922fbc | 8 | #if defined(TARGET_DISCO_L072CZ_LRWAN1) |
Helmut64 | 17:98f2528e8399 | 9 | #define LED LED2 |
Helmut64 | 0:c43b6919ae15 | 10 | |
Helmut64 | 0:c43b6919ae15 | 11 | #define LORA_SPI_MOSI PA_7 |
Helmut64 | 0:c43b6919ae15 | 12 | #define LORA_SPI_MISO PA_6 |
Helmut64 | 0:c43b6919ae15 | 13 | #define LORA_SPI_SCLK PB_3 |
Helmut64 | 0:c43b6919ae15 | 14 | #define LORA_CS PA_15 |
Helmut64 | 0:c43b6919ae15 | 15 | #define LORA_RESET PC_0 |
Helmut64 | 0:c43b6919ae15 | 16 | #define LORA_DIO0 PB_4 |
Helmut64 | 0:c43b6919ae15 | 17 | #define LORA_DIO1 PB_1 |
Helmut64 | 0:c43b6919ae15 | 18 | #define LORA_DIO2 PB_0 |
Helmut64 | 13:5a32a1922fbc | 19 | #define LORA_DIO3 PC_13 |
Helmut64 | 0:c43b6919ae15 | 20 | #define LORA_DIO4 PA_5 |
Helmut64 | 0:c43b6919ae15 | 21 | #define LORA_DIO5 PA_4 |
Helmut64 | 0:c43b6919ae15 | 22 | #define LORA_ANT_RX PA_1 |
Helmut64 | 0:c43b6919ae15 | 23 | #define LORA_ANT_TX PC_2 |
Helmut64 | 0:c43b6919ae15 | 24 | #define LORA_ANT_BOOST PC_1 |
Helmut64 | 0:c43b6919ae15 | 25 | #define LORA_TCXO PA_12 // 32 MHz |
Helmut64 | 0:c43b6919ae15 | 26 | |
Helmut64 | 16:675f4d0ee9e9 | 27 | #else |
Helmut64 | 16:675f4d0ee9e9 | 28 | |
Helmut64 | 16:675f4d0ee9e9 | 29 | #error "unknown board" |
Helmut64 | 16:675f4d0ee9e9 | 30 | |
Helmut64 | 0:c43b6919ae15 | 31 | #endif |