Cefn Hoile / nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Committer:
rgrover1
Date:
Wed Dec 02 10:32:52 2015 +0000
Revision:
498:d72c7e78ee13
Parent:
496:08bd8a46630b
Synchronized with git rev a583502f
Author: Liyou Zhou
Update files to nrf51 sdk 8.1.0

Who changed what in which revision?

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