mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-25 12:02:30 +00:00
more symbol rename
This commit is contained in:
parent
89115253da
commit
0997589c45
@ -27,7 +27,7 @@
|
|||||||
#ifndef TUSB_MCU_ATTR_H_
|
#ifndef TUSB_MCU_ATTR_H_
|
||||||
#define TUSB_MCU_ATTR_H_
|
#define TUSB_MCU_ATTR_H_
|
||||||
|
|
||||||
/* Attribute includes
|
/* USB Controller Attributes for Device, Host or MCU (both)
|
||||||
* - ENDPOINT_MAX: max (logical) number of endpoint
|
* - ENDPOINT_MAX: max (logical) number of endpoint
|
||||||
* - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
|
* - ENDPOINT_EXCLUSIVE_NUMBER: endpoint number with different direction IN and OUT aren't allowed,
|
||||||
* e.g EP1 OUT & EP1 IN cannot exist together
|
* e.g EP1 OUT & EP1 IN cannot exist together
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
|
||||||
// TODO USB0 has 6, USB1 has 4
|
// TODO USB0 has 6, USB1 has 4
|
||||||
#define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
|
#define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
|
||||||
#define DCD_ATTR_ENDPOINT_MAX 6
|
#define DCD_ATTR_ENDPOINT_MAX 6
|
||||||
#define DCD_ATTR_RHPORT_HIGHSPEED 0x01 // Port0 HS, Port1 FS
|
#define DCD_ATTR_RHPORT_HIGHSPEED 0x01 // Port0 HS, Port1 FS
|
||||||
|
|
||||||
@ -63,7 +63,7 @@
|
|||||||
#define DCD_ATTR_ENDPOINT_MAX 6
|
#define DCD_ATTR_ENDPOINT_MAX 6
|
||||||
|
|
||||||
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT10XX)
|
#elif TU_CHECK_MCU(OPT_MCU_MIMXRT10XX)
|
||||||
#define DCD_ATTR_CONTROLLER_CHIPIDEA_HS
|
#define MCU_ATTR_CONTROLLER_CHIPIDEA_HS
|
||||||
#define DCD_ATTR_ENDPOINT_MAX 8
|
#define DCD_ATTR_ENDPOINT_MAX 8
|
||||||
#define DCD_ATTR_RHPORT_HIGHSPEED 0x03 // Port0 HS, Port1 HS
|
#define DCD_ATTR_RHPORT_HIGHSPEED 0x03 // Port0 HS, Port1 HS
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
|
||||||
#if CFG_TUD_ENABLED && defined(DCD_ATTR_CONTROLLER_CHIPIDEA_HS)
|
#if CFG_TUD_ENABLED && defined(MCU_ATTR_CONTROLLER_CHIPIDEA_HS)
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// INCLUDE
|
// INCLUDE
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
#define EHCI_DBG 2
|
#define EHCI_DBG 2
|
||||||
|
|
||||||
// Framelist size as small as possible to save SRAM
|
// Framelist size as small as possible to save SRAM
|
||||||
#ifdef HCD_ATTR_EHCI
|
#ifdef MCU_ATTR_CONTROLLER_CHIPIDEA_HS
|
||||||
// NXP Transdimension: 8 elements
|
// NXP Transdimension: 8 elements
|
||||||
#define FRAMELIST_SIZE_BIT_VALUE 7u
|
#define FRAMELIST_SIZE_BIT_VALUE 7u
|
||||||
#define FRAMELIST_SIZE_USBCMD_VALUE (((FRAMELIST_SIZE_BIT_VALUE & 3) << EHCI_USBCMD_POS_FRAMELIST_SIZE) | \
|
#define FRAMELIST_SIZE_USBCMD_VALUE (((FRAMELIST_SIZE_BIT_VALUE & 3) << EHCI_USBCMD_POS_FRAMELIST_SIZE) | \
|
||||||
|
@ -220,8 +220,6 @@
|
|||||||
#define CFG_TUD_ENABLED ( TUD_RHPORT_MODE & OPT_MODE_DEVICE )
|
#define CFG_TUD_ENABLED ( TUD_RHPORT_MODE & OPT_MODE_DEVICE )
|
||||||
#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)) )
|
#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)) )
|
||||||
|
|
||||||
// CFG_TUD_SPEED OPT_MODE_HIGH_SPEED
|
|
||||||
|
|
||||||
//------------- Roothub as Host -------------//
|
//------------- Roothub as Host -------------//
|
||||||
|
|
||||||
#if (CFG_TUSB_RHPORT0_MODE) & OPT_MODE_HOST
|
#if (CFG_TUSB_RHPORT0_MODE) & OPT_MODE_HOST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user