Mouse code for the MacroRat
mbed-dev/targets/TARGET_NXP/TARGET_LPC2460/device/vector_realmonitor.c@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /* mbed Microcontroller Library - RealMonitor |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (c) 2006-2015 ARM Limited. All rights reserved. |
sahilmgandhi | 18:6a4db94011d3 | 3 | */ |
sahilmgandhi | 18:6a4db94011d3 | 4 | #include "vector_defns.h" |
sahilmgandhi | 18:6a4db94011d3 | 5 | |
sahilmgandhi | 18:6a4db94011d3 | 6 | extern void __mbed_dcc_irq(void); |
sahilmgandhi | 18:6a4db94011d3 | 7 | |
sahilmgandhi | 18:6a4db94011d3 | 8 | /* Function: __mbed_init_realmonitor |
sahilmgandhi | 18:6a4db94011d3 | 9 | * Setup the RealMonitor DCC Interrupt Handlers |
sahilmgandhi | 18:6a4db94011d3 | 10 | */ |
sahilmgandhi | 18:6a4db94011d3 | 11 | void __mbed_init_realmonitor(void) __attribute__((weak)); |
sahilmgandhi | 18:6a4db94011d3 | 12 | void __mbed_init_realmonitor() { |
sahilmgandhi | 18:6a4db94011d3 | 13 | // Disable all interrupts |
sahilmgandhi | 18:6a4db94011d3 | 14 | VICIntEnClr = 0xffffffff; |
sahilmgandhi | 18:6a4db94011d3 | 15 | |
sahilmgandhi | 18:6a4db94011d3 | 16 | // Set DCC interrupt vector addresses |
sahilmgandhi | 18:6a4db94011d3 | 17 | VICVectAddr2 = (unsigned)&__mbed_dcc_irq; |
sahilmgandhi | 18:6a4db94011d3 | 18 | VICVectAddr3 = (unsigned)&__mbed_dcc_irq; |
sahilmgandhi | 18:6a4db94011d3 | 19 | |
sahilmgandhi | 18:6a4db94011d3 | 20 | // Initialise RealMonitor |
sahilmgandhi | 18:6a4db94011d3 | 21 | ((void (*)(void))rm_init_entry)(); |
sahilmgandhi | 18:6a4db94011d3 | 22 | } |