fix LPC812 PWM

Dependents:   IR_LED_Send

Fork of mbed-dev by mbed official

Committer:
bogdanm
Date:
Thu Oct 01 15:25:22 2015 +0300
Revision:
0:9b334a45a8ff
Initial commit on mbed-dev

Replaces mbed-src (now inactive)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 0:9b334a45a8ff 1 /* mbed Microcontroller Library - RealMonitor
bogdanm 0:9b334a45a8ff 2 * Copyright (c) 2006-2009 ARM Limited. All rights reserved.
bogdanm 0:9b334a45a8ff 3 */
bogdanm 0:9b334a45a8ff 4 #include "vector_defns.h"
bogdanm 0:9b334a45a8ff 5
bogdanm 0:9b334a45a8ff 6 extern void __mbed_dcc_irq(void);
bogdanm 0:9b334a45a8ff 7
bogdanm 0:9b334a45a8ff 8 /* Function: __mbed_init_realmonitor
bogdanm 0:9b334a45a8ff 9 * Setup the RealMonitor DCC Interrupt Handlers
bogdanm 0:9b334a45a8ff 10 */
bogdanm 0:9b334a45a8ff 11 void __mbed_init_realmonitor(void) __attribute__((weak));
bogdanm 0:9b334a45a8ff 12 void __mbed_init_realmonitor() {
bogdanm 0:9b334a45a8ff 13 // Disable all interrupts
bogdanm 0:9b334a45a8ff 14 VICIntEnClr = 0xffffffff;
bogdanm 0:9b334a45a8ff 15
bogdanm 0:9b334a45a8ff 16 // Set DCC interrupt vector addresses
bogdanm 0:9b334a45a8ff 17 VICVectAddr2 = (unsigned)&__mbed_dcc_irq;
bogdanm 0:9b334a45a8ff 18 VICVectAddr3 = (unsigned)&__mbed_dcc_irq;
bogdanm 0:9b334a45a8ff 19
bogdanm 0:9b334a45a8ff 20 // Initialise RealMonitor
bogdanm 0:9b334a45a8ff 21 ((void (*)(void))rm_init_entry)();
bogdanm 0:9b334a45a8ff 22 }