Lora pinpong demo (fork of https://developer.mbed.org/users/Helmut64/code/STM32L0_LoRa/ example)

Dependencies:   BufferedSerial SX1276GenericLib mbed

Fork of STM32L0_LoRa by Helmut Tschemernjak

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PinMap.h Source File

PinMap.h

00001 /*
00002  * Copyright (c) 2017 Helmut Tschemernjak
00003  * 30826 Garbsen (Hannover) Germany
00004  * Licensed under the Apache License, Version 2.0);
00005  */
00006 
00007 
00008 
00009 #ifdef TARGET_NUCLEO_L476RG
00010  #define FEATURE_LORA   1
00011 #elif TARGET_DISCO_L072CZ_LRWAN1
00012 #define FEATURE_LORA   1
00013 #endif
00014 
00015 
00016 
00017 #if defined(TARGET_DISCO_L072CZ_LRWAN1)
00018 
00019 #define LORA_SPI_MOSI   PA_7
00020 #define LORA_SPI_MISO   PA_6
00021 #define LORA_SPI_SCLK   PB_3
00022 #define LORA_CS         PA_15
00023 #define LORA_RESET      PC_0
00024 #define LORA_DIO0       PB_4
00025 #define LORA_DIO1       PB_1
00026 #define LORA_DIO2       PB_0
00027 #define LORA_DIO3       PC_13
00028 #define LORA_DIO4       PA_5
00029 #define LORA_DIO5       PA_4
00030 #define LORA_ANT_RX     PA_1
00031 #define LORA_ANT_TX     PC_2
00032 #define LORA_ANT_BOOST  PC_1
00033 #define LORA_TCXO       PA_12   // 32 MHz
00034 
00035 
00036 
00037 #elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board
00038 
00039 #define LORA_SPI_MOSI   PC_12
00040 #define LORA_SPI_MISO   PC_11
00041 #define LORA_SPI_SCLK   PC_10
00042 #define LORA_CS         PA_0
00043 #define LORA_RESET      PA_1
00044 #define LORA_DIO0       PD_2    // DIO0=TxDone/RXDone
00045 #define LORA_DIO1       PB_7    //
00046 #define LORA_DIO2       PC_14   // DIO2=FhssChangeChannel
00047 #define LORA_DIO3       PC_15   // DIO3=CADDone
00048 #define LORA_DIO4       PH_0    // ????
00049 #define LORA_DIO5       NC      // unused?
00050 
00051 #endif