mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c

Committer:
bogdanm
Date:
2013-08-05
Revision:
13:0645d8841f51
Child:
358:9d7ef901f004

File content as of revision 13:0645d8841f51:

/* 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];
}