remove comments to reduce rows

This commit is contained in:
sakumisu
2022-08-17 20:12:37 +08:00
parent 2b31cad4ff
commit 54c52944d2
19 changed files with 191 additions and 854 deletions

View File

@@ -31,6 +31,7 @@ extern "C" {
typedef void (*usbh_asynch_callback_t)(void *arg, int nbytes);
typedef void *usbh_epinfo_t;
/**
* @brief USB Endpoint Configuration.
*
@@ -38,38 +39,24 @@ typedef void *usbh_epinfo_t;
*/
struct usbh_endpoint_cfg {
struct usbh_hubport *hport;
/** The number associated with the EP in the device
* configuration structure
* IN EP = 0x80 | \<endpoint number\>
* OUT EP = 0x00 | \<endpoint number\>
*/
uint8_t ep_addr;
/** Endpoint Transfer Type.
* May be Bulk, Interrupt, Control or Isochronous
*/
uint8_t ep_type;
uint8_t ep_interval;
/** Endpoint max packet size */
uint16_t ep_mps;
uint8_t ep_addr; /* Endpoint addr with direction */
uint8_t ep_type; /* Endpoint type */
uint16_t ep_mps; /* Endpoint max packet size */
uint8_t ep_interval; /* Endpoint interval */
uint16_t ep_mps; /* Endpoint max packet size */
};
/**
* @brief USB Host Core Layer API
* @defgroup _usb_host_core_api USB Host Core API
* @{
*/
/**
* @brief usb host software init, used for global reset.
*
* @return int
* @return On success will return 0, and others indicate fail.
*/
int usb_hc_sw_init(void);
/**
* @brief usb host controller hardware init.
*
* @return int
* @return On success will return 0, and others indicate fail.
*/
int usb_hc_hw_init(void);
@@ -77,8 +64,7 @@ int usb_hc_hw_init(void);
* @brief get port connect status
*
* @param port
* @return true
* @return false
* @return On success will return 0, and others indicate fail.
*/
bool usbh_get_port_connect_status(const uint8_t port);
@@ -86,7 +72,7 @@ bool usbh_get_port_connect_status(const uint8_t port);
* @brief reset roothub port
*
* @param port port index
* @return int
* @return On success will return 0, and others indicate fail.
*/
int usbh_reset_port(const uint8_t port);