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.
Dependents: WizFi250_AP_HelloWorld
Fork of mbed-src by
vendor/NXP/LPC2368/cmsis/cmsis_nvic.c@10:3bc89ef62ce7, 2013-06-14 (annotated)
- Committer:
- emilmont
- Date:
- Fri Jun 14 17:49:17 2013 +0100
- Revision:
- 10:3bc89ef62ce7
Unify mbed library sources
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| emilmont | 10:3bc89ef62ce7 | 1 | /* mbed Microcontroller Library - cmsis_nvic for LPC2368 |
| emilmont | 10:3bc89ef62ce7 | 2 | * Copyright (c) 2009 ARM Limited. All rights reserved. |
| emilmont | 10:3bc89ef62ce7 | 3 | * |
| emilmont | 10:3bc89ef62ce7 | 4 | * CMSIS-style functionality to support dynamic vectors |
| emilmont | 10:3bc89ef62ce7 | 5 | */ |
| emilmont | 10:3bc89ef62ce7 | 6 | |
| emilmont | 10:3bc89ef62ce7 | 7 | #include "cmsis_nvic.h" |
| emilmont | 10:3bc89ef62ce7 | 8 | |
| emilmont | 10:3bc89ef62ce7 | 9 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { |
| emilmont | 10:3bc89ef62ce7 | 10 | LPC_VIC->VectAddr[(int)IRQn] = vector; |
| emilmont | 10:3bc89ef62ce7 | 11 | } |
| emilmont | 10:3bc89ef62ce7 | 12 | |
| emilmont | 10:3bc89ef62ce7 | 13 | uint32_t NVIC_GetVector(IRQn_Type IRQn) { |
| emilmont | 10:3bc89ef62ce7 | 14 | return LPC_VIC->VectAddr[(int)IRQn]; |
| emilmont | 10:3bc89ef62ce7 | 15 | } |
| emilmont | 10:3bc89ef62ce7 | 16 |
