embedded-fatfs icon indicating copy to clipboard operation
embedded-fatfs copied to clipboard

Move clock init to free func, update examples

Open CBJamo opened this issue 1 year ago • 1 comments

Fixes #29

I feel like there should be a way to handle this that doesn't leave the footgun of forgetting the sd_init function, but I'm not sure how to do it.

CBJamo avatar May 07 '24 16:05 CBJamo

One idea is to use a builder pattern where you first need to create an uninitialized SD card struct, call init on that struct and then you get the regular SD card struct.

avsaase avatar Jul 15 '24 21:07 avsaase