mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-28 16:01:18 +01:00
usbdev: Extend with low level initialization functions
This commit is contained in:
parent
611d268ef5
commit
4d352fc93f
@ -355,6 +355,22 @@ typedef struct usbdev_driver {
|
||||
int (*ready)(usbdev_ep_t *ep, size_t len);
|
||||
} usbdev_driver_t;
|
||||
|
||||
/**
|
||||
* @brief Low level USB peripheral driver initialization
|
||||
*
|
||||
* This function prepares all usbdev peripherals available for initialization
|
||||
*/
|
||||
void usbdev_init_lowlevel(void);
|
||||
|
||||
/**
|
||||
* @brief Retrieve usbdev context from the peripheral
|
||||
*
|
||||
* @param num usbdev peripheral number to retrieve
|
||||
*
|
||||
* @returns the usbdev context at index @p num
|
||||
*/
|
||||
usbdev_t *usbdev_get_ctx(unsigned num);
|
||||
|
||||
/**
|
||||
* @brief Initialize the USB peripheral device
|
||||
*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user