cc y / mbed

Fork of mbed by mbed official

Committer:
Kojto
Date:
Fri Aug 12 13:04:35 2016 +0200
Revision:
123:b0220dba8be7
Parent:
122:f9eeca106725
Release 123 of the mbed library

Changes:
- new targets: nucleo_f207zg, beetle, nrf51_dk, hexiwear,
nuvoton nuc472, vk rz a1h
- ST - fix timer interrupt handler, sleep api fix
- NXP - lpc15xx us ticker fix
- Nordic - analogin fixes, LF clock init addition, enable i2c async

Who changed what in which revision?

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