From 52c7a4e49c491cb479c51f0d2dde2a207f841d10 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 25 Mar 2012 14:51:25 +0000 Subject: [PATCH] Add support for the poweroff on calypso phones git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4520 42af7a65-404d-4744-a932-0658087f49c3 --- configs/compal_e88/include/power.h | 6 ++++++ configs/compal_e88/nsh_highram/appconfig | 21 +++++--------------- configs/compal_e88/nsh_highram/defconfig | 8 ++++++-- configs/compal_e99/include/power.h | 6 ++++++ configs/compal_e99/nsh_compalram/appconfig | 23 ++++++---------------- configs/compal_e99/nsh_compalram/defconfig | 10 +++++++--- configs/compal_e99/nsh_highram/appconfig | 8 +++++--- configs/compal_e99/nsh_highram/defconfig | 14 ++++++------- 8 files changed, 48 insertions(+), 48 deletions(-) create mode 100644 configs/compal_e88/include/power.h create mode 100644 configs/compal_e99/include/power.h diff --git a/configs/compal_e88/include/power.h b/configs/compal_e88/include/power.h new file mode 100644 index 00000000000..9645fefd19c --- /dev/null +++ b/configs/compal_e88/include/power.h @@ -0,0 +1,6 @@ +/************************************************************************ + * arch/power.h + * + * Supposed to be empty + * + ************************************************************************/ diff --git a/configs/compal_e88/nsh_highram/appconfig b/configs/compal_e88/nsh_highram/appconfig index cfa41984b36..dd189fa1f7f 100644 --- a/configs/compal_e88/nsh_highram/appconfig +++ b/configs/compal_e88/nsh_highram/appconfig @@ -1,5 +1,5 @@ ############################################################################ -# configs/c5471evm/nsh/appconfig +# configs/compal_e88/nsh_highram/appconfig # # Copyright (C) 2011 Gregory Nutt. All rights reserved. # Author: Gregory Nutt @@ -33,22 +33,11 @@ # ############################################################################ -# Path to example in apps/examples containing the user_start entry point - +# NSH shell CONFIGURED_APPS += examples/nsh - -# NSH library CONFIGURED_APPS += system/readline CONFIGURED_APPS += nshlib -# Networking support - -ifeq ($(CONFIG_NET),y) -CONFIGURED_APPS += netutils/uiplib -CONFIGURED_APPS += netutils/dhcpc -CONFIGURED_APPS += netutils/resolv -CONFIGURED_APPS += netutils/tftpc -CONFIGURED_APPS += netutils/webclient -endif - -CONFIGURED_APPS += examples/hello examples/poweroff +# Path to example in apps/examples +CONFIGURED_APPS += examples/hello +CONFIGURED_APPS += vsn/poweroff diff --git a/configs/compal_e88/nsh_highram/defconfig b/configs/compal_e88/nsh_highram/defconfig index d76adc4bcb7..86d5478424a 100644 --- a/configs/compal_e88/nsh_highram/defconfig +++ b/configs/compal_e88/nsh_highram/defconfig @@ -1,8 +1,8 @@ ############################################################################ # configs/c5471evm/nsh/defconfig # -# Copyright (C) 2007-2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -428,6 +428,10 @@ CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1) CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0) CONFIG_NSH_BUILTIN_APPS=y +# +# Settings for examples/hello +CONFIG_EXAMPLES_HELLO_BUILTIN=y + # # Settings for examples/wget # CONFIG_EXAMPLE_WGET_URL - The URL of the file to get diff --git a/configs/compal_e99/include/power.h b/configs/compal_e99/include/power.h new file mode 100644 index 00000000000..9645fefd19c --- /dev/null +++ b/configs/compal_e99/include/power.h @@ -0,0 +1,6 @@ +/************************************************************************ + * arch/power.h + * + * Supposed to be empty + * + ************************************************************************/ diff --git a/configs/compal_e99/nsh_compalram/appconfig b/configs/compal_e99/nsh_compalram/appconfig index cfa41984b36..b94469ee004 100644 --- a/configs/compal_e99/nsh_compalram/appconfig +++ b/configs/compal_e99/nsh_compalram/appconfig @@ -1,5 +1,5 @@ ############################################################################ -# configs/c5471evm/nsh/appconfig +# configs/compal_e99/nsh_compalram/appconfig # # Copyright (C) 2011 Gregory Nutt. All rights reserved. # Author: Gregory Nutt @@ -33,22 +33,11 @@ # ############################################################################ -# Path to example in apps/examples containing the user_start entry point - -CONFIGURED_APPS += examples/nsh - -# NSH library +# NSH shell CONFIGURED_APPS += system/readline CONFIGURED_APPS += nshlib +CONFIGURED_APPS += examples/nsh -# Networking support - -ifeq ($(CONFIG_NET),y) -CONFIGURED_APPS += netutils/uiplib -CONFIGURED_APPS += netutils/dhcpc -CONFIGURED_APPS += netutils/resolv -CONFIGURED_APPS += netutils/tftpc -CONFIGURED_APPS += netutils/webclient -endif - -CONFIGURED_APPS += examples/hello examples/poweroff +# Path to example in apps/examples +CONFIGURED_APPS += examples/hello +CONFIGURED_APPS += vsn/poweroff diff --git a/configs/compal_e99/nsh_compalram/defconfig b/configs/compal_e99/nsh_compalram/defconfig index 4733962d9db..2db2c6248ba 100644 --- a/configs/compal_e99/nsh_compalram/defconfig +++ b/configs/compal_e99/nsh_compalram/defconfig @@ -1,8 +1,8 @@ ############################################################################ -# configs/c5471evm/nsh/defconfig +# configs/compal_e99/nsh_compalram/defconfig # -# Copyright (C) 2007-2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -396,6 +396,10 @@ CONFIG_NET_BROADCAST=n CONFIG_NET_DHCP_LIGHT=n CONFIG_NET_RESOLV_ENTRIES=4 +# +# Settings for examples/hello +CONFIG_EXAMPLES_HELLO_BUILTIN=y + # # Settings for examples/uip CONFIG_EXAMPLE_UIP_NOMAC=y diff --git a/configs/compal_e99/nsh_highram/appconfig b/configs/compal_e99/nsh_highram/appconfig index 9072a87fedf..7baad2e2584 100644 --- a/configs/compal_e99/nsh_highram/appconfig +++ b/configs/compal_e99/nsh_highram/appconfig @@ -1,5 +1,5 @@ ############################################################################ -# configs/c5471evm/nsh/appconfig +# configs/compal_e99/nsh_highram/appconfig # # Copyright (C) 2011 Gregory Nutt. All rights reserved. # Author: Gregory Nutt @@ -34,9 +34,11 @@ ############################################################################ # NSH shell +CONFIGURED_APPS += examples/nsh CONFIGURED_APPS += system/readline CONFIGURED_APPS += nshlib -CONFIGURED_APPS += examples/nsh + # Path to example in apps/examples -CONFIGURED_APPS += examples/ostest +CONFIGURED_APPS += examples/hello +CONFIGURED_APPS += vsn/poweroff diff --git a/configs/compal_e99/nsh_highram/defconfig b/configs/compal_e99/nsh_highram/defconfig index 94316e445ff..5f23bc2a3ea 100644 --- a/configs/compal_e99/nsh_highram/defconfig +++ b/configs/compal_e99/nsh_highram/defconfig @@ -1,8 +1,8 @@ ############################################################################ -# configs/c5471evm/nsh/defconfig +# configs/compal_e99/nsh_highram/defconfig # -# Copyright (C) 2007-2011 Gregory Nutt. All rights reserved. -# Author: Gregory Nutt +# Copyright (C) 2007-2012 Gregory Nutt. All rights reserved. +# Author: Gregory Nutt # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -428,6 +428,10 @@ CONFIG_NSH_DRIPADDR=(10<<24|0<<16|0<<8|1) CONFIG_NSH_NETMASK=(255<<24|255<<16|255<<8|0) CONFIG_NSH_BUILTIN_APPS=y +# +# Settings for examples/hello +CONFIG_EXAMPLES_HELLO_BUILTIN=y + # # Settings for examples/wget # CONFIG_EXAMPLE_WGET_URL - The URL of the file to get @@ -473,7 +477,3 @@ CONFIG_PTHREAD_STACK_MIN=256 CONFIG_PTHREAD_STACK_DEFAULT=4096 CONFIG_HEAP_BASE= CONFIG_HEAP_SIZE= - -# Application configuration -CONFIG_EXAMPLES_OSTEST_BUILTIN=y -CONFIG_APPS_DIR="../apps"