my fork of nrf51-sdk

Dependents:   nRF51822

Fork of nrf51-sdk by Nordic Semiconductor

Committer:
vcoubard
Date:
Thu Apr 07 17:37:40 2016 +0100
Revision:
19:47192cb9def7
Parent:
15:fbe86af291bb
Child:
20:a90c48eb1d30
Synchronized with git rev 9251259f
Author: Liyou Zhou
Copy over coresponding files from nordic-sdk 9.0.0

Who changed what in which revision?

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