diff options
| author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-19 12:57:00 +0100 |
|---|---|---|
| committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-02-19 12:57:00 +0100 |
| commit | 1a3bd67833f492ca59b4f3a116c7eff98bb204d1 (patch) | |
| tree | 3697084d827fcbc425edabd2028aa0d88992e4ce | |
| parent | f511c263a0c880aba5379cbb2ce459489531872f (diff) | |
nativeio.SPI: Remove extraneous constructor args because they are in configure.
| -rw-r--r-- | shared-bindings/nativeio/SPI.c | 3 |
1 files changed, 1 insertions, 2 deletions
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} }, |
