documentation: add some basic documentation accross the headers
Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
parent
e61ed66174
commit
2c0f82a4f0
7 changed files with 171 additions and 20 deletions
|
|
@ -163,13 +163,13 @@ static void device_register(void *descriptors, uint16_t descriptors_len, usbh_de
|
|||
LOG_PRINTF("Device NOT Initialized\n");
|
||||
}
|
||||
|
||||
void usbh_init(const void *drivers_lld[], const usbh_dev_driver_t * const device_drivers[])
|
||||
void usbh_init(const void *low_level_drivers[], const usbh_dev_driver_t * const device_drivers[])
|
||||
{
|
||||
if (!drivers_lld) {
|
||||
if (!low_level_drivers) {
|
||||
return;
|
||||
}
|
||||
|
||||
usbh_data.lld_drivers = (const usbh_driver_t **)drivers_lld;
|
||||
usbh_data.lld_drivers = (const usbh_driver_t **)low_level_drivers;
|
||||
usbh_data.dev_drivers = device_drivers;
|
||||
|
||||
// TODO: init structures
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue