mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_STM32F4XX/cmsis_nvic.h@20:4263a77256ae, 2013-09-10 (annotated)
- Committer:
- bogdanm
- Date:
- Tue Sep 10 15:14:19 2013 +0300
- Revision:
- 20:4263a77256ae
Sync with git revision 171dda705c947bf910926a0b73d6a4797802554d
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 20:4263a77256ae | 1 | /* mbed Microcontroller Library - cmsis_nvic |
bogdanm | 20:4263a77256ae | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
bogdanm | 20:4263a77256ae | 3 | * |
bogdanm | 20:4263a77256ae | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 20:4263a77256ae | 5 | */ |
bogdanm | 20:4263a77256ae | 6 | |
bogdanm | 20:4263a77256ae | 7 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 20:4263a77256ae | 8 | #define MBED_CMSIS_NVIC_H |
bogdanm | 20:4263a77256ae | 9 | |
bogdanm | 20:4263a77256ae | 10 | #define NVIC_NUM_VECTORS (16 + 81) // CORE + MCU Peripherals |
bogdanm | 20:4263a77256ae | 11 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 20:4263a77256ae | 12 | |
bogdanm | 20:4263a77256ae | 13 | #include "cmsis.h" |
bogdanm | 20:4263a77256ae | 14 | |
bogdanm | 20:4263a77256ae | 15 | #ifdef __cplusplus |
bogdanm | 20:4263a77256ae | 16 | extern "C" { |
bogdanm | 20:4263a77256ae | 17 | #endif |
bogdanm | 20:4263a77256ae | 18 | |
bogdanm | 20:4263a77256ae | 19 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 20:4263a77256ae | 20 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 20:4263a77256ae | 21 | |
bogdanm | 20:4263a77256ae | 22 | #ifdef __cplusplus |
bogdanm | 20:4263a77256ae | 23 | } |
bogdanm | 20:4263a77256ae | 24 | #endif |
bogdanm | 20:4263a77256ae | 25 | |
bogdanm | 20:4263a77256ae | 26 | #endif |