1
Dependencies: X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed
Diff: board/board.h
- Revision:
- 2:78df92a365c2
- Parent:
- 1:80c1daf19aa4
- Child:
- 3:4bca7f8f731a
--- a/board/board.h Fri Aug 26 20:51:07 2016 +0000 +++ b/board/board.h Sat Aug 27 04:03:02 2016 +0000 @@ -22,6 +22,10 @@ #include "system/utilities.h" #include "sx1276-hal.h" +#ifdef USE_IKS01A1_SENSOR +#include "x_nucleo_iks01a1.h" +#endif + /*! * Unique Devices IDs register set ( STM32L1xxx ) */ @@ -30,18 +34,22 @@ #define ID3 ( 0x1FF800E4 ) #define LOW_BAT_THRESHOLD 3.45 +#define AIN_VREF 3.3 // STM32 internal refernce +#define AIN_VBAT_DIV 2 // Resistor divider extern SX1276MB1xAS Radio; extern DigitalIn UsrButton; -typedef enum -{ - MOTE_VERSION_NONE = 0, - MOTE_VERSION_2, - MOTE_VERSION_3, -}MoteVersion_t; +extern AnalogOut UsrLED; +#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; +#endif /*! * \brief Initializes the target board peripherals.