Misc changes to get a clean compilation after incorporating all of Bob Doison's changes

This commit is contained in:
Gregory Nutt 2014-04-22 10:38:08 -06:00
parent 05d21a62e7
commit 019c8ffb88
5 changed files with 35 additions and 8 deletions

View File

@ -4,10 +4,19 @@
#
config EXAMPLES_CPUHOG
bool "CPU Hog"
bool "CPU hog"
default n
---help---
Enable the cpuhog example
if EXAMPLES_CPUHOG
config EXAMPLES_CPUHOG_STACKSIZE
int "CPU hog stack size"
default 2048
config EXAMPLES_CPUHOG_PRIORITY
int "CPU hog task priority"
default 50
endif

View File

@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
# Built-in application info
ONFIG_EXAMPLES_CPUHOG_PRIORITY ?= 50
CONFIG_EXAMPLES_CPUHOG_STACKSIZE ?= 2048
APPNAME = cpuhog
PRIORITY = SCHED_PRIORITY_LOW
STACKSIZE = 1024
PRIORITY = $(CONFIG_EXAMPLES_CPUHOG_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_CPUHOG_STACKSIZE)
# Common build

View File

@ -68,13 +68,16 @@ static const char s[] = "abcdefghijklmnopqrstuvwxyz";
int serialblaster_main(int argc, char *argv[])
{
while(1)
int ret;
while (1)
{
#ifdef BUFFERED_IO
int ret = fputs(s, stdout);
ret = fputs(s, stdout);
#else
int ret = write(1, s, sizeof(s)-1);
ret = write(1, s, sizeof(s)-1);
#endif
UNUSED(ret);
}
return 0;

View File

@ -10,4 +10,13 @@ config EXAMPLES_SERIALRX
Enable the serial RX example
if EXAMPLES_SERIALRX
config EXAMPLES_SERIALRX_STACKSIZE
int "Serial Rx stack size"
default 2048
config EXAMPLES_SERIALRX_PRIORITY
int "Serial Rx task priority"
default 50
endif

View File

@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
# Built-in application info
CONFIG_EXAMPLES_SERIALRX_PRIORITY ?= 50
CONFIG_EXAMPLES_SERIALRX_STACKSIZE ?= 2048
APPNAME = serialrx
PRIORITY = SCHED_PRIORITY_LOW
STACKSIZE = 2048
PRIORITY = $(CONFIG_EXAMPLES_SERIALRX_PRIORITY)
STACKSIZE = $(CONFIG_EXAMPLES_SERIALRX_STACKSIZE)
# Common build