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
|
config EXAMPLES_CPUHOG
|
||||||
bool "CPU Hog"
|
bool "CPU hog"
|
||||||
default n
|
default n
|
||||||
---help---
|
---help---
|
||||||
Enable the cpuhog example
|
Enable the cpuhog example
|
||||||
|
|
||||||
if EXAMPLES_CPUHOG
|
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
|
endif
|
||||||
|
@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
|
|||||||
|
|
||||||
# Built-in application info
|
# Built-in application info
|
||||||
|
|
||||||
|
ONFIG_EXAMPLES_CPUHOG_PRIORITY ?= 50
|
||||||
|
CONFIG_EXAMPLES_CPUHOG_STACKSIZE ?= 2048
|
||||||
|
|
||||||
APPNAME = cpuhog
|
APPNAME = cpuhog
|
||||||
PRIORITY = SCHED_PRIORITY_LOW
|
PRIORITY = $(CONFIG_EXAMPLES_CPUHOG_PRIORITY)
|
||||||
STACKSIZE = 1024
|
STACKSIZE = $(CONFIG_EXAMPLES_CPUHOG_STACKSIZE)
|
||||||
|
|
||||||
# Common build
|
# Common build
|
||||||
|
|
||||||
|
@ -68,13 +68,16 @@ static const char s[] = "abcdefghijklmnopqrstuvwxyz";
|
|||||||
|
|
||||||
int serialblaster_main(int argc, char *argv[])
|
int serialblaster_main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
#ifdef BUFFERED_IO
|
#ifdef BUFFERED_IO
|
||||||
int ret = fputs(s, stdout);
|
ret = fputs(s, stdout);
|
||||||
#else
|
#else
|
||||||
int ret = write(1, s, sizeof(s)-1);
|
ret = write(1, s, sizeof(s)-1);
|
||||||
#endif
|
#endif
|
||||||
|
UNUSED(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -10,4 +10,13 @@ config EXAMPLES_SERIALRX
|
|||||||
Enable the serial RX example
|
Enable the serial RX example
|
||||||
|
|
||||||
if EXAMPLES_SERIALRX
|
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
|
endif
|
||||||
|
@ -62,9 +62,12 @@ ROOTDEPPATH = --dep-path .
|
|||||||
|
|
||||||
# Built-in application info
|
# Built-in application info
|
||||||
|
|
||||||
|
CONFIG_EXAMPLES_SERIALRX_PRIORITY ?= 50
|
||||||
|
CONFIG_EXAMPLES_SERIALRX_STACKSIZE ?= 2048
|
||||||
|
|
||||||
APPNAME = serialrx
|
APPNAME = serialrx
|
||||||
PRIORITY = SCHED_PRIORITY_LOW
|
PRIORITY = $(CONFIG_EXAMPLES_SERIALRX_PRIORITY)
|
||||||
STACKSIZE = 2048
|
STACKSIZE = $(CONFIG_EXAMPLES_SERIALRX_STACKSIZE)
|
||||||
|
|
||||||
# Common build
|
# Common build
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user