2017-11-28 14:11:46 +02:00
|
|
|
CONFIG_BUILD_OUTPUT_BIN=y
|
2022-03-07 16:43:29 +11:00
|
|
|
CONFIG_BUILD_OUTPUT_HEX=y
|
2017-04-19 13:27:51 +03:00
|
|
|
CONFIG_REBOOT=y
|
2017-03-27 17:06:20 +03:00
|
|
|
|
2016-07-22 20:19:17 +03:00
|
|
|
CONFIG_STDOUT_CONSOLE=y
|
|
|
|
|
CONFIG_CONSOLE_HANDLER=y
|
2016-10-26 17:49:20 +03:00
|
|
|
CONFIG_UART_CONSOLE_DEBUG_SERVER_HOOKS=y
|
2017-10-07 17:09:53 +03:00
|
|
|
|
2018-06-27 15:33:59 +10:00
|
|
|
CONFIG_CONSOLE_SUBSYS=y
|
2017-10-07 17:09:53 +03:00
|
|
|
CONFIG_CONSOLE_GETCHAR=y
|
2024-08-19 12:15:50 +10:00
|
|
|
CONFIG_CONSOLE_GETCHAR_BUFSIZE=258
|
2017-10-07 17:09:53 +03:00
|
|
|
CONFIG_CONSOLE_PUTCHAR_BUFSIZE=128
|
|
|
|
|
|
2016-07-22 20:19:17 +03:00
|
|
|
CONFIG_NEWLIB_LIBC=y
|
2020-05-02 11:38:58 -05:00
|
|
|
CONFIG_FPU=y
|
2017-12-15 18:17:00 +02:00
|
|
|
CONFIG_MAIN_STACK_SIZE=4736
|
2021-04-25 22:28:55 +10:00
|
|
|
CONFIG_POLL=y
|
2017-01-21 17:16:35 +03:00
|
|
|
|
zephyr: Allow using devicetree node labels to construct machine objects.
Zephyr v3.7.0 added a new feature to allow getting devices by their
devicetree node labels. Use this feature in the MicroPython Zephyr port
to simplify constructing machine module objects, including Pin, SPI,
I2C, and UART. It's still possible to use the more verbose device names
(e.g., gpio@400ff040, i2c@40066000, spi@4002c000), but now we can also
use their devicetree node labels (e.g., gpiob, i2c0, spi0).
Node labels aren't standardized across all SoC families because they
generally try to follow their respective SoC hardware user manual naming
convention, however many boards define common labels for devices routed
to Arduino headers (e.g., arduino_i2c, arduino_serial, and arduino_spi).
That means I2C("arduino_i2c") will work on quite a few boards (>100 in
the main Zephyr tree).
Signed-off-by: Maureen Helm <maureen.helm@analog.com>
2024-08-05 12:58:36 -05:00
|
|
|
CONFIG_DEVICE_DT_METADATA=y
|
|
|
|
|
|
2018-01-16 16:29:54 +02:00
|
|
|
# Enable sensor subsystem (doesn't add code if not used).
|
|
|
|
|
# Specific sensors should be enabled per-board.
|
|
|
|
|
CONFIG_SENSOR=y
|
|
|
|
|
|
2017-01-21 17:16:35 +03:00
|
|
|
# Networking config
|
|
|
|
|
CONFIG_NETWORKING=y
|
|
|
|
|
CONFIG_NET_IPV4=y
|
2017-02-14 16:23:54 +03:00
|
|
|
CONFIG_NET_IPV6=y
|
2017-03-29 00:46:06 +03:00
|
|
|
CONFIG_NET_UDP=y
|
|
|
|
|
CONFIG_NET_TCP=y
|
2017-08-07 21:36:57 +03:00
|
|
|
CONFIG_NET_SOCKETS=y
|
2021-05-20 21:03:25 -05:00
|
|
|
CONFIG_NET_SOCKETS_POSIX_NAMES=n
|
2017-01-21 17:16:35 +03:00
|
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
2017-04-03 12:07:56 +03:00
|
|
|
|
2018-08-18 15:46:18 +03:00
|
|
|
CONFIG_NET_CONFIG_SETTINGS=y
|
|
|
|
|
CONFIG_NET_CONFIG_INIT_TIMEOUT=3
|
|
|
|
|
CONFIG_NET_CONFIG_NEED_IPV6=y
|
|
|
|
|
CONFIG_NET_CONFIG_NEED_IPV4=y
|
2017-10-07 14:08:50 +03:00
|
|
|
|
2017-05-13 16:42:35 +03:00
|
|
|
# DNS
|
|
|
|
|
CONFIG_DNS_RESOLVER=y
|
|
|
|
|
CONFIG_DNS_RESOLVER_ADDITIONAL_QUERIES=2
|
|
|
|
|
CONFIG_DNS_SERVER_IP_ADDRESSES=y
|
2018-01-23 21:28:57 +02:00
|
|
|
|
|
|
|
|
# Static IP addresses
|
2018-08-18 15:46:18 +03:00
|
|
|
CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1"
|
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
|
|
|
|
|
CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2"
|
2017-05-13 16:42:35 +03:00
|
|
|
CONFIG_DNS_SERVER1="192.0.2.2"
|
|
|
|
|
|
2018-01-23 21:28:57 +02:00
|
|
|
# DHCP configuration. Until DHCP address is assigned,
|
|
|
|
|
# static configuration above is used instead.
|
|
|
|
|
CONFIG_NET_DHCPV4=y
|
|
|
|
|
|
2017-08-16 09:22:30 +03:00
|
|
|
# Diagnostics and debugging
|
|
|
|
|
|
|
|
|
|
# Required for zephyr.stack_analyze()
|
2020-05-02 11:21:48 -05:00
|
|
|
CONFIG_THREAD_ANALYZER=y
|
|
|
|
|
CONFIG_THREAD_ANALYZER_USE_PRINTK=y
|
2018-09-27 00:24:40 +03:00
|
|
|
CONFIG_THREAD_NAME=y
|
2017-08-16 09:22:30 +03:00
|
|
|
|
2022-08-18 15:01:26 +10:00
|
|
|
# Required for socket.pkt_get_info()
|
2017-05-13 15:22:22 +03:00
|
|
|
CONFIG_NET_BUF_POOL_USAGE=y
|
|
|
|
|
|
2020-11-30 10:45:05 -06:00
|
|
|
# Required for zephyr.shell_exec()
|
|
|
|
|
#CONFIG_SHELL=y
|
|
|
|
|
#CONFIG_SHELL_BACKEND_SERIAL_INTERRUPT_DRIVEN=n
|
|
|
|
|
|
|
|
|
|
# Required for zephyr.shell_exec("net iface")
|
2017-08-20 08:45:00 +03:00
|
|
|
#CONFIG_NET_SHELL=y
|
|
|
|
|
|
2017-04-03 12:07:56 +03:00
|
|
|
# Uncomment to enable "INFO" level net_buf logging
|
|
|
|
|
#CONFIG_NET_LOG=y
|
|
|
|
|
#CONFIG_NET_DEBUG_NET_BUF=y
|
|
|
|
|
# Change to 4 for "DEBUG" level
|
|
|
|
|
#CONFIG_SYS_LOG_NET_LEVEL=3
|
2020-10-11 13:11:31 -05:00
|
|
|
|
|
|
|
|
# MicroPython options
|
|
|
|
|
CONFIG_MICROPY_CONFIGFILE="mpconfigport.h"
|
|
|
|
|
CONFIG_MICROPY_VFS_FAT=y
|
|
|
|
|
CONFIG_MICROPY_VFS_LFS2=y
|