added ifdefs to handle different HCLK rates that were causing problems with SD card writes at HCLKs other then 168mhz