rename CFG_TUSB_HOST_CDC/MSC to CFG_TUH_CDC/MSC

This commit is contained in:
hathach
2018-12-06 22:24:31 +07:00
parent 5b09774ae0
commit 7d3ff7aff6
23 changed files with 35 additions and 35 deletions

View File

@@ -39,7 +39,7 @@
#include "cdc_serial_host_app.h"
#include "app_os_prio.h"
#if CFG_TUSB_HOST_CDC
#if CFG_TUH_CDC
#define QUEUE_SERIAL_DEPTH 100

View File

@@ -53,7 +53,7 @@
extern "C" {
#endif
#if CFG_TUSB_HOST_CDC
#if CFG_TUH_CDC
void cdc_serial_host_app_init(void);
void cdc_serial_host_app_task(void* param);

View File

@@ -138,6 +138,6 @@ void print_greeting(void)
if (CFG_TUH_HUB ) puts(" - Hub (1 level only)");
if (CFG_TUSB_HOST_HID_MOUSE ) puts(" - HID Mouse");
if (CFG_TUSB_HOST_HID_KEYBOARD ) puts(" - HID Keyboard");
if (CFG_TUSB_HOST_MSC ) puts(" - Mass Storage");
if (CFG_TUSB_HOST_CDC ) puts(" - Communication Device Class");
if (CFG_TUH_MSC ) puts(" - Mass Storage");
if (CFG_TUH_CDC ) puts(" - Communication Device Class");
}

View File

@@ -39,7 +39,7 @@
#include "msc_cli.h"
#include "ctype.h"
#if CFG_TUSB_HOST_MSC
#if CFG_TUH_MSC
#include "ff.h"
#include "diskio.h"

View File

@@ -42,7 +42,7 @@
#include "msc_host_app.h"
#include "app_os_prio.h"
#if CFG_TUSB_HOST_MSC
#if CFG_TUH_MSC
#include "msc_cli.h"
#include "ff.h"

View File

@@ -54,7 +54,7 @@
extern "C" {
#endif
#if CFG_TUSB_HOST_MSC
#if CFG_TUH_MSC
void msc_host_app_init(void);
void msc_host_app_task(void* param);

View File

@@ -39,7 +39,7 @@
#include "rndis_host_app.h"
#include "app_os_prio.h"
#if CFG_TUSB_HOST_CDC && CFG_TUSB_HOST_CDC_RNDIS
#if CFG_TUH_CDC && CFG_TUH_CDC_RNDIS
//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF

View File

@@ -53,7 +53,7 @@
extern "C" {
#endif
#if CFG_TUSB_HOST_CDC && CFG_TUSB_HOST_CDC_RNDIS
#if CFG_TUH_CDC && CFG_TUH_CDC_RNDIS
void rndis_host_app_init(void);
void rndis_host_app_task(void* param);

View File

@@ -58,8 +58,8 @@
#define CFG_TUSB_HOST_HID_KEYBOARD 1
#define CFG_TUSB_HOST_HID_MOUSE 1
#define CFG_TUSB_HOST_HID_GENERIC 0 // (not yet supported)
#define CFG_TUSB_HOST_MSC 1
#define CFG_TUSB_HOST_CDC 1
#define CFG_TUH_MSC 1
#define CFG_TUH_CDC 1
#define CFG_TUSB_HOST_DEVICE_MAX (CFG_TUH_HUB ? 5 : 1) // normal hub has 4 ports