mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Mon Apr 07 18:28:36 2014 +0100
Revision:
82:6473597d706e
Child:
90:cb3d968589d8
Release 82 of the mbed library

Main changes:

- support for K64F
- Revisited Nordic code structure
- Test infrastructure improvements
- various bug fixes

Who changed what in which revision?

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