8000 renesas-ra/machine_i2c: Remove unnecessary start/stop dummy functions. · micropython/micropython@49c23ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 49c23ac

Browse files
committed
renesas-ra/machine_i2c: Remove unnecessary start/stop dummy functions.
The code in extmod/machine_i2c.c will check for NULL slots and raise an appropriate exception. Signed-off-by: Damien George <damien@micropython.org>
1 parent dea1ba3 commit 49c23ac

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

ports/renesas-ra/machine_i2c.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,22 +150,10 @@ STATIC int machine_i2c_transfer_single(mp_obj_base_t *self_in, uint16_t addr, si
150150
return ret;
151151
}
152152

153-
STATIC int machine_i2c_start(mp_obj_base_t *self) {
154-
mp_raise_NotImplementedError(MP_ERROR_TEXT("start is not supported."));
155-
return 0;
156-
}
157-
158-
STATIC int machine_i2c_stop(mp_obj_base_t *self) {
159-
mp_raise_NotImplementedError(MP_ERROR_TEXT("start is not supported."));
160-
return 0;
161-
}
162-
163153
STATIC const mp_machine_i2c_p_t machine_i2c_p = {
164154
.init = machine_i2c_init,
165155
.transfer = mp_machine_i2c_transfer_adaptor,
166156
.transfer_single = machine_i2c_transfer_single,
167-
.start = machine_i2c_start,
168-
.stop = machine_i2c_stop,
169157
};
170158

171159
const mp_obj_type_t machine_i2c_type = {

0 commit comments

Comments
 (0)
0