Cefn Hoile / nRF51822

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Committer:
rgrover1
Date:
Wed Dec 02 10:32:51 2015 +0000
Revision:
496:08bd8a46630b
Child:
498:d72c7e78ee13
Synchronized with git rev 60a7c0c0
Author: Rohit Grover
bring in the latest changes for BLE::init() where we allow <object, member> tuples for init callback.

Who changed what in which revision?

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