Henrik Sölver
f80f1a7077
stmhal: Add support for CAN rx callbacks.
2015-02-15 03:10:53 +00:00
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.
2015-01-21 23:18:02 +00:00
Damien George
2cf6dfa280
stmhal: Prefix includes with py/; remove need for -I../py.
2015-01-01 21:06:20 +00:00
Henrik Sölver
acb92c186c
Adding CAN filter management
2014-11-26 18:52:33 +00:00
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.
2014-11-17 00:16:14 +02:00
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.
2014-11-15 21:28:14 +00:00
Damien George
1a8573ed0e
stmhal: Update some inlined docs for network and CAN.
2014-10-31 01:12:54 +00:00
Damien George
efc49c5591
stmhal: Improve CAN print function.
2014-10-30 23:16:05 +00:00
Henrik Sölver
504636815e
stmhal: Added support for extended CAN frames.
2014-10-30 23:16:01 +00:00
Damien George
185cb0d943
stmhal: Use OSError with POSIX error code for HAL errors.
...
Addresses issue #921 .
2014-10-23 14:25:32 +01:00
Damien George
6dba992182
stmhal: Add config option to disable/enable CAN driver.
2014-10-05 18:05:26 +01:00
Damien George
3550de4ebe
stmhal: Add basic CAN bus support.
2014-10-02 17:32:02 +01:00