Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
Diff: bsp/bsp.h
- Branch:
- mbedOsUpdate
- Revision:
- 19:2681edc2f2b9
- Parent:
- 8:7ba4f82de9b6
- Child:
- 22:7dae8496b97c
--- a/bsp/bsp.h Wed Sep 12 16:21:36 2018 +0200 +++ b/bsp/bsp.h Thu Sep 13 12:20:35 2018 +0200 @@ -1,7 +1,10 @@ #ifndef __BSP_H__ #define __BSP_H__ -#include "main.h" +#include "aconnoConfig.h" +#include "mbed.h" + +#define I2C_ADDRESS (0b00110010) #if NANO_MODULE #define I2C_DATA (p2) @@ -22,4 +25,19 @@ #define BUZZER_PIN (p18) #endif -#endif //__BSP_H__ \ No newline at end of file +enum lisPower_t{ + LIS_ON = 0, + LIS_OFF +}; + +extern lisPower_t lisPower; + +extern DigitalOut lisPowerPin; +extern char memsI2CAddress; +extern InterruptIn lisInt1Pin; +//extern InterruptIn INT2(); +extern I2C i2c; + +void lisPowerCtrl(lisPower_t power); + +#endif //__BSP_H__