documentation: add some basic documentation accross the headers

Signed-off-by: Amir Hammad <amir.hammad@hotmail.com>
This commit is contained in:
Amir Hammad 2016-07-08 23:21:37 +02:00
parent e61ed66174
commit 2c0f82a4f0
7 changed files with 171 additions and 20 deletions

View file

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