Misc changes to get a clean compilation after incorporating all of Bob Doison's changes
This commit is contained in:
parent
05d21a62e7
commit
019c8ffb88
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user