Fix hardfault when attaching callback to CAN2 when CAN1 is not defined

Fault is triggered by trying to read LPC_CAN1->IER when the peripheral is powered off. Fixed by checking the power control register before checking the IER register.
Merge pull request #63 from jorisa/master

Fix hardfault when attaching callback to CAN2 when CAN1 is not defined
Updated synchronization script

Added persistent line endings, commit message on the command line and
"quiet" option (run without user interaction).
[LPC812] Added RTOS support
Merge branch 'master' of https://github.com/ytsuboi/mbed
Change the synch.py script to make it usable as a module
Changed do_sync do return the list of changed repositories
More changes to the synchronization script

1. added the possibility to redirect stderr to stdout in utils.run_cmd
2. synch.py now calls the above run_cmd in redirect mode instead of the
old 'cmd'  that doesn't intercept standard streams. This makes it easier
for an external tool to intercept the output of 'hg'.
LPC1768 InterruptIn speedup

Use __CLZ to speed up GPIO interrupt processing.
Merge pull request #64 from ytsuboi/master

[LPC812] Added RTOS support
USBDevice memory leaks fixes

Fixes memory leaks in USBMSD, USBSerial (CircBuffer) and the KL25Z USB
HAL.
Original author: Erik Olieman, a few changes by Bogdan Marinescu.
Merge remote-tracking branch 'github/master'