2015-05-21 00:40:39 +08:00
|
|
|
# Kconfig - nanokernel configuration options
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
2015-10-07 00:00:37 +08:00
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2015-05-21 00:40:39 +08:00
|
|
|
#
|
|
|
|
|
2015-03-12 02:44:14 +08:00
|
|
|
menu "Nanokernel Options"
|
|
|
|
|
2015-05-10 00:05:47 +08:00
|
|
|
config BOOT_BANNER
|
|
|
|
bool
|
|
|
|
prompt "Boot banner"
|
|
|
|
default n
|
|
|
|
select PRINTK
|
|
|
|
help
|
|
|
|
This option outputs a banner to the console device during boot up. It
|
|
|
|
also embeds a date & time stamp in the kernel and in each USAP image.
|
2015-03-12 02:44:14 +08:00
|
|
|
|
2015-05-10 00:05:47 +08:00
|
|
|
config INT_LATENCY_BENCHMARK
|
|
|
|
bool
|
|
|
|
prompt "Interrupt latency metrics [EXPERIMENTAL]"
|
|
|
|
default n
|
2015-09-29 22:08:58 +08:00
|
|
|
depends on ARCH="x86"
|
2015-05-10 00:05:47 +08:00
|
|
|
help
|
|
|
|
This option enables the tracking of interrupt latency metrics;
|
2015-07-18 01:51:37 +08:00
|
|
|
the exact set of metrics being tracked is platform-dependent.
|
2015-05-10 00:05:47 +08:00
|
|
|
Tracking begins when intLatencyInit() is invoked by an application.
|
|
|
|
The metrics are displayed (and a new sampling interval is started)
|
|
|
|
each time intLatencyShow() is called thereafter.
|
|
|
|
|
|
|
|
config MAIN_STACK_SIZE
|
|
|
|
int
|
|
|
|
prompt "Background task stack size (in bytes)"
|
|
|
|
default 1024
|
|
|
|
help
|
|
|
|
This option specifies the size of the stack used by the kernel's
|
|
|
|
background task, whose entry point is main().
|
|
|
|
|
|
|
|
config ISR_STACK_SIZE
|
|
|
|
int
|
|
|
|
prompt "ISR and initialization stack size (in bytes)"
|
|
|
|
default 2048
|
|
|
|
help
|
|
|
|
This option specifies the size of the stack used by interrupt
|
|
|
|
service routines (ISRs), and during nanokernel initialization.
|
|
|
|
|
2015-08-20 23:04:01 +08:00
|
|
|
config THREAD_CUSTOM_DATA
|
2015-05-10 00:05:47 +08:00
|
|
|
bool
|
|
|
|
prompt "Task and fiber custom data"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
This option allows each task and fiber to store 32 bits of custom data,
|
2015-08-20 23:04:01 +08:00
|
|
|
which can be accessed using the sys_thread_custom_data_xxx() APIs.
|
2015-06-15 04:06:28 +08:00
|
|
|
|
2015-06-15 06:26:23 +08:00
|
|
|
config NANO_TIMEOUTS
|
|
|
|
bool
|
|
|
|
prompt "Enable timeouts on nanokernel objects"
|
|
|
|
default n
|
|
|
|
depends on SYS_CLOCK_EXISTS
|
|
|
|
help
|
|
|
|
Allow fibers and tasks to wait on nanokernel objects with a timeout, by
|
|
|
|
enabling the nano_xxx_wait_timeout APIs, and allow fibers to sleep for a
|
|
|
|
period of time, by enabling the fiber_sleep API.
|
|
|
|
|
2015-06-15 04:06:28 +08:00
|
|
|
config NANO_TIMERS
|
|
|
|
bool
|
|
|
|
prompt "Enable nanokernel timers"
|
2015-06-15 11:00:22 +08:00
|
|
|
default y if NANOKERNEL
|
|
|
|
default n
|
|
|
|
depends on SYS_CLOCK_EXISTS
|
2015-06-15 04:06:28 +08:00
|
|
|
help
|
|
|
|
Allow fibers and tasks to wait on nanokernel timers, which can be
|
|
|
|
accessed using the nano_timer_xxx() APIs.
|
2015-03-12 02:44:14 +08:00
|
|
|
endmenu
|