R1 code for micro:bit based train controller code, requires second micro:bit running rx code to operate - see https://meanderingpi.wordpress.com/ for more information

Fork of mbed-dev-bin by Lancaster University

Committer:
jamesadevine
Date:
Thu Apr 07 18:33:58 2016 +0100
Revision:
0:e1a608bb55e8
Added binary version of mbed

Who changed what in which revision?

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