Skip to content

Commit ccd3013

Browse files
committed
stm: stioio: correctly claim pins
1 parent 3cf1258 commit ccd3013

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ports/stm/common-hal/sdioio/SDCard.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ void common_hal_sdioio_sdcard_construct(sdioio_sdcard_obj_t *self,
193193

194194
reserved_sdio[periph_index - 1] = true;
195195

196+
claim_pin(clock);
197+
claim_pin(command);
198+
for (int i=0; i<num_data; i++) {
199+
claim_pin(data[i]);
200+
}
201+
196202
return;
197203
}
198204

0 commit comments

Comments
 (0)