Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c@13:0645d8841f51, 2013-08-05 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 05 14:12:34 2013 +0300
- Revision:
- 13:0645d8841f51
Update mbed sources to revision 64
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | /* mbed Microcontroller Library - cmsis_nvic for LPC2368 |
bogdanm | 13:0645d8841f51 | 2 | * Copyright (c) 2009 ARM Limited. All rights reserved. |
bogdanm | 13:0645d8841f51 | 3 | * |
bogdanm | 13:0645d8841f51 | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 13:0645d8841f51 | 5 | */ |
bogdanm | 13:0645d8841f51 | 6 | |
bogdanm | 13:0645d8841f51 | 7 | #include "cmsis_nvic.h" |
bogdanm | 13:0645d8841f51 | 8 | |
bogdanm | 13:0645d8841f51 | 9 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { |
bogdanm | 13:0645d8841f51 | 10 | LPC_VIC->VectAddr[(int)IRQn] = vector; |
bogdanm | 13:0645d8841f51 | 11 | } |
bogdanm | 13:0645d8841f51 | 12 | |
bogdanm | 13:0645d8841f51 | 13 | uint32_t NVIC_GetVector(IRQn_Type IRQn) { |
bogdanm | 13:0645d8841f51 | 14 | return LPC_VIC->VectAddr[(int)IRQn]; |
bogdanm | 13:0645d8841f51 | 15 | } |
bogdanm | 13:0645d8841f51 | 16 |