> Why not simply change the SDMMC_LOCK/SDMMC_UNLOCK/SDMMC_ASSERT_LOCKED
> macros and leave the .c files untouched (other than the lock init)?

Because it obscures things.

Eventually we all have to learn the native locking API's.  If they
are throughout our tree wrapped up into 50-60 variations, who will
ever learn.

For one, I won't.

Reply via email to