Nordic stack and drivers for the mbed BLE API. Version to work around build bug.

Dependents:   microbit_rubber_ducky microbit_mouse_BLE microbit_mouse_BLE_daybreak_version microbit_presenter

Fork of nRF51822 by Nordic Semiconductor

Committer:
JonnyA
Date:
Wed Aug 31 18:59:36 2016 +0000
Revision:
616:b52326e38ebd
Parent:
607:e98331f1d6b5
Workaround for build system bug

Who changed what in which revision?

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