nrfx_usbd: Rename to nrf_usbd_common

Rename local usbd copy from nrfx_usbd to nrf_usbd_common and use it in
both USB stacks. Renaming header to nrf_usbd_common.h allows breaking
changes in exposed interface. Mark all doxygen comments as internal
because local usbd copy should not be treated as public interface
because we are under refactoring process that aims to arrive at native
driver and therefore drop nrf_usbd_common in the future.

Use Zephyr constructs directly instead of nrfx glue macros.

No functional changes.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
This commit is contained in:
Tomasz Moń 2023-10-17 13:58:45 +02:00 committed by Carles Cufí
commit 8db6919695
19 changed files with 865 additions and 801 deletions

View file

@ -519,19 +519,6 @@ config NRFX_UARTE3
depends on $(dt_nodelabel_has_compat,uart3,$(DT_COMPAT_NORDIC_NRF_UARTE))
select NRFX_UARTE
config NRFX_USBD
bool "USBD driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBD))
config NRFX_USBD_ISO_IN_ZLP
bool "Send ZLP on ISO IN when not ready"
depends on NRFX_USBD
default y
help
Controls the response of the ISO IN endpoint to an IN token when no
data is ready to be sent. When enabled, ZLP is sent when no data is
ready. When disabled, no response is sent (bus timeout occurs).
config NRFX_USBREG
bool "USBREG driver"
depends on $(dt_has_compat,$(DT_COMPAT_NORDIC_NRF_USBREG))