|
52 | 52 | //| :param int baudrate: The SPI data rate to use after card setup
|
53 | 53 | //| :param busio.SDIO sdio: The SDIO bus. Mutually exclusive with spi and cs.
|
54 | 54 | //|
|
| 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 | +//| |
55 | 59 | //| Example usage:
|
56 | 60 | //|
|
57 | 61 | //| .. code-block:: python
|
|
68 | 72 | //| os.listdir('/sd')"""
|
69 | 73 |
|
70 | 74 | 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 }; |
72 | 76 | static const mp_arg_t allowed_args[] = {
|
73 | 77 | { MP_QSTR_spi, MP_ARG_OBJ, {.u_obj = mp_const_none } },
|
74 | 78 | { MP_QSTR_cs, MP_ARG_OBJ, {.u_obj = mp_const_none } },
|
75 | 79 | { MP_QSTR_baudrate, MP_ARG_INT, {.u_int = 8000000} },
|
76 |
| - { MP_QSTR_sdio, MP_ARG_OBJ | MP_ARG_KW_ONLY, {.u_int = 8000000} }, |
77 | 80 | };
|
78 | 81 | MP_STATIC_ASSERT( MP_ARRAY_SIZE(allowed_args) == NUM_ARGS );
|
79 | 82 | mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];
|
|
0 commit comments