Move apps/ieee802154 to apps/wireless/ieee802154
This commit is contained in:
parent
77ae3bf02b
commit
988bb0cf9a
@ -5,8 +5,8 @@
|
|||||||
|
|
||||||
menu "IEEE 802.15.4 applications"
|
menu "IEEE 802.15.4 applications"
|
||||||
|
|
||||||
source "$APPSDIR/ieee802154/common/Kconfig"
|
source "$APPSDIR/wireless/ieee802154/common/Kconfig"
|
||||||
source "$APPSDIR/ieee802154/coord/Kconfig"
|
source "$APPSDIR/wireless/ieee802154/coord/Kconfig"
|
||||||
source "$APPSDIR/ieee802154/i8sak/Kconfig"
|
source "$APPSDIR/wireless/ieee802154/i8sak/Kconfig"
|
||||||
|
|
||||||
endmenu #ieee 802.15.4 apps
|
endmenu #ieee 802.15.4 apps
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/Make.defs
|
# apps/wireless/ieee802154/Make.defs
|
||||||
# Adds selected applications to apps/ build
|
# Adds selected applications to apps/ build
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
|
||||||
@ -34,4 +34,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
include $(wildcard ieee802154/*/Make.defs)
|
include $(wildcard wireless/ieee802154/*/Make.defs)
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/Makefile
|
# apps/wireless/ieee802154/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2014 Gregory Nutt. All rights reserved.
|
||||||
# Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
# Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
11
wireless/ieee802154/common/.gitignore
vendored
Normal file
11
wireless/ieee802154/common/.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/Make.dep
|
||||||
|
/.depend
|
||||||
|
/.built
|
||||||
|
/*.asm
|
||||||
|
/*.obj
|
||||||
|
/*.rel
|
||||||
|
/*.lst
|
||||||
|
/*.sym
|
||||||
|
/*.adb
|
||||||
|
/*.lib
|
||||||
|
/*.src
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/nshlib/Make.defs
|
# apps/wireless/ieee802154/Make.defs
|
||||||
# Adds selected applications to apps/ build
|
# Adds selected applications to apps/ build
|
||||||
#
|
#
|
||||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||||
@ -35,6 +35,6 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
ifeq ($(CONFIG_IEEE802154_COMMON),y)
|
ifeq ($(CONFIG_IEEE802154_COMMON),y)
|
||||||
CONFIGURED_APPS += ieee802154/common
|
CONFIGURED_APPS += wireless/ieee802154/common
|
||||||
endif
|
endif
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/nshlib/Makefile
|
# apps/wireless/ieee802154/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2013 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
@ -56,12 +56,12 @@ SRCS = $(ASRCS) $(CSRCS)
|
|||||||
OBJS = $(AOBJS) $(COBJS)
|
OBJS = $(AOBJS) $(COBJS)
|
||||||
|
|
||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
BIN = ..\..\libapps$(LIBEXT)
|
BIN = ..\..\..\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
BIN = ..\\..\\libapps$(LIBEXT)
|
BIN = ..\\..\\..\\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
BIN = ../../libapps$(LIBEXT)
|
BIN = ../../../libapps$(LIBEXT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_addrparse.c
|
* apps/wireless/ieee802154/common/ieee802154_addrparse.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_addrparse.c
|
* apps/wireless/ieee802154/common/ieee802154_addrparse.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_addrtostr.c
|
* apps/wireless/ieee802154/common/ieee802154_addrtostr.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_getcca.c
|
* apps/wireless/ieee802154/common/ieee802154_getcca.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_getchan.c
|
* apps/wireless/ieee802154/common/ieee802154_getchan.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setchan.c
|
* apps/wireless/ieee802154/common/ieee802154_setchan.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setchan.c
|
* apps/wireless/ieee802154/common/ieee802154_setchan.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setdevmode.c
|
* apps/wireless/ieee802154/common/ieee802154_setdevmode.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_eaddr.c
|
* apps/wireless/ieee802154/common/ieee802154_eaddr.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setpanid.c
|
* apps/wireless/ieee802154/common/ieee802154_setpanid.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setpromisc.c
|
* apps/wireless/ieee802154/common/ieee802154_setpromisc.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/common/ieee802154_setsaddr.c
|
* apps/wireless/ieee802154/common/ieee802154_setsaddr.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2015 Sebastien Lorquet. All rights reserved.
|
||||||
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
* Author: Sebastien Lorquet <sebastien@lorquet.fr>
|
11
wireless/ieee802154/coord/.gitignore
vendored
Normal file
11
wireless/ieee802154/coord/.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/Make.dep
|
||||||
|
/.depend
|
||||||
|
/.built
|
||||||
|
/*.asm
|
||||||
|
/*.obj
|
||||||
|
/*.rel
|
||||||
|
/*.lst
|
||||||
|
/*.sym
|
||||||
|
/*.adb
|
||||||
|
/*.lib
|
||||||
|
/*.src
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/coord/Make.defs
|
# apps/wireless/ieee802154/coord/Make.defs
|
||||||
# Adds selected applications to apps/ build
|
# Adds selected applications to apps/ build
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||||
@ -35,5 +35,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
ifeq ($(CONFIG_IEEE802154_COORD),y)
|
ifeq ($(CONFIG_IEEE802154_COORD),y)
|
||||||
CONFIGURED_APPS += ieee802154/coord
|
CONFIGURED_APPS += wireless/ieee802154/coord
|
||||||
endif
|
endif
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/coord/Makefile
|
# apps/wireless/ieee802154/coord/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||||
# Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
# Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
||||||
@ -62,12 +62,12 @@ ifneq ($(CONFIG_BUILD_KERNEL),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
BIN = ..\..\libapps$(LIBEXT)
|
BIN = ..\..\..\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
BIN = ..\\..\\libapps$(LIBEXT)
|
BIN = ..\\..\\..\\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
BIN = ../../libapps$(LIBEXT)
|
BIN = ../../../libapps$(LIBEXT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* apps/ieee802154/coord/coord_main.c
|
* apps/wireless/ieee802154/coord/coord_main.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||||
* Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
* Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
||||||
@ -138,7 +138,6 @@ static pthread_t g_daemon_pid;
|
|||||||
|
|
||||||
static int coord_beacon(FAR struct ieee_coord_s *coord)
|
static int coord_beacon(FAR struct ieee_coord_s *coord)
|
||||||
{
|
{
|
||||||
FAR struct ieee_frame_s *rx = &coord->rxbuf;
|
|
||||||
printf("Beacon!\n");
|
printf("Beacon!\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
11
wireless/ieee802154/i8sak/.gitignore
vendored
Normal file
11
wireless/ieee802154/i8sak/.gitignore
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
/Make.dep
|
||||||
|
/.depend
|
||||||
|
/.built
|
||||||
|
/*.asm
|
||||||
|
/*.obj
|
||||||
|
/*.rel
|
||||||
|
/*.lst
|
||||||
|
/*.sym
|
||||||
|
/*.adb
|
||||||
|
/*.lib
|
||||||
|
/*.src
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/i8sak/Make.defs
|
# apps/wireless/ieee802154/i8sak/Make.defs
|
||||||
# Adds selected applications to apps/ build
|
# Adds selected applications to apps/ build
|
||||||
#
|
#
|
||||||
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2015 Gregory Nutt. All rights reserved.
|
||||||
@ -35,5 +35,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
ifeq ($(CONFIG_IEEE802154_I8SAK),y)
|
ifeq ($(CONFIG_IEEE802154_I8SAK),y)
|
||||||
CONFIGURED_APPS += ieee802154/i8sak
|
CONFIGURED_APPS += wireless/ieee802154/i8sak
|
||||||
endif
|
endif
|
@ -1,5 +1,5 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# apps/ieee802154/i8sak/Makefile
|
# apps/wireless/ieee802154/i8sak/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||||
# Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
# Copyright (C) 2014-2015 Sebastien Lorquet. All rights reserved.
|
||||||
@ -62,12 +62,12 @@ ifneq ($(CONFIG_BUILD_KERNEL),y)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
ifeq ($(CONFIG_WINDOWS_NATIVE),y)
|
||||||
BIN = ..\..\libapps$(LIBEXT)
|
BIN = ..\..\..\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
ifeq ($(WINTOOL),y)
|
ifeq ($(WINTOOL),y)
|
||||||
BIN = ..\\..\\libapps$(LIBEXT)
|
BIN = ..\\..\\..\\libapps$(LIBEXT)
|
||||||
else
|
else
|
||||||
BIN = ../../libapps$(LIBEXT)
|
BIN = ../../../libapps$(LIBEXT)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* ieee802154/i8sak/i8sak_main.c
|
* apps/wireless/ieee802154/i8sak/i8sak_main.c
|
||||||
* IEEE 802.15.4 Swiss Army Knife
|
* IEEE 802.15.4 Swiss Army Knife
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2014-2015 Gregory Nutt. All rights reserved.
|
||||||
@ -346,7 +346,7 @@ static FAR void *sniff(FAR void *arg)
|
|||||||
display(chan, &g_rxpacket, sa->verbose);
|
display(chan, &g_rxpacket, sa->verbose);
|
||||||
}
|
}
|
||||||
|
|
||||||
return (FAR void*)ret;
|
return (FAR void *)((uintptr_t)ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -540,7 +540,7 @@ int i8_main(int argc, char *argv[])
|
|||||||
|
|
||||||
args.fd = fd;
|
args.fd = fd;
|
||||||
args.verbose = FALSE;
|
args.verbose = FALSE;
|
||||||
ret = (int)sniff(&args);
|
ret = (int)((intptr_t)sniff(&args));
|
||||||
|
|
||||||
ret = ieee802154_setpromisc(fd, FALSE);
|
ret = ieee802154_setpromisc(fd, FALSE);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user