A cute tiny piece of code implementing an IoT NAND device, demonstrating how to setup and advertise a cute GATT (NAND) service. The code has been tested on a Nordic nRF51822-DK.

Dependencies:   BLE_API mbed nRF51822

Fork of BLE_HeartRate_IDB0XA1 by ST

Committer:
hux
Date:
Sat May 19 14:10:17 2018 +0000
Revision:
26:dce30a5341bb
Published

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hux 26:dce30a5341bb 1 // bricks/target.h - define target specifics
hux 26:dce30a5341bb 2
hux 26:dce30a5341bb 3 #ifndef _BRICKS_TARGET_H_
hux 26:dce30a5341bb 4 #define _BRICKS_TARGET_H_
hux 26:dce30a5341bb 5
hux 26:dce30a5341bb 6 //#define MTCONNECT04 // MtM nRF51822 module MtConnect04
hux 26:dce30a5341bb 7
hux 26:dce30a5341bb 8 // platform specific defines - comment out platforms which are not used
hux 26:dce30a5341bb 9 // We work only with two kinds of platform:
hux 26:dce30a5341bb 10 //
hux 26:dce30a5341bb 11 // a) a NUCLEO platform from STMicroelectronics
hux 26:dce30a5341bb 12 // b) a nRF51 platform from Nordic Semiconductor
hux 26:dce30a5341bb 13 //
hux 26:dce30a5341bb 14 // If we have not a nRF51 target then we coclude it is a NUCLEO target. This is
hux 26:dce30a5341bb 15 // not really clean, but under above assumptions it works so far!
hux 26:dce30a5341bb 16
hux 26:dce30a5341bb 17 #ifdef TARGET_NRF51822
hux 26:dce30a5341bb 18 # define LED_INVERTED // inverted LED for nRF51 targets
hux 26:dce30a5341bb 19 #endif
hux 26:dce30a5341bb 20
hux 26:dce30a5341bb 21 #ifdef MTCONNECT04
hux 26:dce30a5341bb 22 # define BLINK_LED p16
hux 26:dce30a5341bb 23 #endif
hux 26:dce30a5341bb 24
hux 26:dce30a5341bb 25 #endif // _BRICKS_TARGET_H_