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:
Sun Dec 18 05:33:58 2016 +0000
Revision:
22:d467526abc4a
some new stuff added - works now

Who changed what in which revision?

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