Firmware: ST0010 support + peripheral enable switches

This commit is contained in:
ikari
2011-06-20 14:22:52 +02:00
parent 7fc6952fab
commit 1183718234
13 changed files with 125 additions and 40 deletions

View File

@@ -66,6 +66,10 @@ void file_close() {
file_res = f_close(&file_handle);
}
void file_seek(uint32_t offset) {
file_res = f_lseek(&file_handle, (DWORD)offset);
}
UINT file_read() {
UINT bytes_read;
file_res = f_read(&file_handle, file_buf, sizeof(file_buf), &bytes_read);