Skip to content

Commit 1a3bd67

Browse files
committed
nativeio.SPI: Remove extraneous constructor args because they are in configure.
1 parent f511c26 commit 1a3bd67

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • shared-bindings/nativeio

shared-bindings/nativeio/SPI.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,13 @@
6666
//|
6767

6868
// TODO(tannewt): Support LSB SPI.
69-
// TODO(tannewt): Support phase, polarity and bit order.
7069
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) {
7170
mp_arg_check_num(n_args, n_kw, 0, MP_OBJ_FUN_ARGS_MAX, true);
7271
nativeio_spi_obj_t *self = m_new_obj(nativeio_spi_obj_t);
7372
self->base.type = &nativeio_spi_type;
7473
mp_map_t kw_args;
7574
mp_map_init_fixed_table(&kw_args, n_kw, pos_args + n_args);
76-
enum { ARG_clock, ARG_MOSI, ARG_MISO, ARG_baudrate, ARG_polarity, ARG_phase, ARG_bits, ARG_firstbit };
75+
enum { ARG_clock, ARG_MOSI, ARG_MISO };
7776
static const mp_arg_t allowed_args[] = {
7877
{ MP_QSTR_clock, MP_ARG_REQUIRED | MP_ARG_OBJ },
7978
{ MP_QSTR_MOSI, MP_ARG_OBJ, {.u_obj = mp_const_none} },

0 commit comments

Comments
 (0)