I don't think there is a separate pin. The driver uses the SDHC_IRQSTAT register which has bits indicating card has been removed or inserted.
https://github.com/PaulStoffregen/SD/blob/master/utility/KinetisSDHC.c
also see SDHC_PRSSTAT register CINS bit
Hi,
I just found this very useful thread, could you please give a little further information as to what part/where in the SDFat library I can find the DAT3 configuration you've noted above, I'd really like to include this in my project.
Should I be editing the SDFat library to implement this or can I just change the registers after issuing sd.begin()? You're background work on this is much appreciated.
Thanks very much for this info either way,
Pat
I have been using this change with no drawback, but that doesn't mean it doesn't have one.
if (!sd.exists("settings.txt")) { CPU_RESTART }