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: BLE_API mbed nRF51822
Fork of BLE_Button by
bricks/target.h@11:80f2c19ecbce, 2017-01-07 (annotated)
- Committer:
- hux
- Date:
- Sat Jan 07 23:48:53 2017 +0000
- Revision:
- 11:80f2c19ecbce
- Child:
- 12:0d0ca44397dd
New Blob class derived from BLE class
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hux | 11:80f2c19ecbce | 1 | // bricks/target.h - define target specifics |
| hux | 11:80f2c19ecbce | 2 | |
| hux | 11:80f2c19ecbce | 3 | #ifndef _BRICKS_TARGET_H_ |
| hux | 11:80f2c19ecbce | 4 | #define _BRICKS_TARGET_H_ |
| hux | 11:80f2c19ecbce | 5 | |
| hux | 11:80f2c19ecbce | 6 | // platform specific defines - comment out platforms which are not used |
| hux | 11:80f2c19ecbce | 7 | // We work only with two kinds of platform: |
| hux | 11:80f2c19ecbce | 8 | // |
| hux | 11:80f2c19ecbce | 9 | // a) a NUCLEO platform from STMicroelectronics |
| hux | 11:80f2c19ecbce | 10 | // b) a nRF51 platform from Nordic Semiconductor |
| hux | 11:80f2c19ecbce | 11 | // |
| hux | 11:80f2c19ecbce | 12 | // If we have not a nRF51 target then we coclude it is a NUCLEO target. This is |
| hux | 11:80f2c19ecbce | 13 | // not really clean, but under above assumptions it works so far! |
| hux | 11:80f2c19ecbce | 14 | |
| hux | 11:80f2c19ecbce | 15 | #ifdef TARGET_NRF51822 |
| hux | 11:80f2c19ecbce | 16 | # define LED_INVERTED // inverted LED for nRF51 targets |
| hux | 11:80f2c19ecbce | 17 | #endif |
| hux | 11:80f2c19ecbce | 18 | |
| hux | 11:80f2c19ecbce | 19 | #endif // _BRICKS_TARGET_H_ |
