2014-04-11 02:15:06 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 16:14:53 +02:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2014-04-11 02:15:06 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
config NETUTILS_NTPCLIENT
|
|
|
|
bool "NTP client"
|
|
|
|
default n
|
2019-12-05 14:09:27 +01:00
|
|
|
depends on NET_UDP && NET_SOCKOPTS
|
2014-04-11 02:15:06 +02:00
|
|
|
---help---
|
|
|
|
Enable support for the minimal NTP client.
|
|
|
|
|
|
|
|
if NETUTILS_NTPCLIENT
|
|
|
|
|
2016-07-11 01:47:07 +02:00
|
|
|
config NETUTILS_NTPCLIENT_SERVER
|
2021-01-21 17:04:41 +01:00
|
|
|
string "NTP server hostnames"
|
|
|
|
default "0.pool.ntp.org;1.pool.ntp.org;2.pool.ntp.org"
|
2016-07-11 01:47:07 +02:00
|
|
|
depends on LIBC_NETDB
|
2021-01-21 17:04:41 +01:00
|
|
|
---help---
|
|
|
|
List of NTP server hostnames to use. Server names need to
|
|
|
|
be separated by ';'.
|
2016-07-11 01:47:07 +02:00
|
|
|
|
2014-04-11 02:15:06 +02:00
|
|
|
config NETUTILS_NTPCLIENT_SERVERIP
|
|
|
|
hex "NTP server IP address"
|
|
|
|
default 0x0a000001
|
2016-07-11 01:47:07 +02:00
|
|
|
depends on !LIBC_NETDB
|
2021-01-21 17:04:41 +01:00
|
|
|
---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
|
2014-04-11 02:15:06 +02:00
|
|
|
|
|
|
|
config NETUTILS_NTPCLIENT_PORTNO
|
|
|
|
int "NTP server port number"
|
2014-04-14 00:24:28 +02:00
|
|
|
default 123
|
2014-04-11 02:15:06 +02:00
|
|
|
|
|
|
|
config NETUTILS_NTPCLIENT_STACKSIZE
|
|
|
|
int "NTP client daemon stack stack size"
|
2020-03-27 06:10:33 +01:00
|
|
|
default DEFAULT_TASK_STACKSIZE
|
2014-04-11 02:15:06 +02:00
|
|
|
|
|
|
|
config NETUTILS_NTPCLIENT_SERVERPRIO
|
|
|
|
int "NTP client daemon priority"
|
2014-04-14 00:24:28 +02:00
|
|
|
default 100
|
2014-04-11 02:15:06 +02:00
|
|
|
|
2021-02-15 05:54:26 +01:00
|
|
|
config NETUTILS_NTPCLIENT_STAY_ON
|
|
|
|
bool "Make NTP client keep polling"
|
|
|
|
default y
|
|
|
|
|
2014-04-11 02:15:06 +02:00
|
|
|
config NETUTILS_NTPCLIENT_POLLDELAYSEC
|
|
|
|
int "NTP client poll interval (seconds)"
|
2014-04-14 00:24:28 +02:00
|
|
|
default 60
|
2021-02-15 05:54:26 +01:00
|
|
|
depends on NETUTILS_NTPCLIENT_STAY_ON
|
2014-04-11 02:15:06 +02:00
|
|
|
|
2021-01-21 17:04:41 +01:00
|
|
|
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
|
|
|
|
|
2014-04-11 16:27:15 +02:00
|
|
|
config NETUTILS_NTPCLIENT_SIGWAKEUP
|
|
|
|
int "NTP client wakeup signal number"
|
|
|
|
default 18
|
|
|
|
|
2023-06-02 13:08:09 +02:00
|
|
|
config NETUTILS_NTPCLIENT_TIMEOUT_MS
|
|
|
|
int "NTP client timeout of send and recv"
|
|
|
|
default 5000
|
|
|
|
|
2020-07-17 05:10:05 +02:00
|
|
|
config NETUTILS_NTPCLIENT_WITH_AUTH
|
|
|
|
bool "NTP client with authentication"
|
|
|
|
default n
|
|
|
|
|
2014-04-11 02:15:06 +02:00
|
|
|
endif # NETUTILS_NTPCLIENT
|