summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-04-10 14:31:11 +0700
committerhathach <[email protected]>2018-04-10 14:31:11 +0700
commit3c2467196070eeedd4171e183db04fb815677246 (patch)
tree742e3f277776b025ee0f90ab63ef2f70a3b3d03a /vendor
parent3473c71a6a7cb22cb45f368dba4edda49ed8f7af (diff)
mass rename TUSB_CFG to CFG_TUSB
Diffstat (limited to 'vendor')
-rw-r--r--vendor/fatfs/ccsbcs.c4
-rw-r--r--vendor/fatfs/diskio.c10
-rw-r--r--vendor/fatfs/diskio.h2
-rw-r--r--vendor/fatfs/ff.c4
-rw-r--r--vendor/fatfs/ffconf.h2
-rw-r--r--vendor/freertos/FreeRTOSConfig.h2
6 files changed, 12 insertions, 12 deletions
diff --git a/vendor/fatfs/ccsbcs.c b/vendor/fatfs/ccsbcs.c
index 51c858b58..5cf0dd503 100644
--- a/vendor/fatfs/ccsbcs.c
+++ b/vendor/fatfs/ccsbcs.c
@@ -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
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
diff --git a/vendor/fatfs/diskio.h b/vendor/fatfs/diskio.h
index ca97e3403..99743538a 100644
--- a/vendor/fatfs/diskio.h
+++ b/vendor/fatfs/diskio.h
@@ -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 );
}
diff --git a/vendor/fatfs/ff.c b/vendor/fatfs/ff.c
index ee2b6c0f7..897965332 100644
--- a/vendor/fatfs/ff.c
+++ b/vendor/fatfs/ff.c
@@ -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
diff --git a/vendor/fatfs/ffconf.h b/vendor/fatfs/ffconf.h
index 75c5c15af..bc132d2c3 100644
--- a/vendor/fatfs/ffconf.h
+++ b/vendor/fatfs/ffconf.h
@@ -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. */
diff --git a/vendor/freertos/FreeRTOSConfig.h b/vendor/freertos/FreeRTOSConfig.h
index fa1707f99..53ce7551a 100644
--- a/vendor/freertos/FreeRTOSConfig.h
+++ b/vendor/freertos/FreeRTOSConfig.h
@@ -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)