Test code for Grove Node BLE

Dependencies:   BLE_API nRF51822

Fork of BLE_LoopbackUART by Bluetooth Low Energy

Committer:
yihui
Date:
Thu Nov 27 09:30:36 2014 +0000
Revision:
10:22480ac31879
Parent:
9:05f0b5a3a70a
change to new revision hardware

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yihui 9:05f0b5a3a70a 1 /* mbed Microcontroller Library
yihui 9:05f0b5a3a70a 2 * CMSIS-style functionality to support dynamic vectors
yihui 9:05f0b5a3a70a 3 *******************************************************************************
yihui 9:05f0b5a3a70a 4 * Copyright (c) 2011 ARM Limited. All rights reserved.
yihui 9:05f0b5a3a70a 5 * All rights reserved.
yihui 9:05f0b5a3a70a 6 *
yihui 9:05f0b5a3a70a 7 * Redistribution and use in source and binary forms, with or without
yihui 9:05f0b5a3a70a 8 * modification, are permitted provided that the following conditions are met:
yihui 9:05f0b5a3a70a 9 *
yihui 9:05f0b5a3a70a 10 * 1. Redistributions of source code must retain the above copyright notice,
yihui 9:05f0b5a3a70a 11 * this list of conditions and the following disclaimer.
yihui 9:05f0b5a3a70a 12 * 2. Redistributions in binary form must reproduce the above copyright notice,
yihui 9:05f0b5a3a70a 13 * this list of conditions and the following disclaimer in the documentation
yihui 9:05f0b5a3a70a 14 * and/or other materials provided with the distribution.
yihui 9:05f0b5a3a70a 15 * 3. Neither the name of ARM Limited nor the names of its contributors
yihui 9:05f0b5a3a70a 16 * may be used to endorse or promote products derived from this software
yihui 9:05f0b5a3a70a 17 * without specific prior written permission.
yihui 9:05f0b5a3a70a 18 *
yihui 9:05f0b5a3a70a 19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
yihui 9:05f0b5a3a70a 20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
yihui 9:05f0b5a3a70a 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
yihui 9:05f0b5a3a70a 22 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
yihui 9:05f0b5a3a70a 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
yihui 9:05f0b5a3a70a 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
yihui 9:05f0b5a3a70a 25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
yihui 9:05f0b5a3a70a 26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
yihui 9:05f0b5a3a70a 27 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
yihui 9:05f0b5a3a70a 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
yihui 9:05f0b5a3a70a 29 *******************************************************************************
yihui 9:05f0b5a3a70a 30 */
yihui 9:05f0b5a3a70a 31
yihui 9:05f0b5a3a70a 32 #ifndef MBED_CMSIS_NVIC_H
yihui 9:05f0b5a3a70a 33 #define MBED_CMSIS_NVIC_H
yihui 9:05f0b5a3a70a 34
yihui 9:05f0b5a3a70a 35 #define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals
yihui 9:05f0b5a3a70a 36 #define NVIC_USER_IRQ_OFFSET 16
yihui 9:05f0b5a3a70a 37
yihui 9:05f0b5a3a70a 38 #include "nrf51822.h"
yihui 9:05f0b5a3a70a 39 #include "cmsis.h"
yihui 9:05f0b5a3a70a 40
yihui 9:05f0b5a3a70a 41
yihui 9:05f0b5a3a70a 42 #ifdef __cplusplus
yihui 9:05f0b5a3a70a 43 extern "C" {
yihui 9:05f0b5a3a70a 44 #endif
yihui 9:05f0b5a3a70a 45
yihui 9:05f0b5a3a70a 46 void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector);
yihui 9:05f0b5a3a70a 47 uint32_t NVIC_GetVector(IRQn_Type IRQn);
yihui 9:05f0b5a3a70a 48
yihui 9:05f0b5a3a70a 49 #ifdef __cplusplus
yihui 9:05f0b5a3a70a 50 }
yihui 9:05f0b5a3a70a 51 #endif
yihui 9:05f0b5a3a70a 52
yihui 9:05f0b5a3a70a 53 #endif