From d0c91546343d545c11c10f7d29d1c06175c1109a Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 4 Oct 2012 17:36:07 +0000 Subject: Change all occurrences of CONFIG_EXAMPLE_ to CONFIG_EXAMPLES_ for consistency; fleshed out a few more Kconfig files git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5211 42af7a65-404d-4744-a932-0658087f49c3 --- apps/examples/telnetd/shell.c | 10 +++++----- apps/examples/telnetd/shell.h | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) (limited to 'apps/examples/telnetd') diff --git a/apps/examples/telnetd/shell.c b/apps/examples/telnetd/shell.c index 3033698c5..3058daa39 100644 --- a/apps/examples/telnetd/shell.c +++ b/apps/examples/telnetd/shell.c @@ -186,13 +186,13 @@ int shell_session(int argc, char *argv[]) static void shell_netinit(void) { struct in_addr addr; -#ifdef CONFIG_EXAMPLE_TELNETD_NOMAC +#ifdef CONFIG_EXAMPLES_TELNETD_NOMAC uint8_t mac[IFHWADDRLEN]; #endif /* Many embedded network interfaces must have a software assigned MAC */ -#ifdef CONFIG_EXAMPLE_TELNETD_NOMAC +#ifdef CONFIG_EXAMPLES_TELNETD_NOMAC mac[0] = 0x00; mac[1] = 0xe0; mac[2] = 0xde; @@ -204,17 +204,17 @@ static void shell_netinit(void) /* Set up our host address */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_TELNETD_IPADDR); + addr.s_addr = HTONL(CONFIG_EXAMPLES_TELNETD_IPADDR); uip_sethostaddr("eth0", &addr); /* Set up the default router address */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_TELNETD_DRIPADDR); + addr.s_addr = HTONL(CONFIG_EXAMPLES_TELNETD_DRIPADDR); uip_setdraddr("eth0", &addr); /* Setup the subnet mask */ - addr.s_addr = HTONL(CONFIG_EXAMPLE_TELNETD_NETMASK); + addr.s_addr = HTONL(CONFIG_EXAMPLES_TELNETD_NETMASK); uip_setnetmask("eth0", &addr); } diff --git a/apps/examples/telnetd/shell.h b/apps/examples/telnetd/shell.h index a5cec32b3..59d51a562 100644 --- a/apps/examples/telnetd/shell.h +++ b/apps/examples/telnetd/shell.h @@ -47,12 +47,12 @@ * Default: SCHED_PRIORITY_DEFAULT * CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE - Stack size allocated for the * Telnet client. Default: 2048 - * CONFIG_EXAMPLE_TELNETD_NOMAC - If the hardware has no MAC address of its + * CONFIG_EXAMPLES_TELNETD_NOMAC - If the hardware has no MAC address of its * own, define this =y to provide a bogus address for testing. - * CONFIG_EXAMPLE_TELNETD_IPADDR - The target IP address. Default 10.0.0.2 - * CONFIG_EXAMPLE_TELNETD_DRIPADDR - The default router address. Default + * CONFIG_EXAMPLES_TELNETD_IPADDR - The target IP address. Default 10.0.0.2 + * CONFIG_EXAMPLES_TELNETD_DRIPADDR - The default router address. Default * 10.0.0.1 - * CONFIG_EXAMPLE_TELNETD_NETMASK - The network mask. Default: 255.255.255.0 + * CONFIG_EXAMPLES_TELNETD_NETMASK - The network mask. Default: 255.255.255.0 */ #ifndef CONFIG_EXAMPLES_TELNETD_DAEMONPRIO @@ -71,14 +71,14 @@ # define CONFIG_EXAMPLES_TELNETD_CLIENTSTACKSIZE 2048 #endif -#ifndef CONFIG_EXAMPLE_TELNETD_IPADDR -# define CONFIG_EXAMPLE_TELNETD_IPADDR 0x0a000002 +#ifndef CONFIG_EXAMPLES_TELNETD_IPADDR +# define CONFIG_EXAMPLES_TELNETD_IPADDR 0x0a000002 #endif -#ifndef CONFIG_EXAMPLE_TELNETD_DRIPADDR -# define CONFIG_EXAMPLE_TELNETD_DRIPADDR 0x0a000002 +#ifndef CONFIG_EXAMPLES_TELNETD_DRIPADDR +# define CONFIG_EXAMPLES_TELNETD_DRIPADDR 0x0a000002 #endif -#ifndef CONFIG_EXAMPLE_TELNETD_NETMASK -# define CONFIG_EXAMPLE_TELNETD_NETMASK 0xffffff00 +#ifndef CONFIG_EXAMPLES_TELNETD_NETMASK +# define CONFIG_EXAMPLES_TELNETD_NETMASK 0xffffff00 #endif /* Other definitions ********************************************************/ -- cgit v1.2.3