Henrik Sölver
f80f1a7077
stmhal: Add support for CAN rx callbacks.
10 years ago
Damien George
05005f679e
py: Remove mp_obj_str_builder and use vstr instead.
With this patch str/bytes construction is streamlined. Always use a
vstr to build a str/bytes object. If the size is known beforehand then
use vstr_init_len to allocate only required memory. Otherwise use
vstr_init and the vstr will grow as needed. Then use
mp_obj_new_str_from_vstr to create a str/bytes object using the vstr
memory.
Saves code ROM: 68 bytes on stmhal, 108 bytes on bare-arm, and 336 bytes
on unix x64.
10 years ago
Damien George
2cf6dfa280
stmhal: Prefix includes with py/; remove need for -I../py.
10 years ago
Henrik Sölver
acb92c186c
Adding CAN filter management
10 years ago
Paul Sokolovsky
f4a6a577ab
stream: Convert .ioctl() to take fixed number of args.
This is more efficient, as allows to use register calling convention.
If needed, a structure pointer can be passed as argument to pass more
data.
10 years ago
Damien George
d1b42d7b51
stmhal: Improve CAN init so that it can take sjw, bs1, bs2 args.
Also update docs to explain how CAN baudrate is determined.
10 years ago
Damien George
1a8573ed0e
stmhal: Update some inlined docs for network and CAN.
10 years ago
Damien George
efc49c5591
stmhal: Improve CAN print function.
10 years ago
Henrik Sölver
504636815e
stmhal: Added support for extended CAN frames.
10 years ago
Damien George
185cb0d943
stmhal: Use OSError with POSIX error code for HAL errors.
Addresses issue #921 .
10 years ago
Damien George
6dba992182
stmhal: Add config option to disable/enable CAN driver.
10 years ago
Damien George
3550de4ebe
stmhal: Add basic CAN bus support.
10 years ago