added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
Diff: targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c
- Revision:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c Thu Oct 01 15:25:22 2015 +0300 @@ -0,0 +1,22 @@ +/* mbed Microcontroller Library - RealMonitor + * Copyright (c) 2006-2015 ARM Limited. All rights reserved. + */ +#include "vector_defns.h" + +extern void __mbed_dcc_irq(void); + +/* Function: __mbed_init_realmonitor + * Setup the RealMonitor DCC Interrupt Handlers + */ +void __mbed_init_realmonitor(void) __attribute__((weak)); +void __mbed_init_realmonitor() { + // Disable all interrupts + VICIntEnClr = 0xffffffff; + + // Set DCC interrupt vector addresses + VICVectAddr2 = (unsigned)&__mbed_dcc_irq; + VICVectAddr3 = (unsigned)&__mbed_dcc_irq; + + // Initialise RealMonitor + ((void (*)(void))rm_init_entry)(); +}