diff options
| author | Lucian Copeland <hierophect@gmail.com> | 2020-09-23 11:39:39 -0400 |
|---|---|---|
| committer | Lucian Copeland <hierophect@gmail.com> | 2020-09-23 11:39:39 -0400 |
| commit | 00517b26009d6b721145995e40725625b5152afd (patch) | |
| tree | f52d498a4df75499ee3ad6f878363e467f2d199f /ports/stm | |
| parent | 22d9a94f2b880c57b7939e3e08a6fecd1ef59720 (diff) | |
Move missing pin warning to shared-bindings
Diffstat (limited to 'ports/stm')
| -rw-r--r-- | ports/stm/common-hal/busio/SPI.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/ports/stm/common-hal/busio/SPI.c b/ports/stm/common-hal/busio/SPI.c index 913385e96..29fbdee56 100644 --- a/ports/stm/common-hal/busio/SPI.c +++ b/ports/stm/common-hal/busio/SPI.c @@ -127,15 +127,6 @@ STATIC int check_pins(busio_spi_obj_t *self, uint8_t mosi_len = MP_ARRAY_SIZE(mcu_spi_mosi_list); uint8_t miso_len = MP_ARRAY_SIZE(mcu_spi_miso_list); - //SCK is not optional. MOSI and MISO are - if (!sck) { - mp_raise_ValueError(translate("Must provide SCK pin")); - } - - if (!miso && !mosi) { - mp_raise_ValueError(translate("Must provide MISO or MOSI pin")); - } - // Loop over each possibility for SCK. Check whether MISO and/or MOSI can be used on the same peripheral for (uint i = 0; i < sck_len; i++) { const mcu_periph_obj_t *mcu_spi_sck = &mcu_spi_sck_list[i]; |
