mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
iee802154 loopback: Eliminate dependency on CONFIG_NET_LOOPBACK
This commit is contained in:
@@ -37,4 +37,35 @@ config IEEE802154_DEV
|
|||||||
Enables a device driver to expose ieee802.15.4 radio controls
|
Enables a device driver to expose ieee802.15.4 radio controls
|
||||||
to user space as IOCTLs.
|
to user space as IOCTLs.
|
||||||
|
|
||||||
|
config IEEE802154_LOOPBACK
|
||||||
|
bool "IEEE802154 6loWPAN Loopback"
|
||||||
|
default n
|
||||||
|
depends on NET_6LOWPAN && NET_IPv6
|
||||||
|
select ARCH_HAVE_NETDEV_STATISTICS
|
||||||
|
---help---
|
||||||
|
Add support for the IEEE802154 6loWPAN Loopback test device.
|
||||||
|
|
||||||
|
if IEEE802154_LOOPBACK
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "Work queue"
|
||||||
|
default IEEE802154_LOOPBACK_LPWORK if SCHED_LPWORK
|
||||||
|
default IEEE802154_LOOPBACK_HPWORK if !SCHED_LPWORK && SCHED_HPWORK
|
||||||
|
depends on SCHED_WORKQUEUE
|
||||||
|
---help---
|
||||||
|
Work queue support is required to use the loopback driver. If the
|
||||||
|
low priority work queue is available, then it should be used by the
|
||||||
|
loopback driver.
|
||||||
|
|
||||||
|
config IEEE802154_LOOPBACK_HPWORK
|
||||||
|
bool "High priority"
|
||||||
|
depends on SCHED_HPWORK
|
||||||
|
|
||||||
|
config IEEE802154_LOOPBACK_LPWORK
|
||||||
|
bool "Low priority"
|
||||||
|
depends on SCHED_LPWORK
|
||||||
|
|
||||||
|
endchoice # Work queue
|
||||||
|
endif # IEEE802154_LOOPBACK
|
||||||
|
|
||||||
endif # IEEE802154
|
endif # IEEE802154
|
||||||
|
|||||||
@@ -53,6 +53,10 @@ ifeq ($(CONFIG_IEEE802154_DEV),y)
|
|||||||
CSRCS += radio802154_device.c
|
CSRCS += radio802154_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_IEEE802154_LOOPBACK),y)
|
||||||
|
CSRCS += mac802154_loopback.c
|
||||||
|
endif
|
||||||
|
|
||||||
DEPPATH += --dep-path ieee802154
|
DEPPATH += --dep-path ieee802154
|
||||||
VPATH += :ieee802154
|
VPATH += :ieee802154
|
||||||
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)wireless$(DELIM)ieee802154}
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)wireless$(DELIM)ieee802154}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user