This commit is contained in:
刘可亮
2024-06-04 19:00:30 +08:00
parent 990c72f5be
commit 0a13af6a1d
1668 changed files with 342810 additions and 37726 deletions

View File

@@ -25,7 +25,6 @@ extern "C" {
#define DEVICE_TYPE_SPINOR_DISK ((const void *)3) /* SPINOR */
#define DEVICE_TYPE_RAM_DISK ((const void *)4) /* RAM */
#define DTL(x) (long)(x)
#define GET_DEVICE_TYPE (0)
struct elm_dev_info {
char *dev_name;

View File

@@ -48,6 +48,8 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
#define GET_SECTOR_SIZE 2 /* Get sector size (needed at FF_MAX_SS != FF_MIN_SS) */
#define GET_BLOCK_SIZE 3 /* Get erase block size (needed at FF_USE_MKFS == 1) */
#define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at FF_USE_TRIM == 1) */
#define GET_DEVICE_TYPE 5 /* Get device type for ArtInChip */
/* Generic command (Not used by FatFs) */
#define CTRL_POWER 5 /* Get/Set power status */