mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Sep 12 16:41:52 2014 +0100
Revision:
89:552587b429a1
Release 89 of the mbed library

Main changes:

- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends

Who changed what in which revision?

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