DISCO-L072CZ-LRWAN1-base
Dependencies: BufferedSerial LoRaWAN-lib-st-murata ST-DEVKIT-LRWAN mbed
PinMap.h@1:dcf49b02bfd9, 2017-12-04 (annotated)
- Committer:
- alphaemmeo
- Date:
- Mon Dec 04 14:28:30 2017 +0000
- Revision:
- 1:dcf49b02bfd9
- Parent:
- 0:60680ad16314
base porting
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
alphaemmeo | 0:60680ad16314 | 1 | /* |
alphaemmeo | 0:60680ad16314 | 2 | * Copyright (c) 2017 Helmut Tschemernjak |
alphaemmeo | 0:60680ad16314 | 3 | * 30826 Garbsen (Hannover) Germany |
alphaemmeo | 0:60680ad16314 | 4 | * Licensed under the Apache License, Version 2.0); |
alphaemmeo | 0:60680ad16314 | 5 | */ |
alphaemmeo | 0:60680ad16314 | 6 | |
alphaemmeo | 0:60680ad16314 | 7 | |
alphaemmeo | 0:60680ad16314 | 8 | |
alphaemmeo | 0:60680ad16314 | 9 | #ifdef TARGET_NUCLEO_L476RG |
alphaemmeo | 0:60680ad16314 | 10 | #define FEATURE_LORA 1 |
alphaemmeo | 0:60680ad16314 | 11 | #elif TARGET_DISCO_L072CZ_LRWAN1 |
alphaemmeo | 0:60680ad16314 | 12 | #define FEATURE_LORA 1 |
alphaemmeo | 0:60680ad16314 | 13 | #endif |
alphaemmeo | 0:60680ad16314 | 14 | |
alphaemmeo | 0:60680ad16314 | 15 | |
alphaemmeo | 0:60680ad16314 | 16 | |
alphaemmeo | 0:60680ad16314 | 17 | #if defined(TARGET_DISCO_L072CZ_LRWAN1) |
alphaemmeo | 0:60680ad16314 | 18 | |
alphaemmeo | 0:60680ad16314 | 19 | #define LORA_SPI_MOSI PA_7 |
alphaemmeo | 0:60680ad16314 | 20 | #define LORA_SPI_MISO PA_6 |
alphaemmeo | 0:60680ad16314 | 21 | #define LORA_SPI_SCLK PB_3 |
alphaemmeo | 0:60680ad16314 | 22 | #define LORA_CS PA_15 |
alphaemmeo | 0:60680ad16314 | 23 | #define LORA_RESET PC_0 |
alphaemmeo | 0:60680ad16314 | 24 | #define LORA_DIO0 PB_4 |
alphaemmeo | 0:60680ad16314 | 25 | #define LORA_DIO1 PB_1 |
alphaemmeo | 0:60680ad16314 | 26 | #define LORA_DIO2 PB_0 |
alphaemmeo | 0:60680ad16314 | 27 | #define LORA_DIO3 PC_13 |
alphaemmeo | 0:60680ad16314 | 28 | #define LORA_DIO4 PA_5 |
alphaemmeo | 0:60680ad16314 | 29 | #define LORA_DIO5 PA_4 |
alphaemmeo | 0:60680ad16314 | 30 | #define LORA_ANT_RX PA_1 |
alphaemmeo | 0:60680ad16314 | 31 | #define LORA_ANT_TX PC_2 |
alphaemmeo | 0:60680ad16314 | 32 | #define LORA_ANT_BOOST PC_1 |
alphaemmeo | 0:60680ad16314 | 33 | #define LORA_TCXO PA_12 // 32 MHz |
alphaemmeo | 0:60680ad16314 | 34 | |
alphaemmeo | 0:60680ad16314 | 35 | |
alphaemmeo | 0:60680ad16314 | 36 | |
alphaemmeo | 0:60680ad16314 | 37 | #elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board |
alphaemmeo | 0:60680ad16314 | 38 | |
alphaemmeo | 0:60680ad16314 | 39 | #define LORA_SPI_MOSI PC_12 |
alphaemmeo | 0:60680ad16314 | 40 | #define LORA_SPI_MISO PC_11 |
alphaemmeo | 0:60680ad16314 | 41 | #define LORA_SPI_SCLK PC_10 |
alphaemmeo | 0:60680ad16314 | 42 | #define LORA_CS PA_0 |
alphaemmeo | 0:60680ad16314 | 43 | #define LORA_RESET PA_1 |
alphaemmeo | 0:60680ad16314 | 44 | #define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone |
alphaemmeo | 0:60680ad16314 | 45 | #define LORA_DIO1 PB_7 // |
alphaemmeo | 0:60680ad16314 | 46 | #define LORA_DIO2 PC_14 // DIO2=FhssChangeChannel |
alphaemmeo | 0:60680ad16314 | 47 | #define LORA_DIO3 PC_15 // DIO3=CADDone |
alphaemmeo | 0:60680ad16314 | 48 | #define LORA_DIO4 PH_0 // ???? |
alphaemmeo | 0:60680ad16314 | 49 | #define LORA_DIO5 NC // unused? |
alphaemmeo | 0:60680ad16314 | 50 | |
alphaemmeo | 0:60680ad16314 | 51 | #endif |