Skip to content

Commit 0997589

Browse files
committed
more symbol rename
1 parent 8911525 commit 0997589

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/common/tusb_mcu_attr.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#ifndef TUSB_MCU_ATTR_H_
2828
#define TUSB_MCU_ATTR_H_
2929

30-
/* Attribute includes
30+
/* USB Controller Attributes for Device, Host or MCU (both)
3131
* - ENDPOINT_MAX: max (logical) number of endpoint
3232
* - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
3333
* e.g EP1 OUT & EP1 IN cannot exist together
@@ -45,7 +45,7 @@
4545

4646
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
4747
// TODO USB0 has 6, USB1 has 4
48-
#define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
48+
#define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
4949
#define DCD_ATTR_ENDPOINT_MAX 6
5050
#define DCD_ATTR_RHPORT_HIGHSPEED 0x01 // Port0 HS, Port1 FS
5151

@@ -63,7 +63,7 @@
6363
#define DCD_ATTR_ENDPOINT_MAX 6
6464

6565
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT10XX)
66-
#define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
66+
#define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
6767
#define DCD_ATTR_ENDPOINT_MAX 8
6868
#define DCD_ATTR_RHPORT_HIGHSPEED 0x03 // Port0 HS, Port1 HS
6969

src/portable/chipidea/ci_hs/dcd_ci_hs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include "tusb_option.h"
2828

29-
#if CFG_TUD_ENABLED && defined(DCD_ATTR_CONTROLLER_CHIPIDEA_HS)
29+
#if CFG_TUD_ENABLED && defined(MCU_ATTR_CONTROLLER_CHIPIDEA_HS)
3030

3131
//--------------------------------------------------------------------+
3232
// INCLUDE

src/portable/ehci/ehci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#define EHCI_DBG 2
4646

4747
// Framelist size as small as possible to save SRAM
48-
#ifdef HCD_ATTR_EHCI
48+
#ifdef MCU_ATTR_CONTROLLER_CHIPIDEA_HS
4949
// NXP Transdimension: 8 elements
5050
#define FRAMELIST_SIZE_BIT_VALUE 7u
5151
#define FRAMELIST_SIZE_USBCMD_VALUE (((FRAMELIST_SIZE_BIT_VALUE & 3) << EHCI_USBCMD_POS_FRAMELIST_SIZE) | \

src/tusb_option.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@
220220
#define CFG_TUD_ENABLED ( TUD_RHPORT_MODE & OPT_MODE_DEVICE )
221221
#define TUD_OPT_HIGH_SPEED ( (TUD_RHPORT_MODE & OPT_MODE_SPEED_MASK) ? (TUD_RHPORT_MODE & OPT_MODE_HIGH_SPEED) : (DCD_ATTR_RHPORT_HIGHSPEED & (1 << TUD_OPT_RHPORT)) )
222222

223-
// CFG_TUD_SPEED OPT_MODE_HIGH_SPEED
224-
225223
//------------- Roothub as Host -------------//
226224

227225
#if (CFG_TUSB_RHPORT0_MODE) & OPT_MODE_HOST

0 commit comments

Comments
 (0)