my fork of nrf51-sdk

Dependents:   nRF51822

Fork of nrf51-sdk by Nordic Semiconductor

Committer:
vcoubard
Date:
Thu Apr 07 17:37:28 2016 +0100
Revision:
10:233fefd8162b
Parent:
1:ebc0e0ef0a11
Child:
14:3e50fd9c44ff
Synchronized with git rev daa4809a
Author: Liyou Zhou
Add license headers

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vcoubard 10:233fefd8162b 1 /*
vcoubard 10:233fefd8162b 2 * Copyright (c) Nordic Semiconductor ASA
vcoubard 10:233fefd8162b 3 * All rights reserved.
vcoubard 10:233fefd8162b 4 *
vcoubard 10:233fefd8162b 5 * Redistribution and use in source and binary forms, with or without modification,
vcoubard 10:233fefd8162b 6 * are permitted provided that the following conditions are met:
vcoubard 10:233fefd8162b 7 *
vcoubard 10:233fefd8162b 8 * 1. Redistributions of source code must retain the above copyright notice, this
vcoubard 10:233fefd8162b 9 * list of conditions and the following disclaimer.
vcoubard 10:233fefd8162b 10 *
vcoubard 10:233fefd8162b 11 * 2. Redistributions in binary form must reproduce the above copyright notice, this
vcoubard 10:233fefd8162b 12 * list of conditions and the following disclaimer in the documentation and/or
vcoubard 10:233fefd8162b 13 * other materials provided with the distribution.
vcoubard 10:233fefd8162b 14 *
vcoubard 10:233fefd8162b 15 * 3. Neither the name of Nordic Semiconductor ASA nor the names of other
vcoubard 10:233fefd8162b 16 * contributors to this software may be used to endorse or promote products
vcoubard 10:233fefd8162b 17 * derived from this software without specific prior written permission.
vcoubard 10:233fefd8162b 18 *
vcoubard 10:233fefd8162b 19 *
vcoubard 10:233fefd8162b 20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
vcoubard 10:233fefd8162b 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
vcoubard 10:233fefd8162b 22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
vcoubard 10:233fefd8162b 23 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
vcoubard 10:233fefd8162b 24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
vcoubard 10:233fefd8162b 25 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
vcoubard 10:233fefd8162b 26 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
vcoubard 10:233fefd8162b 27 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
vcoubard 10:233fefd8162b 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
vcoubard 10:233fefd8162b 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
vcoubard 10:233fefd8162b 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 1:ebc0e0ef0a11 48 #include "nrf51_deprecated.h"
vcoubard 1:ebc0e0ef0a11 49 #else
vcoubard 1:ebc0e0ef0a11 50 #error "Device family must be defined. See nrf.h."
vcoubard 1:ebc0e0ef0a11 51 #endif /* NRF51 */
vcoubard 1:ebc0e0ef0a11 52
vcoubard 1:ebc0e0ef0a11 53 #include "compiler_abstraction.h"
vcoubard 1:ebc0e0ef0a11 54
vcoubard 1:ebc0e0ef0a11 55 #endif /* _WIN32 || __unix || __APPLE__ */
vcoubard 1:ebc0e0ef0a11 56
vcoubard 1:ebc0e0ef0a11 57 #endif /* NRF_H */
vcoubard 1:ebc0e0ef0a11 58