RX

Dependencies:   mbed BufferedSerial SX1276GenericLib X_NUCLEO_IKS01A2

Committer:
TMRL123
Date:
Wed Jun 05 00:23:37 2019 +0000
Revision:
0:674f1e460248
Commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMRL123 0:674f1e460248 1 /*
TMRL123 0:674f1e460248 2 * Copyright (c) 2017 Helmut Tschemernjak
TMRL123 0:674f1e460248 3 * 30826 Garbsen (Hannover) Germany
TMRL123 0:674f1e460248 4 * Licensed under the Apache License, Version 2.0);
TMRL123 0:674f1e460248 5 */
TMRL123 0:674f1e460248 6
TMRL123 0:674f1e460248 7
TMRL123 0:674f1e460248 8
TMRL123 0:674f1e460248 9 #ifdef TARGET_NUCLEO_L476RG
TMRL123 0:674f1e460248 10 #define FEATURE_LORA 1
TMRL123 0:674f1e460248 11 #elif TARGET_DISCO_L072CZ_LRWAN1
TMRL123 0:674f1e460248 12 #define FEATURE_LORA 1
TMRL123 0:674f1e460248 13 #endif
TMRL123 0:674f1e460248 14
TMRL123 0:674f1e460248 15
TMRL123 0:674f1e460248 16
TMRL123 0:674f1e460248 17 #if defined(TARGET_DISCO_L072CZ_LRWAN1)
TMRL123 0:674f1e460248 18
TMRL123 0:674f1e460248 19 #define LORA_SPI_MOSI PA_7
TMRL123 0:674f1e460248 20 #define LORA_SPI_MISO PA_6
TMRL123 0:674f1e460248 21 #define LORA_SPI_SCLK PB_3
TMRL123 0:674f1e460248 22 #define LORA_CS PA_15
TMRL123 0:674f1e460248 23 #define LORA_RESET PC_0
TMRL123 0:674f1e460248 24 #define LORA_DIO0 PB_4
TMRL123 0:674f1e460248 25 #define LORA_DIO1 PB_1
TMRL123 0:674f1e460248 26 #define LORA_DIO2 PB_0
TMRL123 0:674f1e460248 27 #define LORA_DIO3 PC_13
TMRL123 0:674f1e460248 28 #define LORA_DIO4 PA_5
TMRL123 0:674f1e460248 29 #define LORA_DIO5 PA_4
TMRL123 0:674f1e460248 30 #define LORA_ANT_RX PA_1
TMRL123 0:674f1e460248 31 #define LORA_ANT_TX PC_2
TMRL123 0:674f1e460248 32 #define LORA_ANT_BOOST PC_1
TMRL123 0:674f1e460248 33 #define LORA_TCXO PA_12 // 32 MHz
TMRL123 0:674f1e460248 34
TMRL123 0:674f1e460248 35
TMRL123 0:674f1e460248 36
TMRL123 0:674f1e460248 37 #elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board
TMRL123 0:674f1e460248 38
TMRL123 0:674f1e460248 39 #define LORA_SPI_MOSI PC_12
TMRL123 0:674f1e460248 40 #define LORA_SPI_MISO PC_11
TMRL123 0:674f1e460248 41 #define LORA_SPI_SCLK PC_10
TMRL123 0:674f1e460248 42 #define LORA_CS PA_0
TMRL123 0:674f1e460248 43 #define LORA_RESET PA_1
TMRL123 0:674f1e460248 44 #define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone
TMRL123 0:674f1e460248 45 #define LORA_DIO1 PB_7 //
TMRL123 0:674f1e460248 46 #define LORA_DIO2 PC_14 // DIO2=FhssChangeChannel
TMRL123 0:674f1e460248 47 #define LORA_DIO3 PC_15 // DIO3=CADDone
TMRL123 0:674f1e460248 48 #define LORA_DIO4 PH_0 // ????
TMRL123 0:674f1e460248 49 #define LORA_DIO5 NC // unused?
TMRL123 0:674f1e460248 50
TMRL123 0:674f1e460248 51 #endif