zephyr/drivers/usb/device
Paweł Zadrożniak e01662d387 drivers: usb: nordic: Fix for startup with USB cable attached.
Fixes bug introduced in #14875.
USBDETECTED event is be generated on cable attachment and
when cable is already attached during reset, but not when
the peripheral is re-initialized. When USB-enabled bootloader
is used, target application will not receive this event
and it needs to be generated again. This commit implements
a check against driver being enabled multiple times in case
of application without bootlader starting with cable attached
(both "fake" and "real" events are generated). Such dirty
trick allows bootloader to leave the peripheral in any state
before jumping to target application.

Fixes #15073

Signed-off-by: Paweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
2019-04-02 11:16:27 -04:00
..
CMakeLists.txt usb: driver: Add native_posix USB driver 2019-02-01 19:03:12 -05:00
Kconfig drivers: usb: nordic: implement remote wakeup 2019-02-27 10:37:16 +01:00
usb_dc_dw.c all: Update unsigend 'U' suffix due to multiplication 2019-03-28 17:15:58 -05:00
usb_dc_kinetis.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_native_posix_adapt.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_native_posix_adapt.h usb: native_posix: Implement other then Control transfers 2019-02-01 19:03:12 -05:00
usb_dc_native_posix.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_nrfx.c drivers: usb: nordic: Fix for startup with USB cable attached. 2019-04-02 11:16:27 -04:00
usb_dc_sam0.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_sam.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dc_stm32.c all: Add 'U' suffix when using unsigned variables 2019-03-28 17:15:58 -05:00
usb_dw_registers.h drivers: Remove board.h include 2018-11-01 13:21:11 -04:00