mbed(SerialHalfDuplex入り)

Fork of mbed by mbed official

Committer:
Kojto
Date:
Tue Oct 28 16:40:41 2014 +0000
Revision:
90:cb3d968589d8
Parent:
82:6473597d706e
Release 90 of the mbed library

Changes:

- Freescale KSDK update (v1.0)
- K22 - new target addition
- KL43Z - new target addition
- Nucleo F091RC - new target addition
- Nucleo L152RE - STM32Cube driver
- Nordic - Softdevice v7.1.0
- Nvic files - BSD License
- LPC824 - various HAL fixes
- Nucleo F411RE - CMSIS - IAR files

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
Kojto 90:cb3d968589d8 36 // CORE: 16 vectors = 64 bytes from 0x00 to 0x3F
Kojto 90:cb3d968589d8 37 // MCU Peripherals: 82 vectors = 328 bytes from 0x40 to 0x187
Kojto 90:cb3d968589d8 38 // Total: 98 vectors = 392 bytes (0x188) to be reserved in RAM
Kojto 90:cb3d968589d8 39 #define NVIC_NUM_VECTORS 98
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