mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
feat(usb/host): Add option to choose peripheral for USB host library
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.
This commit is contained in:
@@ -4,10 +4,15 @@
|
||||
* 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(void);
|
||||
void test_setup_usb_phy(usb_phy_target_t phy_target);
|
||||
|
||||
/**
|
||||
* @brief Uninstall PHY
|
||||
|
||||
Reference in New Issue
Block a user