Commit 8db69196 authored by Tomasz Moń's avatar Tomasz Moń Committed by Carles Cufi
Browse files

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: default avatarTomasz Moń <tomasz.mon@nordicsemi.no>
parent 2010d4d5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5,3 +5,4 @@ add_subdirectory_ifdef(CONFIG_UHC_DRIVER uhc)
add_subdirectory_ifdef(CONFIG_UVB uvb)
add_subdirectory_ifdef(CONFIG_USB_BC12 bc12)
add_subdirectory_ifdef(CONFIG_USB_DEVICE_DRIVER device)
add_subdirectory(common)
+1 −0
Original line number Diff line number Diff line
@@ -8,3 +8,4 @@ source "drivers/usb/udc/Kconfig"
source "drivers/usb/uhc/Kconfig"
source "drivers/usb/uvb/Kconfig"
source "drivers/usb/device/Kconfig"
source "drivers/usb/common/Kconfig"
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: Apache-2.0

add_subdirectory_ifdef(CONFIG_HAS_NRFX nrf_usbd_common)
+4 −0
Original line number Diff line number Diff line
# Copyright (c) 2023 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

rsource "nrf_usbd_common/Kconfig"
+10 −0
Original line number Diff line number Diff line
# Copyright (c) 2021 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0

if(CONFIG_NRF_USBD_COMMON)
  zephyr_library()

  zephyr_include_directories(.)

  zephyr_library_sources(nrf_usbd_common.c)
endif()
Loading