Bluetooth Connected TOF Sensor
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/target.h@30:e324e95c68a9, 2017-02-02 (annotated)
- Committer:
- hux
- Date:
- Thu Feb 02 17:35:34 2017 +0000
- Revision:
- 30:e324e95c68a9
- Parent:
- 28:def5e0f0fb06
Final Version 2.0 of S16_Blue_ToF
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 28:def5e0f0fb06 | 1 | // bricks/target.h - define target specifics |
hux | 28:def5e0f0fb06 | 2 | |
hux | 28:def5e0f0fb06 | 3 | #ifndef _BRICKS_TARGET_H_ |
hux | 28:def5e0f0fb06 | 4 | #define _BRICKS_TARGET_H_ |
hux | 28:def5e0f0fb06 | 5 | |
hux | 28:def5e0f0fb06 | 6 | //#define MTCONNECT04 // MtM nRF51822 module MtConnect04 |
hux | 28:def5e0f0fb06 | 7 | |
hux | 28:def5e0f0fb06 | 8 | // platform specific defines - comment out platforms which are not used |
hux | 28:def5e0f0fb06 | 9 | // We work only with two kinds of platform: |
hux | 28:def5e0f0fb06 | 10 | // |
hux | 28:def5e0f0fb06 | 11 | // a) a NUCLEO platform from STMicroelectronics |
hux | 28:def5e0f0fb06 | 12 | // b) a nRF51 platform from Nordic Semiconductor |
hux | 28:def5e0f0fb06 | 13 | // |
hux | 28:def5e0f0fb06 | 14 | // If we have not a nRF51 target then we coclude it is a NUCLEO target. This is |
hux | 28:def5e0f0fb06 | 15 | // not really clean, but under above assumptions it works so far! |
hux | 28:def5e0f0fb06 | 16 | |
hux | 28:def5e0f0fb06 | 17 | #ifdef TARGET_NRF51822 |
hux | 28:def5e0f0fb06 | 18 | # define LED_INVERTED // inverted LED for nRF51 targets |
hux | 28:def5e0f0fb06 | 19 | #endif |
hux | 28:def5e0f0fb06 | 20 | |
hux | 28:def5e0f0fb06 | 21 | #ifdef MTCONNECT04 |
hux | 28:def5e0f0fb06 | 22 | # define BLINK_LED p16 |
hux | 28:def5e0f0fb06 | 23 | #endif |
hux | 28:def5e0f0fb06 | 24 | |
hux | 28:def5e0f0fb06 | 25 | #endif // _BRICKS_TARGET_H_ |