prj.conf 2.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
# Gemeral configuration
CONFIG_PRINTK=y
CONFIG_SHELL=y
CONFIG_LOG=y
CONFIG_NET_LOG=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_KERNEL_SHELL=y
CONFIG_THREAD_MONITOR=y
CONFIG_THREAD_NAME=y
CONFIG_DEVICE_SHELL=y
CONFIG_POSIX_CLOCK=y
CONFIG_DATE_SHELL=y
CONFIG_NET_SHELL=y
15
CONFIG_GPIO_SHELL=y
16 17
CONFIG_FLASH_SHELL=y
CONFIG_FLASH_MAP_SHELL=y
18 19 20 21 22 23
CONFIG_SHELL_CMDS_SELECT=y
CONFIG_SHELL_BACKEND_SERIAL=y
CONFIG_SHELL_BACKEND_TELNET=y
CONFIG_THREAD_RUNTIME_STATS=y
CONFIG_THREAD_RUNTIME_STATS_USE_TIMING_FUNCTIONS=y

24 25 26 27 28 29 30 31
# Flash configuration
CONFIG_FLASH=y
CONFIG_FLASH_MAP=y
CONFIG_FLASH_PAGE_LAYOUT=y

CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_LITTLEFS=y

32
# Kestrel specific configuration
33
CONFIG_NET_TC_THREAD_PREEMPTIVE=y
34 35 36 37 38 39
CONFIG_NET_TC_TX_COUNT=1

# The Kestrel CPU is quite slow, and it's easy to starve the CivetWeb process
# during file uploads if the TCP queues have a higher preempt priority than
# the CivetWeb process (by default, this is true)...
CONFIG_NUM_PREEMPT_PRIORITIES=1
40 41 42 43 44 45

# Kernel options
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=100663296

# Logging settings
46
#CONFIG_LOG_MODE_MINIMAL=y
47
CONFIG_LOG_MODE_IMMEDIATE=y
48
#CONFIG_LOG_MODE_DEFERRED=y
49 50
CONFIG_LOG_RUNTIME_FILTERING=y
CONFIG_LOG_BUFFER_SIZE=1024
51
CONFIG_LOG_PRINTK=n
52 53 54
CONFIG_LOG_PROCESS_TRIGGER_THRESHOLD=0

# POSIX options
55 56
CONFIG_POSIX_MAX_FDS=32
CONFIG_MAX_PTHREAD_COUNT=64
57 58 59 60 61
CONFIG_POSIX_API=y
CONFIG_PTHREAD_IPC=y
CONFIG_POSIX_MQUEUE=y

# mbedtls
62 63
CONFIG_MBEDTLS=y
CONFIG_MBEDTLS_BUILTIN=y
64 65 66 67 68

# Civet server
CONFIG_CIVETWEB=y
CONFIG_JSON_LIBRARY=y
CONFIG_NET_TCP_ISN_RFC6528=n
69 70 71 72 73 74 75 76

# Networking config
CONFIG_NETWORKING=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=y
CONFIG_NET_TCP=y
CONFIG_NET_UDP=y
CONFIG_NET_SOCKETS=y
77 78
CONFIG_NET_MAX_CONN=32
CONFIG_NET_MAX_CONTEXTS=32
79 80 81 82
CONFIG_NET_STATISTICS=y
CONFIG_NET_CONNECTION_MANAGER=y
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
83
CONFIG_NET_TCP_BACKLOG_SIZE=16
84 85

# Network buffers
86 87
CONFIG_NET_PKT_RX_COUNT=4096
CONFIG_NET_PKT_TX_COUNT=4096
88 89 90
CONFIG_NET_BUF_RX_COUNT=32768
CONFIG_NET_BUF_TX_COUNT=32768
CONFIG_NET_BUF_DATA_SIZE=128
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
CONFIG_NET_CONTEXT_NET_PKT_POOL=y
CONFIG_NET_BUF_POOL_USAGE=y

# IP address options
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=4

# Network address config
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y
CONFIG_NET_CONFIG_NEED_IPV6=y
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2"
CONFIG_NET_DHCPV4=y

# This is needed so that the sample app can respond to queries
# as fast as possible.
CONFIG_NET_TCP_TIME_WAIT_DELAY=0