mbedmicro/mbed — pull request #63 by jorisa (2013-09-09 16:07:20+00:00)
Title: 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.