Skip to content

Commit 0225704

Browse files
committed
extmod,docs: Add generic machine.CAN helpers & docs.
API is different to the original machine.CAN proposal, as numerous shortcomings were found during initial implementation. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
1 parent 6768325 commit 0225704

9 files changed

Lines changed: 1599 additions & 0 deletions

File tree

docs/library/machine.CAN.rst

Lines changed: 614 additions & 0 deletions
Large diffs are not rendered by default.

docs/library/machine.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ Classes
259259
machine.I2C.rst
260260
machine.I2CTarget.rst
261261
machine.I2S.rst
262+
machine.CAN.rst
262263
machine.RTC.rst
263264
machine.Timer.rst
264265
machine.Counter.rst

extmod/extmod.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set(MICROPY_SOURCE_EXTMOD
1010
${MICROPY_EXTMOD_DIR}/machine_adc.c
1111
${MICROPY_EXTMOD_DIR}/machine_adc_block.c
1212
${MICROPY_EXTMOD_DIR}/machine_bitstream.c
13+
${MICROPY_EXTMOD_DIR}/machine_can.c
1314
${MICROPY_EXTMOD_DIR}/machine_i2c.c
1415
${MICROPY_EXTMOD_DIR}/machine_i2c_target.c
1516
${MICROPY_EXTMOD_DIR}/machine_i2s.c

extmod/extmod.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ SRC_EXTMOD_C += \
55
extmod/machine_adc.c \
66
extmod/machine_adc_block.c \
77
extmod/machine_bitstream.c \
8+
extmod/machine_can.c \
89
extmod/machine_i2c.c \
910
extmod/machine_i2c_target.c \
1011
extmod/machine_i2s.c \

0 commit comments

Comments
 (0)