From dd38d907244bc0e483c3d760f2ba464a394ec229 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Tue, 11 Mar 2014 23:55:41 -0700 Subject: Initial checkin with STM HAL This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything. --- stmhal/fatfs/doc/en/dread.html | 70 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 stmhal/fatfs/doc/en/dread.html (limited to 'stmhal/fatfs/doc/en/dread.html') diff --git a/stmhal/fatfs/doc/en/dread.html b/stmhal/fatfs/doc/en/dread.html new file mode 100644 index 000000000..b686bdfbc --- /dev/null +++ b/stmhal/fatfs/doc/en/dread.html @@ -0,0 +1,70 @@ + + +
+ + + + + +The disk_read function reads sector(s) from the disk drive.
++DRESULT disk_read ( + BYTE pdrv, /* [IN] Physical drive number */ + BYTE* buff, /* [OUT] Pointer to the read data buffer */ + DWORD sector, /* [IN] Start sector number */ + UINT count /* [IN] Number of sectros to read */ +); ++
The memory address specified by buff is not that always aligned to word boundary because the type of argument is defined as BYTE*. The misaligned read/write request can occure at direct transfer. If the bus architecture, especially DMA controller, does not allow misaligned memory access, it should be solved in this function. There are some workarounds described below to avoid this issue.
+