From 1a3bd67833f492ca59b4f3a116c7eff98bb204d1 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Sun, 19 Feb 2017 12:57:00 +0100 Subject: nativeio.SPI: Remove extraneous constructor args because they are in configure. --- shared-bindings/nativeio/SPI.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'shared-bindings') diff --git a/shared-bindings/nativeio/SPI.c b/shared-bindings/nativeio/SPI.c index 75d7117e5..e5eddb189 100644 --- a/shared-bindings/nativeio/SPI.c +++ b/shared-bindings/nativeio/SPI.c @@ -66,14 +66,13 @@ //| // TODO(tannewt): Support LSB SPI. -// TODO(tannewt): Support phase, polarity and bit order. STATIC mp_obj_t nativeio_spi_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *pos_args) { mp_arg_check_num(n_args, n_kw, 0, MP_OBJ_FUN_ARGS_MAX, true); nativeio_spi_obj_t *self = m_new_obj(nativeio_spi_obj_t); self->base.type = &nativeio_spi_type; mp_map_t kw_args; mp_map_init_fixed_table(&kw_args, n_kw, pos_args + n_args); - enum { ARG_clock, ARG_MOSI, ARG_MISO, ARG_baudrate, ARG_polarity, ARG_phase, ARG_bits, ARG_firstbit }; + enum { ARG_clock, ARG_MOSI, ARG_MISO }; static const mp_arg_t allowed_args[] = { { MP_QSTR_clock, MP_ARG_REQUIRED | MP_ARG_OBJ }, { MP_QSTR_MOSI, MP_ARG_OBJ, {.u_obj = mp_const_none} }, -- cgit v1.2.3