mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.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 - 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 | } |