usb: samples: Application calling usb_enable by itself
User app is reponsible for issuing usb_enable and making USB hardware operative. Signed-off-by: Emil Obalski <emil.obalski@nordicsemi.no>
This commit is contained in:
parent
e3619d50e0
commit
d65027d8c0
18 changed files with 142 additions and 13 deletions
|
@ -217,12 +217,15 @@ int usb_set_config(const u8_t *usb_descriptor);
|
|||
int usb_deconfig(void);
|
||||
|
||||
/**
|
||||
* @brief Enable USB for host/device connection
|
||||
* @brief Enable the USB subsystem and associated hardware
|
||||
*
|
||||
* Function to enable USB for host/device connection.
|
||||
* Upon success, the USB module is no longer clock gated in hardware,
|
||||
* it is now capable of transmitting and receiving on the USB bus and
|
||||
* of generating interrupts.
|
||||
* This function initializes the USB core subsystem and enables the
|
||||
* corresponding hardware so that it can begin transmitting and receiving
|
||||
* on the USB bus, as well as generating interrupts.
|
||||
*
|
||||
* Class-specific initialization and registration must be performed by the user
|
||||
* before invoking this, so that any data or events on the bus are processed
|
||||
* correctly by the associated class handling code.
|
||||
*
|
||||
* @return 0 on success, negative errno code on fail.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue