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