Skip to content
Permalink
Browse files

Cross-platform Bluetooth support micropython#4589

  • Loading branch information...
ilyamordasov committed Mar 12, 2019
1 parent d256797 commit e15d372b0568ccef4d53cab9df9b11a09a977c60
Showing with 2,343 additions and 1,953 deletions.
  1. +6 −8 lib/oofatfs/diskio.h
  2. +2,085 −1,733 lib/oofatfs/ff.c
  3. +119 −99 lib/oofatfs/ff.h
  4. +133 −113 lib/oofatfs/ffconf.h
@@ -13,8 +13,6 @@
extern "C" {
#endif



/* Status of Disk Functions */
typedef BYTE DSTATUS;

@@ -47,11 +45,11 @@ DRESULT disk_ioctl (void *drv, BYTE cmd, void* buff);
/* Command code for disk_ioctrl fucntion */

/* Generic command (Used by FatFs) */
#define CTRL_SYNC 0 /* Complete pending write process (needed at _FS_READONLY == 0) */
#define GET_SECTOR_COUNT 1 /* Get media size (needed at _USE_MKFS == 1) */
#define GET_SECTOR_SIZE 2 /* Get sector size (needed at _MAX_SS != _MIN_SS) */
#define GET_BLOCK_SIZE 3 /* Get erase block size (needed at _USE_MKFS == 1) */
#define CTRL_TRIM 4 /* Inform device that the data on the block of sectors is no longer used (needed at _USE_TRIM == 1) */
#define CTRL_SYNC 0 /* Complete pending write process (needed at FF_FS_READONLY == 0) */
#define GET_SECTOR_COUNT 1 /* Get media size (needed at FF_USE_MKFS == 1) */
#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 IOCTL_INIT 5
#define IOCTL_STATUS 6

@@ -80,4 +78,4 @@ DRESULT disk_ioctl (void *drv, BYTE cmd, void* buff);
}
#endif

#endif
#endif

0 comments on commit e15d372

Please sign in to comment.
You can’t perform that action at this time.