zephyr/drivers/usb/device
Aurelien Jarno 35adb6e2c4 drivers: usb_dc_sam: get the maximum speed from DT as enum
For historical reasons, the maximum speed of the Atmel SAM USB
controller is done by comparing the maximum-speed property string from
the DT using strncmp at runtime.

Now that the DT_ENUM_IDX macro exists, we can use it to get the
maximum-speed property at build time and without string comparison.
Unsupported speed can also be reported at build time.

Note that the default speed in case the optional maximum-speed property
isn't present in the DT is changed from full-speed to high-speed to
match the property description. This is a no-op in practice as this
properties is defined at the soc level.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2021-01-10 18:11:37 -05:00
..
CMakeLists.txt
Kconfig usb: drivers: Fix ZLP handling for Nordic driver. 2020-11-17 18:06:26 +01:00
usb_dc_dw.c
usb_dc_kinetis.c kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
usb_dc_mcux_ehci.c kernel: subsys: lib: drivers: Use k_heap instead of z_mem_pool wrappers 2020-12-07 21:50:14 -05:00
usb_dc_native_posix.c
usb_dc_native_posix_adapt.c
usb_dc_native_posix_adapt.h
usb_dc_nrfx.c drivers: usb_dc_nrfx: Use mem_slab for fifo elements 2021-01-04 16:26:02 +01:00
usb_dc_sam.c drivers: usb_dc_sam: get the maximum speed from DT as enum 2021-01-10 18:11:37 -05:00
usb_dc_sam0.c
usb_dc_stm32.c usb: stm32: added support for USB Device mode on STM32F105xx parts 2021-01-10 12:42:40 -05:00
usb_dw_registers.h