common SPI library, small fixes to DOSFS and LOG