rau cha / mbed-src-I2CWaitFix

Fork of mbed-src by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers cmsis_nvic.c Source File

cmsis_nvic.c

00001 /* mbed Microcontroller Library - cmsis_nvic for LPC2368
00002  * Copyright (c) 2009 ARM Limited. All rights reserved.
00003  *
00004  * CMSIS-style functionality to support dynamic vectors
00005  */ 
00006 
00007 #include "cmsis_nvic.h"
00008 
00009 void NVIC_SetVector(IRQn_Type  IRQn, uint32_t vector) {
00010     LPC_VIC->VectAddr[(int)IRQn] = vector;
00011 }
00012 
00013 uint32_t NVIC_GetVector(IRQn_Type  IRQn) {
00014     return LPC_VIC->VectAddr[(int)IRQn];
00015 }
00016