diff options
| author | Damien George <damien@micropython.org> | 2022-06-17 14:58:42 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2022-06-17 14:58:42 +1000 |
| commit | 49c23ac08f21ab1b412083d64b4d0a704bf8973c (patch) | |
| tree | bc056ac5395e0865613cd5c6e7d94cd02993f240 | |
| parent | dea1ba33090589a195d9a6e83ff40bb7ec70d752 (diff) | |
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>
| -rw-r--r-- | ports/renesas-ra/machine_i2c.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ports/renesas-ra/machine_i2c.c b/ports/renesas-ra/machine_i2c.c index 5f385f363..bc1cea0cd 100644 --- a/ports/renesas-ra/machine_i2c.c +++ b/ports/renesas-ra/machine_i2c.c @@ -150,22 +150,10 @@ STATIC int machine_i2c_transfer_single(mp_obj_base_t *self_in, uint16_t addr, si return ret; } -STATIC int machine_i2c_start(mp_obj_base_t *self) { - mp_raise_NotImplementedError(MP_ERROR_TEXT("start is not supported.")); - return 0; -} - -STATIC int machine_i2c_stop(mp_obj_base_t *self) { - mp_raise_NotImplementedError(MP_ERROR_TEXT("start is not supported.")); - return 0; -} - STATIC const mp_machine_i2c_p_t machine_i2c_p = { .init = machine_i2c_init, .transfer = mp_machine_i2c_transfer_adaptor, .transfer_single = machine_i2c_transfer_single, - .start = machine_i2c_start, - .stop = machine_i2c_stop, }; const mp_obj_type_t machine_i2c_type = { |
