Cefn Hoile / nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Committer:
rgrover1
Date:
Wed Dec 02 12:35:26 2015 +0000
Revision:
512:521c3578f13d
Parent:
504:2179e57ad950
Child:
551:ab7a8de3ff10
Synchronized with git rev 6825c511
Author: Rohit Grover
Release 2.1.0
=============

Upgrading to files from v8.1 of the Nordic SDK.

Who changed what in which revision?

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