Smartage application
Dependencies: BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2
Fork of STM32L0_LoRa by
Revision 16:675f4d0ee9e9, committed 2018-02-22
- Comitter:
- Helmut64
- Date:
- Thu Feb 22 11:12:24 2018 +0000
- Parent:
- 15:c70f65d606c4
- Child:
- 17:98f2528e8399
- Commit message:
- Added proper PinMap for the Heltec Board; updated libs
Changed in this revision
--- a/PinMap.h Tue Jan 30 09:51:21 2018 +0000 +++ b/PinMap.h Thu Feb 22 11:12:24 2018 +0000 @@ -7,11 +7,15 @@ #ifdef TARGET_NUCLEO_L476RG - #define FEATURE_LORA 1 + #define FEATURE_LORA + #elif TARGET_DISCO_L072CZ_LRWAN1 - #define FEATURE_LORA 1 -#elif NUCLEO_L432KC - #define FEATURE_LORA 1 + #define FEATURE_LORA + +#elif TARGET_STM32L432KC + #define HELTEC_STM32L4 + #define FEATURE_LORA + #define FEATURE_USBSERIAL #endif @@ -50,6 +54,24 @@ #define LORA_DIO4 PH_0 // ???? #define LORA_DIO5 NC // unused? +#elif defined (HELTEC_STM32L4) + +#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 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 // + #elif defined(TARGET_NUCLEO_L432KC) // using the RFM95 board @@ -63,5 +85,10 @@ #define LORA_DIO2 NC // #define LORA_DIO3 NC // #define LORA_DIO4 NC // -#define LORA_DIO5 NC // +#define LORA_DIO5 NC // + +#else + +#error "unknown board" + #endif \ No newline at end of file
--- a/SX1276GenericLib.lib Tue Jan 30 09:51:21 2018 +0000 +++ b/SX1276GenericLib.lib Thu Feb 22 11:12:24 2018 +0000 @@ -1,1 +1,1 @@ -http://developer.mbed.org/users/Helmut64/code/SX1276GenericLib/#3d7cfa8b8519 +http://developer.mbed.org/users/Helmut64/code/SX1276GenericLib/#528f37db941f
--- a/SX1276GenericPingPong/GenericPingPong.cpp Tue Jan 30 09:51:21 2018 +0000 +++ b/SX1276GenericPingPong/GenericPingPong.cpp Thu Feb 22 11:12:24 2018 +0000 @@ -220,7 +220,7 @@ while( 1 ) { #ifdef TARGET_STM32L4 - WatchDogUpdate(); + // WatchDogUpdate(); #endif switch( State )
--- a/main.cpp Tue Jan 30 09:51:21 2018 +0000 +++ b/main.cpp Thu Feb 22 11:12:24 2018 +0000 @@ -14,7 +14,7 @@ int main() { ser = new BufferedSerial(USBTX, USBRX); - ser->baud(115200*2); + ser->baud(230400); ser->format(8); ser->printf("Hello World\n\r"); myled = 1;
--- a/main.h Tue Jan 30 09:51:21 2018 +0000 +++ b/main.h Thu Feb 22 11:12:24 2018 +0000 @@ -9,7 +9,6 @@ #include "BufferedSerial.h" #include "GenericPingPong.h" -void SystemClock_Config(void); extern BufferedSerial *ser; extern void dump(const char *title, const void *data, int len, bool dwords = false);
--- a/mbed.bld Tue Jan 30 09:51:21 2018 +0000 +++ b/mbed.bld Thu Feb 22 11:12:24 2018 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/mbed_official/code/mbed/builds/7130f322cb7e \ No newline at end of file +http://mbed.org/users/mbed_official/code/mbed/builds/5571c4ff569f \ No newline at end of file