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