Uttam Bhat / Mbed 2 deprecated Training-Aug2018-SX1272-X-NUCLEO-IKS01A2

Dependencies:   X_NUCLEO_IKS01A2 driver_mbed_TH02 mbed LoRaWAN-lib-v1_0_1 SX1272Lib

Fork of LoRaWAN-SX1272-Application-Demo by Semtech

Files at this revision

API Documentation at this revision

Comitter:
ubhat
Date:
Sat Nov 25 23:07:40 2017 +0000
Parent:
6:dfba69760b76
Child:
8:7ddaacb6dda6
Commit message:
Added Unique Device ID specific to the platform in use

Changed in this revision

board/board.h Show annotated file Show diff for this revision Revisions of this file
--- a/board/board.h	Fri Nov 10 09:42:56 2017 +0000
+++ b/board/board.h	Sat Nov 25 23:07:40 2017 +0000
@@ -31,6 +31,7 @@
 #include "x_nucleo_iks01a1.h"
 #endif
 
+#if defined ( TARGET_NUCLEO_L152RE )
 /*!
  * Unique Devices IDs register set ( STM32L1xxx )
  */
@@ -38,6 +39,24 @@
 #define         ID2                                 ( 0x1FF800D4 )
 #define         ID3                                 ( 0x1FF800E4 )
 
+#elif defined ( TARGET_NUCLEO_F401RE )
+/*!
+ * Unique Devices IDs register set ( STM32F4xxx )
+ */
+#define         ID1                                 ( 0x1FFF7A10 )
+#define         ID2                                 ( 0x1FFF7A14 )
+#define         ID3                                 ( 0x1FFF7A18 )
+
+#elif defined ( TARGET_NUCLEO_L073RZ )
+/*!
+ * Unique Devices IDs register set ( STM32L0xxx )
+ */
+#define         ID1                                 ( 0x1FF80050 )
+#define         ID2                                 ( 0x1FF80054 )
+#define         ID3                                 ( 0x1FF80064 )
+
+#endif
+
 #define LOW_BAT_THRESHOLD   3.45
 #define AIN_VREF            3.3     // STM32 internal refernce
 #define AIN_VBAT_DIV        2       // Resistor divider