mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.h@15:4892fe388435, 2013-08-07 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Aug 07 16:43:59 2013 +0300
- Revision:
- 15:4892fe388435
Added LPC4088 target and interrupt chaining code
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 15:4892fe388435 | 1 | /* mbed Microcontroller Library - cmsis_nvic |
bogdanm | 15:4892fe388435 | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
bogdanm | 15:4892fe388435 | 3 | * |
bogdanm | 15:4892fe388435 | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 15:4892fe388435 | 5 | */ |
bogdanm | 15:4892fe388435 | 6 | |
bogdanm | 15:4892fe388435 | 7 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 15:4892fe388435 | 8 | #define MBED_CMSIS_NVIC_H |
bogdanm | 15:4892fe388435 | 9 | |
bogdanm | 15:4892fe388435 | 10 | #define NVIC_NUM_VECTORS (16 + 41) // CORE + MCU Peripherals |
bogdanm | 15:4892fe388435 | 11 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 15:4892fe388435 | 12 | |
bogdanm | 15:4892fe388435 | 13 | #include "cmsis.h" |
bogdanm | 15:4892fe388435 | 14 | |
bogdanm | 15:4892fe388435 | 15 | #ifdef __cplusplus |
bogdanm | 15:4892fe388435 | 16 | extern "C" { |
bogdanm | 15:4892fe388435 | 17 | #endif |
bogdanm | 15:4892fe388435 | 18 | |
bogdanm | 15:4892fe388435 | 19 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 15:4892fe388435 | 20 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 15:4892fe388435 | 21 | |
bogdanm | 15:4892fe388435 | 22 | #ifdef __cplusplus |
bogdanm | 15:4892fe388435 | 23 | } |
bogdanm | 15:4892fe388435 | 24 | #endif |
bogdanm | 15:4892fe388435 | 25 | |
bogdanm | 15:4892fe388435 | 26 | #endif |