change some io settings for TWR-K22F-120M

Dependents:   twr_helloworld

Committer:
Jasper_lee
Date:
Tue Dec 23 03:35:08 2014 +0000
Revision:
0:b16d94660a33
change some io setting used in TWR-K22F120M

Who changed what in which revision?

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