1
0
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:
Koen Zandberg 2019-03-19 20:14:31 +01:00
parent 611d268ef5
commit 4d352fc93f
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -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
*