Support for MSP430 launchpad.
Fork of mbed by
TARGET_ARCH_PRO/cmsis_nvic.h@86:c662433839e3, 2014-06-21 (annotated)
- Committer:
- atamariya
- Date:
- Sat Jun 21 09:54:56 2014 +0000
- Revision:
- 86:c662433839e3
- Parent:
- 85:024bf7f99721
Support for MSP430
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 85:024bf7f99721 | 1 | /* mbed Microcontroller Library - cmsis_nvic |
bogdanm | 85:024bf7f99721 | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
bogdanm | 85:024bf7f99721 | 3 | * |
bogdanm | 85:024bf7f99721 | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 85:024bf7f99721 | 5 | */ |
bogdanm | 85:024bf7f99721 | 6 | |
bogdanm | 85:024bf7f99721 | 7 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 85:024bf7f99721 | 8 | #define MBED_CMSIS_NVIC_H |
bogdanm | 85:024bf7f99721 | 9 | |
bogdanm | 85:024bf7f99721 | 10 | #include "cmsis.h" |
bogdanm | 85:024bf7f99721 | 11 | |
bogdanm | 85:024bf7f99721 | 12 | #define NVIC_NUM_VECTORS (16 + 33) |
bogdanm | 85:024bf7f99721 | 13 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 85:024bf7f99721 | 14 | |
bogdanm | 85:024bf7f99721 | 15 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 16 | extern "C" { |
bogdanm | 85:024bf7f99721 | 17 | #endif |
bogdanm | 85:024bf7f99721 | 18 | |
bogdanm | 85:024bf7f99721 | 19 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 85:024bf7f99721 | 20 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 85:024bf7f99721 | 21 | |
bogdanm | 85:024bf7f99721 | 22 | #ifdef __cplusplus |
bogdanm | 85:024bf7f99721 | 23 | } |
bogdanm | 85:024bf7f99721 | 24 | #endif |
bogdanm | 85:024bf7f99721 | 25 | |
bogdanm | 85:024bf7f99721 | 26 | #endif |