File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 27
27
#ifndef TUSB_MCU_ATTR_H_
28
28
#define TUSB_MCU_ATTR_H_
29
29
30
- /* Attribute includes
30
+ /* USB Controller Attributes for Device, Host or MCU (both)
31
31
* - ENDPOINT_MAX: max (logical) number of endpoint
32
32
* - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
33
33
* e.g EP1 OUT & EP1 IN cannot exist together
45
45
46
46
#elif TU_CHECK_MCU (OPT_MCU_LPC18XX , OPT_MCU_LPC43XX )
47
47
// TODO USB0 has 6, USB1 has 4
48
- #define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
48
+ #define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
49
49
#define DCD_ATTR_ENDPOINT_MAX 6
50
50
#define DCD_ATTR_RHPORT_HIGHSPEED 0x01 // Port0 HS, Port1 FS
51
51
63
63
#define DCD_ATTR_ENDPOINT_MAX 6
64
64
65
65
#elif TU_CHECK_MCU (OPT_MCU_MIMXRT10XX )
66
- #define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
66
+ #define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
67
67
#define DCD_ATTR_ENDPOINT_MAX 8
68
68
#define DCD_ATTR_RHPORT_HIGHSPEED 0x03 // Port0 HS, Port1 HS
69
69
Original file line number Diff line number Diff line change 26
26
27
27
#include "tusb_option.h"
28
28
29
- #if CFG_TUD_ENABLED && defined(DCD_ATTR_CONTROLLER_CHIPIDEA_HS )
29
+ #if CFG_TUD_ENABLED && defined(MCU_ATTR_CONTROLLER_CHIPIDEA_HS )
30
30
31
31
//--------------------------------------------------------------------+
32
32
// INCLUDE
Original file line number Diff line number Diff line change 45
45
#define EHCI_DBG 2
46
46
47
47
// Framelist size as small as possible to save SRAM
48
- #ifdef HCD_ATTR_EHCI
48
+ #ifdef MCU_ATTR_CONTROLLER_CHIPIDEA_HS
49
49
// NXP Transdimension: 8 elements
50
50
#define FRAMELIST_SIZE_BIT_VALUE 7u
51
51
#define FRAMELIST_SIZE_USBCMD_VALUE (((FRAMELIST_SIZE_BIT_VALUE & 3) << EHCI_USBCMD_POS_FRAMELIST_SIZE) | \
Original file line number Diff line number Diff line change 220
220
#define CFG_TUD_ENABLED ( TUD_RHPORT_MODE & OPT_MODE_DEVICE )
221
221
#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)) )
222
222
223
- // CFG_TUD_SPEED OPT_MODE_HIGH_SPEED
224
-
225
223
//------------- Roothub as Host -------------//
226
224
227
225
#if (CFG_TUSB_RHPORT0_MODE ) & OPT_MODE_HOST
You can’t perform that action at this time.
0 commit comments