http://mbed.org/users/okini3939/code/PRAMFileSystem/#475e05403ad8