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