mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +08:00
Move drivers/ieee802154 to drivers/wireless/ieee802154; rename include/nuttx/net ieee802154 to 6lowpan.h
This commit is contained in:
+1
-1
Submodule configs updated: 3f48fbde14...45657b1172
@@ -373,17 +373,6 @@ if IOEXPANDER
|
|||||||
source drivers/ioexpander/Kconfig
|
source drivers/ioexpander/Kconfig
|
||||||
endif # IOEXPANDER
|
endif # IOEXPANDER
|
||||||
|
|
||||||
menuconfig IEEE802154
|
|
||||||
bool "IEEE 802.15.4 Device Support"
|
|
||||||
default n
|
|
||||||
depends on EXPERIMENTAL
|
|
||||||
---help---
|
|
||||||
This directory holds implementations of IEEE802.15.4 device drivers.
|
|
||||||
|
|
||||||
if IEEE802154
|
|
||||||
source drivers/ieee802154/Kconfig
|
|
||||||
endif
|
|
||||||
|
|
||||||
menuconfig LCD
|
menuconfig LCD
|
||||||
bool "LCD Driver Support"
|
bool "LCD Driver Support"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ include audio$(DELIM)Make.defs
|
|||||||
include bch$(DELIM)Make.defs
|
include bch$(DELIM)Make.defs
|
||||||
include i2c$(DELIM)Make.defs
|
include i2c$(DELIM)Make.defs
|
||||||
include input$(DELIM)Make.defs
|
include input$(DELIM)Make.defs
|
||||||
include ieee802154$(DELIM)Make.defs
|
|
||||||
include ioexpander$(DELIM)Make.defs
|
include ioexpander$(DELIM)Make.defs
|
||||||
include lcd$(DELIM)Make.defs
|
include lcd$(DELIM)Make.defs
|
||||||
include leds$(DELIM)Make.defs
|
include leds$(DELIM)Make.defs
|
||||||
|
|||||||
@@ -15,6 +15,17 @@ menuconfig WL_CC3000
|
|||||||
|
|
||||||
source drivers/wireless/cc3000/Kconfig
|
source drivers/wireless/cc3000/Kconfig
|
||||||
|
|
||||||
|
menuconfig IEEE802154
|
||||||
|
bool "IEEE 802.15.4 Device Support"
|
||||||
|
default n
|
||||||
|
depends on EXPERIMENTAL
|
||||||
|
---help---
|
||||||
|
This directory holds implementations of IEEE802.15.4 device drivers.
|
||||||
|
|
||||||
|
if IEEE802154
|
||||||
|
source drivers/wireless/ieee802154/Kconfig
|
||||||
|
endif
|
||||||
|
|
||||||
config WL_NRF24L01
|
config WL_NRF24L01
|
||||||
bool "nRF24l01+ transceiver support"
|
bool "nRF24l01+ transceiver support"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -35,6 +35,12 @@
|
|||||||
|
|
||||||
ifeq ($(CONFIG_WIRELESS),y)
|
ifeq ($(CONFIG_WIRELESS),y)
|
||||||
|
|
||||||
|
# Include IEEE 802.15.4 support
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_IEEE802154),y)
|
||||||
|
include wireless$(DELIM)ieee802154$(DELIM)Make.defs
|
||||||
|
endif
|
||||||
|
|
||||||
# Include wireless drivers
|
# Include wireless drivers
|
||||||
|
|
||||||
ifeq ($(CONFIG_WL_CC1101),y)
|
ifeq ($(CONFIG_WL_CC1101),y)
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ ifeq ($(CONFIG_IEEE802154),y)
|
|||||||
|
|
||||||
# Include IEEE 802.15.4 build support
|
# Include IEEE 802.15.4 build support
|
||||||
|
|
||||||
DEPPATH += --dep-path ieee802154
|
DEPPATH += --dep-path wireless$(DELIM)ieee802154
|
||||||
VPATH += :ieee802154
|
VPATH += :wireless$(DELIM)ieee802154
|
||||||
|
CFLAGS += ${shell $(INCDIR) $(INCDIROPT) "$(CC)" $(TOPDIR)$(DELIM)drivers$(DELIM)wireless$(DELIM)ieee802154}
|
||||||
|
|
||||||
endif # CONFIG_IEEE802154
|
endif # CONFIG_IEEE802154
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* include/nuttx/net/ieee802154.h
|
* include/nuttx/net/6lowpan.h
|
||||||
* Definitions for use with PF_IEEE802154 sockets
|
* Definitions for use with PF_IEEE802154 sockets
|
||||||
*
|
*
|
||||||
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2016 Gregory Nutt. All rights reserved.
|
||||||
@@ -37,8 +37,8 @@
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __INCLUDE_NUTTX_NET_IEEE802154_H
|
#ifndef __INCLUDE_NUTTX_NET_6LOWPAN_H
|
||||||
#define __INCLUDE_NUTTX_NET_IEEE802154_H
|
#define __INCLUDE_NUTTX_NET_6LOWPAN_H
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
@@ -60,23 +60,4 @@
|
|||||||
* Public Function Prototypes
|
* Public Function Prototypes
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/****************************************************************************
|
#endif /* __INCLUDE_NUTTX_NET_6LOWPAN_H */
|
||||||
* Name: ieee802154_input
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* This function provides the interface between IEEE 802.15.4 device driver
|
|
||||||
* and IEEE 802.15.4 socket logic. All IPv6 frames that are received should
|
|
||||||
* be provided to ieee802154_input().
|
|
||||||
*
|
|
||||||
* Input Parameters:
|
|
||||||
* dev - The device providing the IPv6 frame
|
|
||||||
*
|
|
||||||
* Returned Value:
|
|
||||||
* OK The packet has been processed and can be deleted.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
struct net_driver_s; /* Forward reference */
|
|
||||||
int ieee802154_input(FAR struct net_driver_s *dev);
|
|
||||||
|
|
||||||
#endif /* __INCLUDE_NUTTX_NET_IEEE802154_H */
|
|
||||||
@@ -104,7 +104,7 @@ void netdev_ipv4_rxnotify(in_addr_t ripaddr)
|
|||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Notify the device driver that forwards the IPv6 address that the
|
* Notify the device driver that forwards the IPv6 address that the
|
||||||
* application waits for RX data.
|
* application waits for RX data.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* lipaddr - The local board IPv6 address of the socket
|
* lipaddr - The local board IPv6 address of the socket
|
||||||
|
|||||||
Reference in New Issue
Block a user