diff options
| author | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-04-10 14:31:11 +0700 |
| commit | 3c2467196070eeedd4171e183db04fb815677246 (patch) | |
| tree | 742e3f277776b025ee0f90ab63ef2f70a3b3d03a /vendor/fatfs/diskio.c | |
| parent | 3473c71a6a7cb22cb45f368dba4edda49ed8f7af (diff) | |
mass rename TUSB_CFG to CFG_TUSB
Diffstat (limited to 'vendor/fatfs/diskio.c')
| -rw-r--r-- | vendor/fatfs/diskio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/fatfs/diskio.c b/vendor/fatfs/diskio.c index 130f6860d..ecaccec3e 100644 --- a/vendor/fatfs/diskio.c +++ b/vendor/fatfs/diskio.c @@ -38,7 +38,7 @@ #include "tusb.h" -#if TUSB_CFG_HOST_MSC +#if CFG_TUSB_HOST_MSC //--------------------------------------------------------------------+ // INCLUDE //--------------------------------------------------------------------+ @@ -48,7 +48,7 @@ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ // TODO change it to portable init -static DSTATUS disk_state[TUSB_CFG_HOST_DEVICE_MAX]; +static DSTATUS disk_state[CFG_TUSB_HOST_DEVICE_MAX]; //--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION @@ -63,7 +63,7 @@ static DRESULT wait_for_io_complete(uint8_t usb_addr) while ( tuh_msc_is_busy(usb_addr) ) { // TODO should have timeout here - #if TUSB_CFG_OS != TUSB_OS_NONE + #if CFG_TUSB_OS != TUSB_OS_NONE osal_task_delay(10); #endif } @@ -73,7 +73,7 @@ static DRESULT wait_for_io_complete(uint8_t usb_addr) void diskio_init(void) { - memset(disk_state, STA_NOINIT, TUSB_CFG_HOST_DEVICE_MAX); + memset(disk_state, STA_NOINIT, CFG_TUSB_HOST_DEVICE_MAX); } //pdrv Specifies the physical drive number. @@ -204,4 +204,4 @@ DWORD get_fattime (void) return timestamp.value; } -#endif // TUSB_CFG_HOST_MSC +#endif // CFG_TUSB_HOST_MSC |
