my fork of nrf51-sdk

Dependents:   nRF51822

Fork of nrf51-sdk by Nordic Semiconductor

Committer:
vcoubard
Date:
Thu Apr 07 17:37:56 2016 +0100
Revision:
28:041dac1366b2
Parent:
27:0fe148f1bca3
Child:
29:286940b7ee5a
Synchronized with git rev 012b8118
Author: Liyou Zhou
Pull in files from sdk 10.0

Who changed what in which revision?

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