mass rename TUSB_CFG to CFG_TUSB

This commit is contained in:
hathach
2018-04-10 14:31:11 +07:00
parent 3473c71a6a
commit 3c24671960
138 changed files with 628 additions and 626 deletions
+2 -2
View File
@@ -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
+5 -5
View File
@@ -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
+1 -1
View File
@@ -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 );
}
+2 -2
View File
@@ -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
+1 -1
View File
@@ -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. */
+1 -1
View File
@@ -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)