|
ESP-IDF Firmware
Firmware architecture and call graph
|
#include "sdkconfig.h"#include "esp_log.h"#include "esp_check.h"#include "esp_err.h"#include "esp_private/periph_ctrl.h"#include "esp_private/usb_phy.h"#include "soc/usb_pins.h"#include "tinyusb.h"#include "descriptors_control.h"#include "usb_descriptors.h"#include "tusb.h"#include "tusb_tasks.h"Go to the source code of this file.
Macros | |
| #define | USBPHY_VP_NUM (-1) |
| #define | USBPHY_VM_NUM (-1) |
| #define | USBPHY_RCV_NUM (-1) |
| #define | USBPHY_OEN_NUM (-1) |
| #define | USBPHY_VPO_NUM (-1) |
| #define | USBPHY_VMO_NUM (-1) |
Functions | |
| esp_err_t | tinyusb_driver_install (const tinyusb_config_t *config) |
| This is an all-in-one helper function, including: | |
Variables | |
| static const char * | TAG = "TinyUSB" |
| static usb_phy_handle_t | phy_hdl |
| #define USBPHY_OEN_NUM (-1) |
Definition at line 24 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| #define USBPHY_RCV_NUM (-1) |
Definition at line 23 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| #define USBPHY_VM_NUM (-1) |
Definition at line 22 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| #define USBPHY_VMO_NUM (-1) |
Definition at line 26 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| #define USBPHY_VP_NUM (-1) |
Definition at line 21 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| #define USBPHY_VPO_NUM (-1) |
Definition at line 25 of file tinyusb.c.
Referenced by tinyusb_driver_install().
| esp_err_t tinyusb_driver_install | ( | const tinyusb_config_t * | config | ) |
This is an all-in-one helper function, including:
| config | tinyusb stack specific configuration |
| ESP_ERR_INVALID_ARG | Install driver and tinyusb stack failed because of invalid argument |
| ESP_FAIL | Install driver and tinyusb stack failed because of internal error |
| ESP_OK | Install driver and tinyusb stack successfully |
Definition at line 32 of file tinyusb.c.
References tinyusb_config_t::configuration_descriptor, descriptor_cfg_kconfig, descriptor_dev_kconfig, descriptor_str_kconfig, tinyusb_config_t::device_descriptor, ESP_OK, ESP_RETURN_ON_ERROR, tinyusb_config_t::external_phy, phy_hdl, tinyusb_config_t::self_powered, tinyusb_config_t::string_descriptor, TAG, tusb_run_task(), tusb_set_descriptor(), USBPHY_OEN_NUM, USBPHY_RCV_NUM, USBPHY_VM_NUM, USBPHY_VMO_NUM, USBPHY_VP_NUM, USBPHY_VPO_NUM, and tinyusb_config_t::vbus_monitor_io.
Referenced by app_main().
|
static |
Definition at line 30 of file tinyusb.c.
Referenced by tinyusb_driver_install().