Describes predefine macros for mbed online compiler (armcc)

Committer:
MACRUM
Date:
Thu Mar 16 21:58:09 2017 +0900
Revision:
6:40e873bbc5f7
Add licence header info

Who changed what in which revision?

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