mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 12:53:29 +00:00

Starting with ESP32-P4 we can have targets that have more than 1 USB-OTG peripheral. This commit adds an option to choose which peripherals will be used by USB Host lib. Internally, we will still have only 1 Root HUB but with multiple Root ports.
21 lines
403 B
C
21 lines
403 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
#include "hal/usb_phy_types.h"
|
|
|
|
/**
|
|
* @brief Install USB PHY separately from the usb_host_install()
|
|
*
|
|
* @param[in] phy_target USB PHY target
|
|
*/
|
|
void test_setup_usb_phy(usb_phy_target_t phy_target);
|
|
|
|
/**
|
|
* @brief Uninstall PHY
|
|
*/
|
|
void test_delete_usb_phy(void);
|