diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-03-24 09:30:41 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-03-24 09:30:41 -0600 |
commit | f22539ff3eeb87c499ad061f5fbb3a7792676d60 (patch) | |
tree | 2610e78dbc39fbb747c9fadf7ae2559faa97a997 /apps/examples/igmp | |
parent | 73f2ac69c9251b5bc8e850c0f89643047ba13086 (diff) | |
download | nuttx-f22539ff3eeb87c499ad061f5fbb3a7792676d60.tar.gz nuttx-f22539ff3eeb87c499ad061f5fbb3a7792676d60.tar.bz2 nuttx-f22539ff3eeb87c499ad061f5fbb3a7792676d60.zip |
apps/examples/igmp: Fill out empty Kconfig file; can now be built as an NSH builtin function. From Manuel Stühn
Diffstat (limited to 'apps/examples/igmp')
-rw-r--r-- | apps/examples/igmp/Kconfig | 17 | ||||
-rw-r--r-- | apps/examples/igmp/Makefile | 11 |
2 files changed, 28 insertions, 0 deletions
diff --git a/apps/examples/igmp/Kconfig b/apps/examples/igmp/Kconfig index d94121376..d2122d4d2 100644 --- a/apps/examples/igmp/Kconfig +++ b/apps/examples/igmp/Kconfig @@ -10,4 +10,21 @@ config EXAMPLES_IGMP Enable the IGMP example if EXAMPLES_IGMP + + config EXAMPLES_IGMP_IPADDR + hex "Target IP address" + default 0xc0a80a10 + + config EXAMPLES_IGMP_DRIPADDR + hex "Default Router IP address (Gateway)" + default 0xc0a80aFA + + config EXAMPLES_IGMP_GRPADDR + hex "Group address" + default 0xE0000181 + + config EXAMPLES_IGMP_NETMASK + hex "Network Mask" + default 0xffffff00 + endif diff --git a/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile index 3715e1d34..8cfe69558 100644 --- a/apps/examples/igmp/Makefile +++ b/apps/examples/igmp/Makefile @@ -37,6 +37,10 @@ -include $(TOPDIR)/Make.defs include $(APPDIR)/Make.defs +APPNAME = igmp +PRIORITY = SCHED_PRIORITY_DEFAULT +STACKSIZE = 1024 + # IGMP Networking Example ASRCS = @@ -77,7 +81,14 @@ $(COBJS): %$(OBJEXT): %.c $(call ARCHIVE, $(BIN), $(OBJS)) @touch .built +ifeq ($(CONFIG_NSH_BUILTIN_APPS),y) +$(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat: $(DEPCONFIG) Makefile + $(call REGISTER,$(APPNAME),$(PRIORITY),$(STACKSIZE),$(APPNAME)_main) + +context: $(BUILTIN_REGISTRY)$(DELIM)$(APPNAME)_main.bdat +else context: +endif .depend: Makefile $(SRCS) @$(MKDEP) $(ROOTDEPPATH) "$(CC)" -- $(CFLAGS) -- $(SRCS) >Make.dep |