First attempt at LoRa USB Tx
Dependencies: BufferedSerial SX1276GenericLib mbed
Fork of DISCO-L072CZ-LRWAN1_LoRa_PingPong by
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 #define B_L072Z_LRWAN1_LORA 1 // the STM Lora Board 00014 #endif 00015 00016 00017 00018 #if defined(TARGET_STM32L0) 00019 00020 #ifdef B_L072Z_LRWAN1_LORA // B-L072Z-LRWAN1 LoRa Board using the Murta SX1276 00021 #define USER_BUTTON PB_2 // Red not PC13 as used on the Nucleo 00022 #define LED2 PA_5 // Green 00023 #define LED3 PB_6 // Blue 00024 #define LED4 PB_7 // Red 00025 00026 #define LORA_SPI_MOSI PA_7 00027 #define LORA_SPI_MISO PA_6 00028 #define LORA_SPI_SCLK PB_3 00029 #define LORA_CS PA_15 00030 #define LORA_RESET PC_0 00031 #define LORA_DIO0 PB_4 00032 #define LORA_DIO1 PB_1 00033 #define LORA_DIO2 PB_0 00034 #define LORA_DIO3 (PinName)0x2D //PC_13 00035 #define LORA_DIO4 PA_5 00036 #define LORA_DIO5 PA_4 00037 #define LORA_ANT_RX PA_1 00038 #define LORA_ANT_TX PC_2 00039 #define LORA_ANT_BOOST PC_1 00040 #define LORA_TCXO PA_12 // 32 MHz 00041 #endif // B_L072Z_LRWAN1_LORA 00042 00043 00044 00045 #elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board 00046 00047 #define LORA_SPI_MOSI PC_12 00048 #define LORA_SPI_MISO PC_11 00049 #define LORA_SPI_SCLK PC_10 00050 #define LORA_CS PA_0 00051 #define LORA_RESET PA_1 00052 #define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone 00053 #define LORA_DIO1 PB_7 // 00054 #define LORA_DIO2 PC_14 // DIO2=FhssChangeChannel 00055 #define LORA_DIO3 PC_15 // DIO3=CADDone 00056 #define LORA_DIO4 PH_0 // ???? 00057 #define LORA_DIO5 NC // unused? 00058 00059 #endif
Generated on Sun Jul 17 2022 01:10:43 by 1.7.2