forked from xuos/xiuos
Add TODO comments to the function to be modified.
This commit is contained in:
parent
098c8a9879
commit
7ed436a8c8
|
@ -842,6 +842,7 @@ int usbh_initialize(uint32_t id, struct usbh_bus *usb)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: This function will be replaced by usbh_control_transfer_xiuos.*/
|
||||||
int usbh_control_transfer(usbh_pipe_t pipe, struct usb_setup_packet *setup, uint8_t *buffer)
|
int usbh_control_transfer(usbh_pipe_t pipe, struct usb_setup_packet *setup, uint8_t *buffer)
|
||||||
{
|
{
|
||||||
struct usbh_urb *urb;
|
struct usbh_urb *urb;
|
||||||
|
@ -1073,6 +1074,7 @@ int usbh_get_devaddr(struct usbh_hubport *hport)
|
||||||
return dev_addr;
|
return dev_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: This function will be replaced by usbh_pipe_free_xiuos.*/
|
||||||
int usbh_pipe_free(usbh_pipe_t pipe)
|
int usbh_pipe_free(usbh_pipe_t pipe)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -71,6 +71,7 @@ extern "C" {
|
||||||
#define CLASS_INFO_DEFINE __attribute__((section("usbh_class_info"))) __USED __ALIGNED(1)
|
#define CLASS_INFO_DEFINE __attribute__((section("usbh_class_info"))) __USED __ALIGNED(1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* TODO: This function will be replaced by usbh_control_urb_fill_xiuos.*/
|
||||||
static inline void usbh_control_urb_fill(struct usbh_urb *urb,
|
static inline void usbh_control_urb_fill(struct usbh_urb *urb,
|
||||||
usbh_pipe_t pipe,
|
usbh_pipe_t pipe,
|
||||||
struct usb_setup_packet *setup,
|
struct usb_setup_packet *setup,
|
||||||
|
@ -89,6 +90,7 @@ static inline void usbh_control_urb_fill(struct usbh_urb *urb,
|
||||||
urb->arg = arg;
|
urb->arg = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: This function will be replaced by usbh_bulk_urb_fill_xiuos.*/
|
||||||
static inline void usbh_bulk_urb_fill(struct usbh_urb *urb,
|
static inline void usbh_bulk_urb_fill(struct usbh_urb *urb,
|
||||||
usbh_pipe_t pipe,
|
usbh_pipe_t pipe,
|
||||||
uint8_t *transfer_buffer,
|
uint8_t *transfer_buffer,
|
||||||
|
@ -106,6 +108,7 @@ static inline void usbh_bulk_urb_fill(struct usbh_urb *urb,
|
||||||
urb->arg = arg;
|
urb->arg = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: This function will be replaced by usbh_int_urb_fill_xiuos.*/
|
||||||
static inline void usbh_int_urb_fill(struct usbh_urb *urb,
|
static inline void usbh_int_urb_fill(struct usbh_urb *urb,
|
||||||
usbh_pipe_t pipe,
|
usbh_pipe_t pipe,
|
||||||
uint8_t *transfer_buffer,
|
uint8_t *transfer_buffer,
|
||||||
|
|
Loading…
Reference in New Issue