LR Initial Publish

Dependencies:   X_NUCLEO_IKS01A2 driver_mbed_TH02 mbed LoRaWAN-lib-v1_0_1 SX1272Lib

Fork of Training-Aug2018-SX1272-X-NUCLEO-IKS01A2 by Uttam Bhat

Revision:
10:bba416e2c3e1
Parent:
7:b43f071aefb7
--- a/board/board.h	Sun Aug 12 06:09:53 2018 +0000
+++ b/board/board.h	Sun Aug 19 20:08:35 2018 +0000
@@ -18,19 +18,15 @@
 #include "Config.h"
 #include "mbed.h"
 #include "system/timer.h"
-#include "debug.h"
 #include "system/utilities.h"
 #include "sx1272-hal.h"
+#include "XNucleoIKS01A2.h"
 
 #ifdef USE_GROVE_SENSOR
 // Grove temperature-humidity sensor
 #include "driver_mbed_TH02.h"
 #endif
 
-#ifdef USE_IKS01A1_SENSOR
-#include "x_nucleo_iks01a1.h"
-#endif
-
 #if defined ( TARGET_NUCLEO_L152RE )
 /*!
  * Unique Devices IDs register set ( STM32L1xxx )
@@ -67,14 +63,15 @@
 
 extern DigitalOut Led;
 
-#ifdef USE_IKS01A1_SENSOR
-extern X_NUCLEO_IKS01A1 *mems_expansion_board;
-extern MotionSensor *accelerometer;
-extern HumiditySensor *humidity_sensor;
-extern PressureSensor *pressure_sensor;
-extern TempSensor *temp_sensor1;
-extern TempSensor *temp_sensor2;
-#endif
+/* Instantiate the expansion board */
+extern XNucleoIKS01A2 *mems_expansion_board;
+ 
+/* Retrieve the composing elements of the expansion board */
+extern LSM303AGRMagSensor *magnetometer;
+extern HTS221Sensor *hum_temp;
+extern LPS22HBSensor *press_temp;
+extern LSM6DSLSensor *acc_gyro;
+extern LSM303AGRAccSensor *accelerometer;
 
 /*!
  * \brief Initializes the target board peripherals.