diff options
| author | Jeff Epler <jepler@gmail.com> | 2020-07-23 17:58:43 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2020-07-30 07:18:02 -0500 |
| commit | ccd3013396e1e36f2cce5956c301e50ff1b4324d (patch) | |
| tree | a2838f15aaafe8795761170b898e4d085f640d46 | |
| parent | 3cf1258c8782f510628d23c4e7b816f18af4fedd (diff) | |
stm: stioio: correctly claim pins
| -rw-r--r-- | ports/stm/common-hal/sdioio/SDCard.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ports/stm/common-hal/sdioio/SDCard.c b/ports/stm/common-hal/sdioio/SDCard.c index ceafa8ddc..a1e87ec4e 100644 --- a/ports/stm/common-hal/sdioio/SDCard.c +++ b/ports/stm/common-hal/sdioio/SDCard.c @@ -193,6 +193,12 @@ void common_hal_sdioio_sdcard_construct(sdioio_sdcard_obj_t *self, reserved_sdio[periph_index - 1] = true; + claim_pin(clock); + claim_pin(command); + for (int i=0; i<num_data; i++) { + claim_pin(data[i]); + } + return; } |
