Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: aconno_I2C Lis2dh12 adc52832_common aconno_SEGGER_RTT
Diff: bsp/bsp.cpp
- Branch:
- SimpleGATTExample
- Revision:
- 22:7dae8496b97c
- Parent:
- 19:2681edc2f2b9
--- a/bsp/bsp.cpp Thu Sep 13 12:20:35 2018 +0200
+++ b/bsp/bsp.cpp Thu Sep 13 15:14:14 2018 +0200
@@ -9,14 +9,11 @@
#include "bsp.h"
#include "aconnoConfig.h"
-lisPower_t lisPower = LIS_OFF;
-char memsI2CAddress = I2C_ADDRESS;
-DigitalOut lisPowerPin(ACC_POWER_PIN);
-InterruptIn lisInt1Pin(INT_PIN1);
-//InterruptIn INT2(INT_PIN2);
-I2C i2c(I2C_DATA,I2C_CLK);
+DigitalOut redLed(RED_LED_PIN);
+DigitalOut greenLed(GREEN_LED_PIN);
-void lisPowerCtrl(lisPower_t power)
+void bspInit()
{
- lisPowerPin = power;
+ redLed = LED_OFF;
+ greenLed = LED_OFF;
}
