![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
Diff: PinMap.h
- Revision:
- 29:04e1489f8fe2
- Parent:
- 18:d5527ce82e6b
- Child:
- 30:d43802606136
--- a/PinMap.h Thu May 31 22:50:54 2018 +0000 +++ b/PinMap.h Mon Sep 17 20:37:51 2018 +0000 @@ -1,23 +1,7 @@ -/* - * Copyright (c) 2018 Helmut Tschemernjak - * 30826 Garbsen (Hannover) Germany - * Licensed under the Apache License, Version 2.0); - */ - - - -#ifdef TARGET_NUCLEO_L476RG +/* Here are defined the GPIO ports and those other pins necessary to manage the lora connection. +*/ +#ifdef TARGET_DISCO_L072CZ_LRWAN1 #define FEATURE_LORA - -#elif TARGET_DISCO_L072CZ_LRWAN1 - #define FEATURE_LORA - -#elif TARGET_STM32L432KC - #define HELTEC_STM32L4 - #define FEATURE_LORA - #define FEATURE_USBSERIAL -#endif - #if defined(TARGET_DISCO_L072CZ_LRWAN1) @@ -39,64 +23,6 @@ #define LORA_ANT_BOOST PC_1 #define LORA_TCXO PA_12 // 32 MHz - - -#elif defined(TARGET_NUCLEO_L476RG) // using the RFM95 board - -#define LORA_SPI_MOSI PC_12 -#define LORA_SPI_MISO PC_11 -#define LORA_SPI_SCLK PC_10 -#define LORA_CS PA_0 -#define LORA_RESET PA_1 -#define LORA_DIO0 PD_2 // DIO0=TxDone/RXDone -#define LORA_DIO1 PB_7 // -#define LORA_DIO2 PC_14 // DIO2=FhssChangeChannel -#define LORA_DIO3 PC_15 // DIO3=CADDone -#define LORA_DIO4 PH_0 // ???? -#define LORA_DIO5 NC // unused? - -#elif defined (HELTEC_STM32L4) - -#define USER_BUTTON PH_3 // boot pin -#define LED PB_0 // red -#define LED2 PB_1 // green -#define LED1 LED - -#define POWER_VEXT PA_3 -#define POWER_VEXT_ON 0 -#define POWER_VEXT_OFF 1 - - -#define LORA_SPI_MOSI PA_7 -#define LORA_SPI_MISO PA_6 -#define LORA_SPI_SCLK PA_5 -#define LORA_CS PA_4 -#define LORA_RESET PA_1 -#define LORA_DIO0 PA_0 // DIO0=TxDone/RXDone/CADDone -#define LORA_DIO1 NC // -#define LORA_DIO2 NC // -#define LORA_DIO3 NC // -#define LORA_DIO4 NC // -#define LORA_DIO5 NC // - -#elif defined(TARGET_NUCLEO_L432KC) // using the RFM95 board - -// #define LED PB_3 // green -#define LED PB_5 // green - -#define LORA_SPI_MOSI PA_7 -#define LORA_SPI_MISO PA_6 -#define LORA_SPI_SCLK PB_5 -#define LORA_CS PA_4 -#define LORA_RESET PA_1 -#define LORA_DIO0 PA_0 // DIO0=TxDone/RXDone/CADDone -#define LORA_DIO1 NC // -#define LORA_DIO2 NC // -#define LORA_DIO3 NC // -#define LORA_DIO4 NC // -#define LORA_DIO5 NC // - - #else #error "unknown board"