mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c
- Revision:
- 13:0645d8841f51
diff -r 5fa2273de5db -r 0645d8841f51 targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c Mon Aug 05 14:12:34 2013 +0300 @@ -0,0 +1,16 @@ +/* mbed Microcontroller Library - cmsis_nvic for LPC2368 + * Copyright (c) 2009 ARM Limited. All rights reserved. + * + * CMSIS-style functionality to support dynamic vectors + */ + +#include "cmsis_nvic.h" + +void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { + LPC_VIC->VectAddr[(int)IRQn] = vector; +} + +uint32_t NVIC_GetVector(IRQn_Type IRQn) { + return LPC_VIC->VectAddr[(int)IRQn]; +} +