Skip to content

Commit 806b482

Browse files
committed
i2c编译通过
1 parent 867d32c commit 806b482

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

port/genhdr/qstrdefs.generated.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,3 +774,4 @@ QDEF(MP_QSTR_uarray, (const byte*)"\x89\x06" "uarray")
774774
QDEF(MP_QSTR_mpy, (const byte*)"\xc1\x03" "mpy")
775775
QDEF(MP_QSTR___matmul__, (const byte*)"\x49\x0a" "__matmul__")
776776
QDEF(MP_QSTR___bases__, (const byte*)"\x03\x09" "__bases__")
777+
QDEF(MP_QSTR_writevto, (const byte*)"\x75\x08" "writevto")

port/modules/machine/machine_hw_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ STATIC const mp_machine_i2c_p_t machine_hard_i2c_p = {
9999
.stop = NULL,
100100
.read = NULL,
101101
.write = NULL,
102-
.readfrom = machine_hard_i2c_readfrom,
103-
.writeto = machine_hard_i2c_writeto,
102+
.transfer = NULL,
103+
.transfer_single = NULL,
104104
};
105105

106106
STATIC const mp_obj_type_t machine_hard_i2c_type = {

0 commit comments

Comments
 (0)