The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Thu Nov 08 11:45:42 2018 +0000
Revision:
171:3a7713b1edbc
mbed library. Release version 164

Who changed what in which revision?

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