Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/include/usb/host/hcd.h

    r7711296 r56fd7cf  
    3333 *
    3434 */
     35
    3536#ifndef LIBUSBHOST_HOST_HCD_H
    3637#define LIBUSBHOST_HOST_HCD_H
     
    6162        void (*ep_remove_hook)(hcd_t *, endpoint_t *);
    6263};
    63 /*----------------------------------------------------------------------------*/
     64
    6465/** Initialize hcd_t structure.
    6566 * Initializes device and endpoint managers. Sets data and hook pointer to NULL.
     
    7980        hcd->ep_remove_hook = NULL;
    8081}
    81 /*----------------------------------------------------------------------------*/
     82
    8283/** Check registered endpoints and reset toggle bit if necessary.
    8384 * @param hcd hcd_t structure, non-null.
     
    9293            &hcd->ep_manager, target, (const uint8_t *)setup_data);
    9394}
    94 /*----------------------------------------------------------------------------*/
     95
    9596/** Data retrieve wrapper.
    9697 * @param fun ddf function, non-null.
    9798 * @return pointer cast to hcd_t*.
    9899 */
    99 static inline hcd_t * fun_to_hcd(const ddf_fun_t *fun)
     100static inline hcd_t *fun_to_hcd(ddf_fun_t *fun)
    100101{
    101         assert(fun);
    102         return fun->driver_data;
     102        return ddf_fun_data_get(fun);
    103103}
    104 /*----------------------------------------------------------------------------*/
     104
    105105extern usbhc_iface_t hcd_iface;
    106106
    107107#endif
     108
    108109/**
    109110 * @}
Note: See TracChangeset for help on using the changeset viewer.