mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 13:0645d8841f51
test with CLOCK_SETUP = 0
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 |