Skip to content

Commit 5cf1a1d

Browse files
committed
SPISDCard: Remove traces of doing SPI and SDIO in one constructor
1 parent 3a5e0f2 commit 5cf1a1d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

shared-bindings/_sdcardio/SPISDCard.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
//| :param int baudrate: The SPI data rate to use after card setup
5353
//| :param busio.SDIO sdio: The SDIO bus. Mutually exclusive with spi and cs.
5454
//|
55+
//| Note that during detection and configuration, a hard-coded low baudrate is used.
56+
//| Data transfers use the specified baurate (rounded down to one that is supported by
57+
//| the microcontroller)
58+
//|
5559
//| Example usage:
5660
//|
5761
//| .. code-block:: python
@@ -68,12 +72,11 @@
6872
//| os.listdir('/sd')"""
6973

7074
STATIC mp_obj_t sdcardio_sdcard_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {
71-
enum { ARG_spi, ARG_cs, ARG_baudrate, ARG_sdio, NUM_ARGS };
75+
enum { ARG_spi, ARG_cs, ARG_baudrate, NUM_ARGS };
7276
static const mp_arg_t allowed_args[] = {
7377
{ MP_QSTR_spi, MP_ARG_OBJ, {.u_obj = mp_const_none } },
7478
{ MP_QSTR_cs, MP_ARG_OBJ, {.u_obj = mp_const_none } },
7579
{ MP_QSTR_baudrate, MP_ARG_INT, {.u_int = 8000000} },
76-
{ MP_QSTR_sdio, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_int = 8000000} },
7780
};
7881
MP_STATIC_ASSERT( MP_ARRAY_SIZE(allowed_args) == NUM_ARGS );
7982
mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];

0 commit comments

Comments
 (0)