mass rename TUSB_CFG to CFG_TUSB
This commit is contained in:
Vendored
+2
-2
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "ff.h"
|
||||
|
||||
#if TUSB_CFG_HOST_MSC
|
||||
#if CFG_TUSB_HOST_MSC
|
||||
|
||||
#if _CODE_PAGE == 437
|
||||
#define _TBLDEF 1
|
||||
@@ -540,4 +540,4 @@ WCHAR ff_wtoupper ( /* Upper converted character */
|
||||
return tbl_lower[i] ? tbl_upper[i] : chr;
|
||||
}
|
||||
|
||||
#endif // TUSB_CFG_HOST_MSC
|
||||
#endif // CFG_TUSB_HOST_MSC
|
||||
|
||||
Vendored
+5
-5
@@ -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
|
||||
|
||||
Vendored
+1
-1
@@ -83,7 +83,7 @@ DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void* buff);
|
||||
static inline bool disk_is_ready(BYTE pdrv);
|
||||
static inline bool disk_is_ready(BYTE pdrv)
|
||||
{
|
||||
return (pdrv < TUSB_CFG_HOST_DEVICE_MAX) &&
|
||||
return (pdrv < CFG_TUSB_HOST_DEVICE_MAX) &&
|
||||
( (disk_status(pdrv) & (STA_NOINIT | STA_NODISK)) == 0 );
|
||||
}
|
||||
|
||||
|
||||
Vendored
+2
-2
@@ -99,7 +99,7 @@
|
||||
#include "ff.h" /* FatFs configurations and declarations */
|
||||
#include "diskio.h" /* Declarations of low level disk I/O functions */
|
||||
|
||||
#if TUSB_CFG_HOST_MSC
|
||||
#if CFG_TUSB_HOST_MSC
|
||||
/*--------------------------------------------------------------------------
|
||||
|
||||
Module Private Definitions
|
||||
@@ -4327,4 +4327,4 @@ int f_printf (
|
||||
#endif /* !_FS_READONLY */
|
||||
#endif /* _USE_STRFUNC */
|
||||
|
||||
#endif // TUSB_CFG_HOST_MSC
|
||||
#endif // CFG_TUSB_HOST_MSC
|
||||
|
||||
Vendored
+1
-1
@@ -128,7 +128,7 @@
|
||||
/ Physical Drive Configurations
|
||||
/----------------------------------------------------------------------------*/
|
||||
|
||||
#define _VOLUMES TUSB_CFG_HOST_DEVICE_MAX
|
||||
#define _VOLUMES CFG_TUSB_HOST_DEVICE_MAX
|
||||
/* Number of volumes (logical drives) to be used. */
|
||||
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@
|
||||
//--------------------------------------------------------------------+
|
||||
// See http://www.freertos.org/a00110.html.
|
||||
//--------------------------------------------------------------------+
|
||||
#if TUSB_CFG_MCU == MCU_LPC43XX
|
||||
#if CFG_TUSB_MCU == MCU_LPC43XX
|
||||
// TODO remove
|
||||
#include "lpc43xx_cgu.h"
|
||||
#define configCPU_CLOCK_HZ CGU_GetPCLKFrequency(CGU_PERIPHERAL_M4CORE)
|
||||
|
||||
Reference in New Issue
Block a user