|
| 1 | +menu "Arduino Configuration" |
| 2 | + |
| 3 | +config AUTOSTART_ARDUINO |
| 4 | + bool "Autostart Arduino setup and loop on boot" |
| 5 | + default "n" |
| 6 | + help |
| 7 | + Enabling this option will implement app_main and start Arduino. |
| 8 | + All you need to implement in your main.cpp is setup() and loop() |
| 9 | + and include Arduino.h |
| 10 | + If disabled, you can call initArduino() to run any preparations |
| 11 | + required by the framework |
| 12 | + |
| 13 | +config DISABLE_HAL_LOCKS |
| 14 | + bool "Disable mutex locks for HAL" |
| 15 | + default "n" |
| 16 | + help |
| 17 | + Enabling this option will run all hardware abstraction without locks. |
| 18 | + While communication with external hardware will be faster, you need to |
| 19 | + make sure that there is no option to use the same bus from another thread |
| 20 | + or interrupt at the same time. Option is best used with Arduino enabled |
| 21 | + and code implemented only in setup/loop and Arduino callbacks |
| 22 | + |
| 23 | +menu "Debug Log Configuration" |
| 24 | +choice ARDUHAL_LOG_DEFAULT_LEVEL |
| 25 | + bool "Default log level" |
| 26 | + default ARDUHAL_LOG_DEFAULT_LEVEL_ERROR |
| 27 | + help |
| 28 | + Specify how much output to see in logs by default. |
| 29 | + |
| 30 | +config ARDUHAL_LOG_DEFAULT_LEVEL_NONE |
| 31 | + bool "No output" |
| 32 | +config ARDUHAL_LOG_DEFAULT_LEVEL_ERROR |
| 33 | + bool "Error" |
| 34 | +config ARDUHAL_LOG_DEFAULT_LEVEL_WARN |
| 35 | + bool "Warning" |
| 36 | +config ARDUHAL_LOG_DEFAULT_LEVEL_INFO |
| 37 | + bool "Info" |
| 38 | +config ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG |
| 39 | + bool "Debug" |
| 40 | +config ARDUHAL_LOG_DEFAULT_LEVEL_VERBOSE |
| 41 | + bool "Verbose" |
| 42 | +endchoice |
| 43 | + |
| 44 | +config ARDUHAL_LOG_DEFAULT_LEVEL |
| 45 | + int |
| 46 | + default 0 if ARDUHAL_LOG_DEFAULT_LEVEL_NONE |
| 47 | + default 1 if ARDUHAL_LOG_DEFAULT_LEVEL_ERROR |
| 48 | + default 2 if ARDUHAL_LOG_DEFAULT_LEVEL_WARN |
| 49 | + default 3 if ARDUHAL_LOG_DEFAULT_LEVEL_INFO |
| 50 | + default 4 if ARDUHAL_LOG_DEFAULT_LEVEL_DEBUG |
| 51 | + default 5 if ARDUHAL_LOG_DEFAULT_LEVEL_VERBOSE |
| 52 | + |
| 53 | +config ARDUHAL_LOG_COLORS |
| 54 | + bool "Use ANSI terminal colors in log output" |
| 55 | + default "n" |
| 56 | + help |
| 57 | + Enable ANSI terminal color codes in bootloader output. |
| 58 | + In order to view these, your terminal program must support ANSI color codes. |
| 59 | + |
| 60 | +endmenu |
| 61 | + |
| 62 | +config AUTOCONNECT_WIFI |
| 63 | + bool "Autoconnect WiFi on boot" |
| 64 | + default "n" |
| 65 | + depends on AUTOSTART_ARDUINO |
| 66 | + help |
| 67 | + If enabled, WiFi will connect to the last used SSID (if station was enabled), |
| 68 | + else connection will be started only after calling WiFi.begin(ssid, password) |
| 69 | + |
| 70 | +endmenu |
0 commit comments