Skip to content

Commit

Permalink
drivers/usbdev_synopsys_dwc2: set USBDEV_SET_ADDR_AFTER_STATUS
Browse files Browse the repository at this point in the history
DWC2 core requires that the device address has to be set directly after SETUP stage and not after the associated STATUS stage.
  • Loading branch information
gschorcht committed Apr 16, 2023
1 parent e46fa4a commit 88cabba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/include/usbdev_synopsys_dwc2.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
extern "C" {
#endif

/**
* @brief USB OTG peripheral requirement for setting the device address
*
* The address in the USB device has to be directly after the SETUP
* stage on receipt of the `SET ADDRESS Request`.
*/
#define USBDEV_CPU_SET_ADDR_AFTER_STATUS 0

/**
* @brief USB OTG peripheral type.
*
Expand Down

0 comments on commit 88cabba

Please sign in to comment.