zephyr/subsys/usb/device_next/usbd_init.h
Tomasz Moń 8d344cc9d8 usb: device_next: Rename usbd_contex to usbd_context
Add the missing "t" to struct usbd_contex. No functional changes.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
2024-06-03 06:43:20 -07:00

26 lines
611 B
C

/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_INCLUDE_USBD_INIT_H
#define ZEPHYR_INCLUDE_USBD_INIT_H
#include <zephyr/usb/usbd.h>
/**
* @brief Initialize all device configurations
*
* Iterate on a list of all configurations and initialize all
* configurations and interfaces. Called only once in sequence per
* usbd_init().
*
* @param[in] uds_ctx Pointer to a device context
*
* @return 0 on success, other values on fail.
*/
int usbd_init_configurations(struct usbd_context *const uds_ctx);
#endif /* ZEPHYR_INCLUDE_USBD_INIT_H */