Add CLOCKS_PER_SEC
Remove a compilation warning
Working on fatfs

read() is now fully working.
This commit also cleans up a lot of things in fatfs wrapper code.