Fork of the official mbed C/C SDK provides the software platform and libraries to build your applications for RenBED.

Dependents:   1-RenBuggyTimed RenBED_RGB RenBED_RGB_PWM RenBED_RGB

Fork of mbed by mbed official

Committer:
Kojto
Date:
Wed Sep 16 15:32:31 2015 +0100
Revision:
107:4f6c30876dfa
Release 107  of the mbed library

Changes:
- new platforms - DISCO_F746NG, DISCO_L476VG, NUCLEO_L476RG
- KL43Z - bugfix RTC init function
- K20 - SPI mode fix

Who changed what in which revision?

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