Added SD HAL layer and mmc functionality from ti example code