my fork of nrf51-sdk

Dependents:   nRF51822

Fork of nrf51-sdk by Nordic Semiconductor

Committer:
sergoserg
Date:
Sun Aug 07 05:51:59 2016 +0000
Revision:
46:8a1d38437d75
Parent:
29:286940b7ee5a
Fixed compile error

Who changed what in which revision?

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