/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Wed Jul 02 13:22:23 2014 +0100
Revision:
86:04dd9b1680ae
Release 86 of the mbed library

Main changes:


- bug fixes in various backends
- mbed "error" replaced by assert logic (mbed_assert)
- new ST Nucleo targets

Who changed what in which revision?

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