nuttx-apps/netutils/ntpclient/Kconfig
YAMAMOTO Takashi ab86da4639 netutils/ntpclient/Kconfig: Add NETUTILS_NTPCLIENT_STAY_ON
It's used in the code but missing in Kconfig.
I guess the PR [1] forgot to add this.

Make it "y" by default because it seems like the original behavior
before the PR [1].  I have no strong opinions on the default
either ways.

[1] https://github.com/apache/incubator-nuttx-apps/pull/570
2021-02-15 01:53:37 -08:00

74 lines
1.8 KiB
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config NETUTILS_NTPCLIENT
bool "NTP client"
default n
depends on NET_UDP && NET_SOCKOPTS
---help---
Enable support for the minimal NTP client.
if NETUTILS_NTPCLIENT
config NETUTILS_NTPCLIENT_SERVER
string "NTP server hostnames"
default "0.pool.ntp.org;1.pool.ntp.org;2.pool.ntp.org"
depends on LIBC_NETDB
---help---
List of NTP server hostnames to use. Server names need to
be separated by ';'.
config NETUTILS_NTPCLIENT_SERVERIP
hex "NTP server IP address"
default 0x0a000001
depends on !LIBC_NETDB
---help---
Warning: this is deprecated option. Suitable only for testing.
Never use this in real NuttX products!
Use of hardcoded IP address for NTP server is known bad
practice:
https://en.wikipedia.org/wiki/NTP_server_misuse_and_abuse
config NETUTILS_NTPCLIENT_PORTNO
int "NTP server port number"
default 123
config NETUTILS_NTPCLIENT_STACKSIZE
int "NTP client daemon stack stack size"
default DEFAULT_TASK_STACKSIZE
config NETUTILS_NTPCLIENT_SERVERPRIO
int "NTP client daemon priority"
default 100
config NETUTILS_NTPCLIENT_STAY_ON
bool "Make NTP client keep polling"
default y
config NETUTILS_NTPCLIENT_POLLDELAYSEC
int "NTP client poll interval (seconds)"
default 60
depends on NETUTILS_NTPCLIENT_STAY_ON
config NETUTILS_NTPCLIENT_RETRIES
int "NTP client retry seconds to wait for network up"
default 60
config NETUTILS_NTPCLIENT_NUM_SAMPLES
int "NTP client number of samples collected for filter"
default 5
config NETUTILS_NTPCLIENT_SIGWAKEUP
int "NTP client wakeup signal number"
default 18
config NETUTILS_NTPCLIENT_WITH_AUTH
bool "NTP client with authentication"
default n
endif # NETUTILS_NTPCLIENT