the sdmmc wait function is exactly the same as the one in the bootrom and worked as a drop in replacement