1
1
/*-----------------------------------------------------------------------/
2
- / Low level disk interface modlue include file (C)ChaN, 2014 /
2
+ / Low level disk interface modlue include file (C)ChaN, 2019 /
3
3
/-----------------------------------------------------------------------*/
4
4
5
5
#ifndef _DISKIO_DEFINED
9
9
extern "C" {
10
10
#endif
11
11
12
- #include "integer.h"
13
-
14
-
15
12
/* Status of Disk Functions */
16
13
typedef BYTE DSTATUS ;
17
14
@@ -31,8 +28,8 @@ typedef enum {
31
28
32
29
DSTATUS disk_initialize (BYTE pdrv );
33
30
DSTATUS disk_status (BYTE pdrv );
34
- DRESULT disk_read (BYTE pdrv , BYTE * buff , DWORD sector , UINT count );
35
- DRESULT disk_write (BYTE pdrv , const BYTE * buff , DWORD sector , UINT count );
31
+ DRESULT disk_read (BYTE pdrv , BYTE * buff , LBA_t sector , UINT count );
32
+ DRESULT disk_write (BYTE pdrv , const BYTE * buff , LBA_t sector , UINT count );
36
33
DRESULT disk_ioctl (BYTE pdrv , BYTE cmd , void * buff );
37
34
38
35
@@ -46,11 +43,11 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
46
43
/* Command code for disk_ioctrl fucntion */
47
44
48
45
/* Generic command (Used by FatFs) */
49
- #define CTRL_SYNC 0 /* Complete pending write process (needed at _FS_READONLY == 0) */
50
- #define GET_SECTOR_COUNT 1 /* Get media size (needed at _USE_MKFS == 1) */
51
- #define GET_SECTOR_SIZE 2 /* Get sector size (needed at _MAX_SS != _MIN_SS ) */
52
- #define GET_BLOCK_SIZE 3 /* Get erase block size (needed at _USE_MKFS == 1) */
53
- #define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at _USE_TRIM == 1) */
46
+ #define CTRL_SYNC 0 /* Complete pending write process (needed at FF_FS_READONLY == 0) */
47
+ #define GET_SECTOR_COUNT 1 /* Get media size (needed at FF_USE_MKFS == 1) */
48
+ #define GET_SECTOR_SIZE 2 /* Get sector size (needed at FF_MAX_SS != FF_MIN_SS ) */
49
+ #define GET_BLOCK_SIZE 3 /* Get erase block size (needed at FF_USE_MKFS == 1) */
50
+ #define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at FF_USE_TRIM == 1) */
54
51
55
52
/* Generic command (Not used by FatFs) */
56
53
#define CTRL_POWER 5 /* Get/Set power status */
0 commit comments