mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Handle out-of-bounds for can_api can_filter

Current implementation of `can_filter` function (LPC11Cxx and LPC15xx) does not report an issue if the `handle` argument is out of bounds. For example, if `handle` is greater than or equal to 32, then the function will do nothing and return back the value of the 'handle' provided. `can_filter` should return 0 if the filter change failed (as is stated in the CAN.h documentation). This pull request ensures that 0 is returned if `handle` is out of bounds.

mbed source development branch