BLE_Nano nRF51 Central heart rate
nRF51_SDK_11/components/device/nrf.h@0:2b9b5764efb5, 2016-05-26 (annotated)
- Committer:
- FranKP2138
- Date:
- Thu May 26 10:12:27 2016 +0000
- Revision:
- 0:2b9b5764efb5
RedBearLab BLE_Nano Central role for heart rate
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FranKP2138 | 0:2b9b5764efb5 | 1 | /* Copyright (c) 2015, Nordic Semiconductor ASA |
FranKP2138 | 0:2b9b5764efb5 | 2 | * All rights reserved. |
FranKP2138 | 0:2b9b5764efb5 | 3 | * |
FranKP2138 | 0:2b9b5764efb5 | 4 | * Redistribution and use in source and binary forms, with or without |
FranKP2138 | 0:2b9b5764efb5 | 5 | * modification, are permitted provided that the following conditions are met: |
FranKP2138 | 0:2b9b5764efb5 | 6 | * |
FranKP2138 | 0:2b9b5764efb5 | 7 | * * Redistributions of source code must retain the above copyright notice, this |
FranKP2138 | 0:2b9b5764efb5 | 8 | * list of conditions and the following disclaimer. |
FranKP2138 | 0:2b9b5764efb5 | 9 | * |
FranKP2138 | 0:2b9b5764efb5 | 10 | * * Redistributions in binary form must reproduce the above copyright notice, |
FranKP2138 | 0:2b9b5764efb5 | 11 | * this list of conditions and the following disclaimer in the documentation |
FranKP2138 | 0:2b9b5764efb5 | 12 | * and/or other materials provided with the distribution. |
FranKP2138 | 0:2b9b5764efb5 | 13 | * |
FranKP2138 | 0:2b9b5764efb5 | 14 | * * Neither the name of Nordic Semiconductor ASA nor the names of its |
FranKP2138 | 0:2b9b5764efb5 | 15 | * contributors may be used to endorse or promote products derived from |
FranKP2138 | 0:2b9b5764efb5 | 16 | * this software without specific prior written permission. |
FranKP2138 | 0:2b9b5764efb5 | 17 | * |
FranKP2138 | 0:2b9b5764efb5 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
FranKP2138 | 0:2b9b5764efb5 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
FranKP2138 | 0:2b9b5764efb5 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
FranKP2138 | 0:2b9b5764efb5 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
FranKP2138 | 0:2b9b5764efb5 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
FranKP2138 | 0:2b9b5764efb5 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
FranKP2138 | 0:2b9b5764efb5 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
FranKP2138 | 0:2b9b5764efb5 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
FranKP2138 | 0:2b9b5764efb5 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
FranKP2138 | 0:2b9b5764efb5 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
FranKP2138 | 0:2b9b5764efb5 | 28 | * |
FranKP2138 | 0:2b9b5764efb5 | 29 | */ |
FranKP2138 | 0:2b9b5764efb5 | 30 | |
FranKP2138 | 0:2b9b5764efb5 | 31 | #ifndef NRF_H |
FranKP2138 | 0:2b9b5764efb5 | 32 | #define NRF_H |
FranKP2138 | 0:2b9b5764efb5 | 33 | |
FranKP2138 | 0:2b9b5764efb5 | 34 | /* MDK version */ |
FranKP2138 | 0:2b9b5764efb5 | 35 | #define MDK_MAJOR_VERSION 8 |
FranKP2138 | 0:2b9b5764efb5 | 36 | #define MDK_MINOR_VERSION 5 |
FranKP2138 | 0:2b9b5764efb5 | 37 | #define MDK_MICRO_VERSION 0 |
FranKP2138 | 0:2b9b5764efb5 | 38 | |
FranKP2138 | 0:2b9b5764efb5 | 39 | #if defined(_WIN32) |
FranKP2138 | 0:2b9b5764efb5 | 40 | /* Do not include nrf51 specific files when building for PC host */ |
FranKP2138 | 0:2b9b5764efb5 | 41 | #elif defined(__unix) |
FranKP2138 | 0:2b9b5764efb5 | 42 | /* Do not include nrf51 specific files when building for PC host */ |
FranKP2138 | 0:2b9b5764efb5 | 43 | #elif defined(__APPLE__) |
FranKP2138 | 0:2b9b5764efb5 | 44 | /* Do not include nrf51 specific files when building for PC host */ |
FranKP2138 | 0:2b9b5764efb5 | 45 | #else |
FranKP2138 | 0:2b9b5764efb5 | 46 | |
FranKP2138 | 0:2b9b5764efb5 | 47 | /* Family selection for family includes. */ |
FranKP2138 | 0:2b9b5764efb5 | 48 | #if defined (NRF51) |
FranKP2138 | 0:2b9b5764efb5 | 49 | #include "nrf51.h" |
FranKP2138 | 0:2b9b5764efb5 | 50 | #include "nrf51_bitfields.h" |
FranKP2138 | 0:2b9b5764efb5 | 51 | #include "nrf51_deprecated.h" |
FranKP2138 | 0:2b9b5764efb5 | 52 | /* |
FranKP2138 | 0:2b9b5764efb5 | 53 | #elif defined (NRF52) |
FranKP2138 | 0:2b9b5764efb5 | 54 | #include "nrf52.h" |
FranKP2138 | 0:2b9b5764efb5 | 55 | #include "nrf52_bitfields.h" |
FranKP2138 | 0:2b9b5764efb5 | 56 | #include "nrf51_to_nrf52.h" |
FranKP2138 | 0:2b9b5764efb5 | 57 | #include "nrf52_name_change.h" |
FranKP2138 | 0:2b9b5764efb5 | 58 | */ |
FranKP2138 | 0:2b9b5764efb5 | 59 | #else |
FranKP2138 | 0:2b9b5764efb5 | 60 | #error "Device family must be defined. See nrf.h." |
FranKP2138 | 0:2b9b5764efb5 | 61 | #endif /* NRF51, NRF52 */ |
FranKP2138 | 0:2b9b5764efb5 | 62 | |
FranKP2138 | 0:2b9b5764efb5 | 63 | #include "compiler_abstraction.h" |
FranKP2138 | 0:2b9b5764efb5 | 64 | |
FranKP2138 | 0:2b9b5764efb5 | 65 | #endif /* _WIN32 || __unix || __APPLE__ */ |
FranKP2138 | 0:2b9b5764efb5 | 66 | |
FranKP2138 | 0:2b9b5764efb5 | 67 | #endif /* NRF_H */ |
FranKP2138 | 0:2b9b5764efb5 | 68 | |
FranKP2138 | 0:2b9b5764efb5 | 69 |