ardix/options.cmake

42 lines
1.4 KiB
CMake
Raw Normal View History

2021-07-31 19:39:51 +02:00
# See the end of this file for copyright and license terms.
2021-08-01 22:53:05 +02:00
option(DEBUG "Enable debug features" ON)
set(ARCH "at91sam3x8e" CACHE STRING "Target architecture")
set_property(CACHE ARCH PROPERTY STRINGS
"at91sam3x8e"
)
string(TOUPPER ${ARCH} ARCH_UPPERCASE)
2021-08-01 04:22:09 +02:00
set(CONFIG_NFILE 16 CACHE STRING "Maximum number of open files")
2021-07-31 19:39:51 +02:00
set(CONFIG_STACK_SIZE 2048 CACHE STRING "Stack size in bytes")
2021-08-08 20:49:42 +02:00
set(CONFIG_IOMEM_SIZE 8192 CACHE STRING "I/O memory size in bytes")
2021-08-01 22:53:05 +02:00
set(CONFIG_SCHED_MAXTASK 8 CACHE STRING "Maximum number of running tasks")
set(CONFIG_SCHED_FREQ 1000 CACHE STRING "Task switch frequency in Hz")
2021-07-31 19:39:51 +02:00
set(CONFIG_SERIAL_BAUD 115200 CACHE STRING "Default serial baud rate")
set_property(CACHE CONFIG_SERIAL_BAUD PROPERTY STRINGS
200 2400 4800 9600 19200 38400 57600 115200
)
set(CONFIG_SERIAL_BUFSZ 256 CACHE STRING "Default serial buffer size in bytes")
set(CONFIG_PRINTF_BUFSZ 64 CACHE STRING "Default buffer size for printf() and friends")
option(CONFIG_CHECK_SYSCALL_SOURCE "Prohibit inline syscalls" OFF)
# This file is part of Ardix.
2021-07-31 19:39:51 +02:00
# Copyright (c) 2021 Felix Kopp <owo@fef.moe>.
2020-06-07 16:49:03 +02:00
#
# Ardix is non-violent software: you may only use, redistribute,
# and/or modify it under the terms of the CNPLv6+ as found in
# the LICENSE file in the source code root directory or at
# <https://git.pixie.town/thufie/CNPL>.
2020-06-07 16:49:03 +02:00
#
# Ardix comes with ABSOLUTELY NO WARRANTY, to the extent
# permitted by applicable law. See the CNPLv6+ for details.