my fork
Fork of mbed by
TARGET_LPC4337/cmsis_nvic.h@89:552587b429a1, 2014-09-12 (annotated)
- Committer:
- bogdanm
- Date:
- Fri Sep 12 16:41:52 2014 +0100
- Revision:
- 89:552587b429a1
- Child:
- 90:cb3d968589d8
Release 89 of the mbed library
Main changes:
- low power optimizations for Nordic targets
- code structure changes for Freescale K64F targets
- bug fixes in various backends
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 89:552587b429a1 | 1 | /* mbed Microcontroller Library - cmsis_nvic |
bogdanm | 89:552587b429a1 | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
bogdanm | 89:552587b429a1 | 3 | * |
bogdanm | 89:552587b429a1 | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 89:552587b429a1 | 5 | */ |
bogdanm | 89:552587b429a1 | 6 | |
bogdanm | 89:552587b429a1 | 7 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 89:552587b429a1 | 8 | #define MBED_CMSIS_NVIC_H |
bogdanm | 89:552587b429a1 | 9 | |
bogdanm | 89:552587b429a1 | 10 | #define NVIC_NUM_VECTORS (16 + 53) // CORE + MCU Peripherals |
bogdanm | 89:552587b429a1 | 11 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 89:552587b429a1 | 12 | |
bogdanm | 89:552587b429a1 | 13 | #include "cmsis.h" |
bogdanm | 89:552587b429a1 | 14 | |
bogdanm | 89:552587b429a1 | 15 | #ifdef __cplusplus |
bogdanm | 89:552587b429a1 | 16 | extern "C" { |
bogdanm | 89:552587b429a1 | 17 | #endif |
bogdanm | 89:552587b429a1 | 18 | |
bogdanm | 89:552587b429a1 | 19 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 89:552587b429a1 | 20 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 89:552587b429a1 | 21 | |
bogdanm | 89:552587b429a1 | 22 | #ifdef __cplusplus |
bogdanm | 89:552587b429a1 | 23 | } |
bogdanm | 89:552587b429a1 | 24 | #endif |
bogdanm | 89:552587b429a1 | 25 | |
bogdanm | 89:552587b429a1 | 26 | #endif |