mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-21 20:42:25 +00:00
minor rename
This commit is contained in:
parent
d3ed76902e
commit
918f3e9cae
@ -39,13 +39,13 @@
|
|||||||
#error CFG_TUSB_MCU must be defined
|
#error CFG_TUSB_MCU must be defined
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define CFG_TUH_RPI_PIO 1
|
#define CFG_TUH_RPI_PIO_USB 1
|
||||||
//#define CFG_TUSB_RPI_PIO_INC_PATH 1
|
//#define CFG_TUSB_RPI_PIO_INC_PATH 1
|
||||||
|
|
||||||
|
|
||||||
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
#if CFG_TUSB_MCU == OPT_MCU_LPC43XX || CFG_TUSB_MCU == OPT_MCU_LPC18XX || CFG_TUSB_MCU == OPT_MCU_MIMXRT10XX
|
||||||
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | OPT_MODE_HIGH_SPEED)
|
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_HOST | OPT_MODE_HIGH_SPEED)
|
||||||
#elif CFG_TUH_RPI_PIO
|
#elif CFG_TUH_RPI_PIO_USB
|
||||||
// rp2040: port0 is native, port 1 for PIO-USB
|
// rp2040: port0 is native, port 1 for PIO-USB
|
||||||
#define CFG_TUSB_RHPORT1_MODE OPT_MODE_HOST
|
#define CFG_TUSB_RHPORT1_MODE OPT_MODE_HOST
|
||||||
#else
|
#else
|
||||||
|
@ -779,7 +779,7 @@ static bool enum_get_addr0_device_desc_complete(uint8_t dev_addr, tusb_control_r
|
|||||||
|
|
||||||
if (_dev0.hub_addr == 0)
|
if (_dev0.hub_addr == 0)
|
||||||
{
|
{
|
||||||
#if !CFG_TUH_RPI_PIO // skip this reset for pio-usb
|
#if !CFG_TUH_RPI_PIO_USB // skip this reset for pio-usb
|
||||||
// connected directly to roothub
|
// connected directly to roothub
|
||||||
hcd_port_reset(_dev0.rhport);
|
hcd_port_reset(_dev0.rhport);
|
||||||
osal_task_delay(RESET_DELAY);
|
osal_task_delay(RESET_DELAY);
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
|
||||||
#if CFG_TUH_ENABLED && (CFG_TUSB_MCU == OPT_MCU_RP2040) && CFG_TUH_RPI_PIO
|
#if CFG_TUH_ENABLED && (CFG_TUSB_MCU == OPT_MCU_RP2040) && CFG_TUH_RPI_PIO_USB
|
||||||
|
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
#include "hardware/pio.h"
|
#include "hardware/pio.h"
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
#include "tusb_option.h"
|
#include "tusb_option.h"
|
||||||
|
|
||||||
#if CFG_TUH_ENABLED && (CFG_TUSB_MCU == OPT_MCU_RP2040) && !CFG_TUH_RPI_PIO
|
#if CFG_TUH_ENABLED && (CFG_TUSB_MCU == OPT_MCU_RP2040) && !CFG_TUH_RPI_PIO_USB
|
||||||
|
|
||||||
#include "pico.h"
|
#include "pico.h"
|
||||||
#include "rp2040_usb.h"
|
#include "rp2040_usb.h"
|
||||||
|
@ -252,7 +252,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
// COMMON OPTIONS
|
// Common Options (Default)
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
|
||||||
// Debug enable to print out error message
|
// Debug enable to print out error message
|
||||||
@ -280,7 +280,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// DEVICE OPTIONS
|
// Device Options (Default)
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
||||||
#ifndef CFG_TUD_ENDPOINT0_SIZE
|
#ifndef CFG_TUD_ENDPOINT0_SIZE
|
||||||
@ -345,7 +345,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
// HOST OPTIONS
|
// Host Options (Default)
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
#if CFG_TUH_ENABLED
|
#if CFG_TUH_ENABLED
|
||||||
#ifndef CFG_TUH_DEVICE_MAX
|
#ifndef CFG_TUH_DEVICE_MAX
|
||||||
@ -383,6 +383,11 @@
|
|||||||
#define CFG_TUH_VENDOR 0
|
#define CFG_TUH_VENDOR 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Enable PIO-USB software host controller
|
||||||
|
#ifndef CFG_TUH_RPI_PIO_USB
|
||||||
|
#define CFG_TUH_RPI_PIO_USB 0
|
||||||
|
#endif
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// Configuration Validation
|
// Configuration Validation
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user