mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.c@636:b0d178e9fa10, 2016-07-07 (annotated)
- Committer:
- lzbpli
- Date:
- Thu Jul 07 06:48:59 2016 +0000
- Revision:
- 636:b0d178e9fa10
- Parent:
- 13:0645d8841f51
l053
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | /* mbed Microcontroller Library - RealMonitor |
bogdanm | 13:0645d8841f51 | 2 | * Copyright (c) 2006-2009 ARM Limited. All rights reserved. |
bogdanm | 13:0645d8841f51 | 3 | */ |
bogdanm | 13:0645d8841f51 | 4 | #include "vector_defns.h" |
bogdanm | 13:0645d8841f51 | 5 | |
bogdanm | 13:0645d8841f51 | 6 | extern void __mbed_dcc_irq(void); |
bogdanm | 13:0645d8841f51 | 7 | |
bogdanm | 13:0645d8841f51 | 8 | /* Function: __mbed_init_realmonitor |
bogdanm | 13:0645d8841f51 | 9 | * Setup the RealMonitor DCC Interrupt Handlers |
bogdanm | 13:0645d8841f51 | 10 | */ |
bogdanm | 13:0645d8841f51 | 11 | void __mbed_init_realmonitor(void) __attribute__((weak)); |
bogdanm | 13:0645d8841f51 | 12 | void __mbed_init_realmonitor() { |
bogdanm | 13:0645d8841f51 | 13 | // Disable all interrupts |
bogdanm | 13:0645d8841f51 | 14 | VICIntEnClr = 0xffffffff; |
bogdanm | 13:0645d8841f51 | 15 | |
bogdanm | 13:0645d8841f51 | 16 | // Set DCC interrupt vector addresses |
bogdanm | 13:0645d8841f51 | 17 | VICVectAddr2 = (unsigned)&__mbed_dcc_irq; |
bogdanm | 13:0645d8841f51 | 18 | VICVectAddr3 = (unsigned)&__mbed_dcc_irq; |
bogdanm | 13:0645d8841f51 | 19 | |
bogdanm | 13:0645d8841f51 | 20 | // Initialise RealMonitor |
bogdanm | 13:0645d8841f51 | 21 | ((void (*)(void))rm_init_entry)(); |
bogdanm | 13:0645d8841f51 | 22 | } |