Commit 0a3f6f0a authored by Paweł Zadrożniak's avatar Paweł Zadrożniak Committed by Carles Cufi
Browse files

ext: hal: nordic: Add kconfig / CMakeLists entries for nrfx_usbd



Adds entries for USBD driver (nrfx_usbd) for kconfig / CMake.
Updates nrf52840 configuration header to enable USBD.

Signed-off-by: default avatarPaweł Zadrożniak <pawel.zadrozniak@nordicsemi.no>
parent 7f92deb6
Loading
Loading
Loading
Loading
+18 −16
Original line number Diff line number Diff line
@@ -29,10 +29,12 @@ if(CONFIG_HAS_NRFX)
  zephyr_sources_ifdef(CONFIG_NRFX_SPI     nrfx/drivers/src/nrfx_spi.c)
  zephyr_sources_ifdef(CONFIG_NRFX_SPIM    nrfx/drivers/src/nrfx_spim.c)
  zephyr_sources_ifdef(CONFIG_NRFX_SPIS    nrfx/drivers/src/nrfx_spis.c)
  zephyr_sources_ifdef(CONFIG_NRFX_SYSTICK nrfx/drivers/src/nrfx_systick.c)
  zephyr_sources_ifdef(CONFIG_NRFX_TIMER   nrfx/drivers/src/nrfx_timer.c)
  zephyr_sources_ifdef(CONFIG_NRFX_TWI     nrfx/drivers/src/nrfx_twi.c)
  zephyr_sources_ifdef(CONFIG_NRFX_TWIM    nrfx/drivers/src/nrfx_twim.c)
  zephyr_sources_ifdef(CONFIG_NRFX_UART    nrfx/drivers/src/nrfx_uart.c)
  zephyr_sources_ifdef(CONFIG_NRFX_UARTE   nrfx/drivers/src/nrfx_uarte.c)
  zephyr_sources_ifdef(CONFIG_NRFX_USBD    nrfx/drivers/src/nrfx_usbd.c)
  zephyr_sources_ifdef(CONFIG_NRFX_WDT     nrfx/drivers/src/nrfx_wdt.c)
endif()
+7 −0
Original line number Diff line number Diff line
@@ -35,6 +35,9 @@ config NRFX_SPIM
config NRFX_SPIS
	bool

config NRFX_SYSTICK
	bool

config NRFX_TIMER
	bool

@@ -64,5 +67,9 @@ config NRFX_TWI
config NRFX_TWIM
	bool

config NRFX_USBD
	bool
	select NRFX_SYSTICK

config NRFX_WDT
	bool
+5 −6
Original line number Diff line number Diff line
@@ -2233,10 +2233,9 @@
// </e>

// <q> NRFX_SYSTICK_ENABLED  - nrfx_systick - ARM(R) SysTick driver


#ifndef NRFX_SYSTICK_ENABLED
#define NRFX_SYSTICK_ENABLED 0
//==========================================================
#ifdef CONFIG_NRFX_SYSTICK
#define NRFX_SYSTICK_ENABLED 1
#endif

// <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
@@ -2976,8 +2975,8 @@

// <e> NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver
//==========================================================
#ifndef NRFX_USBD_ENABLED
#define NRFX_USBD_ENABLED 0
#ifdef CONFIG_NRFX_USBD
#define NRFX_USBD_ENABLED 1
#endif
// <o> NRFX_USBD_CONFIG_IRQ_PRIORITY  - Interrupt priority