Lizzy project
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
bsp/bsp.h
- Committer:
- jurica238814
- Date:
- 2018-09-13
- Branch:
- mbedOsUpdate
- Revision:
- 19:2681edc2f2b9
- Parent:
- 8:7ba4f82de9b6
- Child:
- 22:7dae8496b97c
File content as of revision 19:2681edc2f2b9:
#ifndef __BSP_H__ #define __BSP_H__ #include "aconnoConfig.h" #include "mbed.h" #define I2C_ADDRESS (0b00110010) #if NANO_MODULE #define I2C_DATA (p2) #define I2C_CLK (p3) #define INT_PIN1 (p10) #define INT_PIN2 (p9) #define ACC_POWER_PIN (p13) #define RED_LED_PIN (p12) #else #define I2C_DATA (p20) #define I2C_CLK (p17) #define INT_PIN1 (p16) #define INT_PIN2 (p15) #define ACC_POWER_PIN (p11) #define RED_LED_PIN (p31) //p22 #define GREEN_LED_PIN (p2) #define BLUE_LED_PIN (p3) #define BUZZER_PIN (p18) #endif 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__