Document values of CAN bus Constants
Hi,
Since CAN.send() have no error code returned, I've to check CAN.state() and got 4. But what 4 stand for? Then I've to search code to figure out this error code.
So, it's very convenient if values of CAN bus Constants can be documented clearly.

can.send and can.recv crash
Test program:
from pyb import CAN
mode = CAN.NORMAL
can = CAN(1, mode)
can.init(mode, extframe=False, prescaler=5)
can.send('\x55', 0x10, timeout=2000)
will send can-telegrams repeatedly, blink the leds and USB REPL port disappears after a while.
can.recv(0)
Same symptoms, does not receive from can-bus, which may be because of inaccurate bus-speed.
CAN-bus speed setting (prescaler) unclear.
prescaler=5 will produce near 500k bus speed. Should be much higher, if I understand correctly.
Firmware version:
Micro Python v1.3.6-12-gb98c162 on 2014-11-09; PYBv1.0 with STM32F405RG