mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.h@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 270:e2babe29baf8
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 85:e1a8e879a6a9 | 1 | /* mbed Microcontroller Library - cmsis_nvic |
mbed_official | 85:e1a8e879a6a9 | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
mbed_official | 85:e1a8e879a6a9 | 3 | * |
mbed_official | 85:e1a8e879a6a9 | 4 | * CMSIS-style functionality to support dynamic vectors |
mbed_official | 85:e1a8e879a6a9 | 5 | */ |
mbed_official | 85:e1a8e879a6a9 | 6 | |
mbed_official | 85:e1a8e879a6a9 | 7 | #ifndef MBED_CMSIS_NVIC_H |
mbed_official | 85:e1a8e879a6a9 | 8 | #define MBED_CMSIS_NVIC_H |
mbed_official | 85:e1a8e879a6a9 | 9 | |
mbed_official | 85:e1a8e879a6a9 | 10 | #define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals |
mbed_official | 85:e1a8e879a6a9 | 11 | #define NVIC_USER_IRQ_OFFSET 16 |
mbed_official | 85:e1a8e879a6a9 | 12 | |
mbed_official | 85:e1a8e879a6a9 | 13 | #include "nrf51822.h" |
mbed_official | 85:e1a8e879a6a9 | 14 | #include "cmsis.h" |
mbed_official | 85:e1a8e879a6a9 | 15 | |
mbed_official | 85:e1a8e879a6a9 | 16 | |
mbed_official | 85:e1a8e879a6a9 | 17 | #ifdef __cplusplus |
mbed_official | 85:e1a8e879a6a9 | 18 | extern "C" { |
mbed_official | 85:e1a8e879a6a9 | 19 | #endif |
mbed_official | 85:e1a8e879a6a9 | 20 | |
mbed_official | 85:e1a8e879a6a9 | 21 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
mbed_official | 85:e1a8e879a6a9 | 22 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
mbed_official | 85:e1a8e879a6a9 | 23 | |
mbed_official | 85:e1a8e879a6a9 | 24 | #ifdef __cplusplus |
mbed_official | 85:e1a8e879a6a9 | 25 | } |
mbed_official | 85:e1a8e879a6a9 | 26 | #endif |
mbed_official | 85:e1a8e879a6a9 | 27 | |
mbed_official | 85:e1a8e879a6a9 | 28 | #endif |