diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-02-13 10:30:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-02-13 10:30:06 -0600 |
commit | 7b6682a837dedda1aa1aad58ac9d830428296c74 (patch) | |
tree | 4ccbf85648f2a12cc688259b7abf6b3055a71cca /nuttx/drivers/timers/Kconfig | |
parent | 08593d6ff60e2c8f59545cdb145d728662a14f6d (diff) | |
download | px4-nuttx-7b6682a837dedda1aa1aad58ac9d830428296c74.tar.gz px4-nuttx-7b6682a837dedda1aa1aad58ac9d830428296c74.tar.bz2 px4-nuttx-7b6682a837dedda1aa1aad58ac9d830428296c74.zip |
Move timer-related drivers from drivers/ to drivers/timers.
Diffstat (limited to 'nuttx/drivers/timers/Kconfig')
-rw-r--r-- | nuttx/drivers/timers/Kconfig | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/nuttx/drivers/timers/Kconfig b/nuttx/drivers/timers/Kconfig new file mode 100644 index 000000000..cf05db345 --- /dev/null +++ b/nuttx/drivers/timers/Kconfig @@ -0,0 +1,95 @@ +# +# For a description of the syntax of this configuration file, +# see misc/tools/kconfig-language.txt. +# + +menuconfig TIMER + bool "Timer Support" + default n + ---help--- + This selection enables building of the "upper-half" timer + driver. See include/nuttx/timer.h for further timer driver + information. + +menuconfig RTC + bool "RTC Driver Support" + default n + ---help--- + This selection enables configuration of a real time clock (RTCdriver. + See include/nuttx/rtc.h for further RTC driver information. + Most RTC drivers are MCU specific and may require other specific + settings. + +if RTC + +config RTC_DATETIME + bool "Date/Time RTC Support" + default n + ---help--- + There are two general types of RTC: (1) A simple battery backed + counter that keeps the time when power is down, and (2) a full + date / time RTC the provides the date and time information, often in + BCD format. If RTC_DATETIME is selected, it specifies this second kind + of RTC. In this case, the RTC is used to "seed" the normal NuttX timer + and the NuttX system timer provides for higher resolution time. + +if !RTC_DATETIME + +config RTC_HIRES + bool "Hi-Res RTC Support" + default n + ---help--- + If RTC_DATETIME not selected, then the simple, battery backed counter + is used. There are two different implementations of such simple + counters based on the time resolution of the counter: The typical RTC + keeps time to resolution of 1 second, usually supporting a 32-bit + time_t value. In this case, the RTC is used to "seed" the normal NuttX + timer and the NuttX timer provides for higherresoution time. + + If RTC_HIRES is enabled in the NuttX configuration, then the RTC + provides higher resolution time and completely replaces the system + timer for purpose of date and time. + +config RTC_FREQUENCY + int "Hi-Res RTC frequency" + default 1 + depends on RTC_HIRES + ---help--- + If RTC_HIRES is defined, then the frequency of the high resolution RTC + must be provided. If RTC_HIRES is not defined, RTC_FREQUENCY is + assumed to be one Hz. + +endif # !RTC_DATETIME + +config RTC_ALARM + bool "RTC Alarm Support" + default n + ---help--- + Enable if the RTC hardware supports setting of an alarm. A callback + function will be executed when the alarm goes off. + +config RTC_DRIVER + bool "RTC Driver Support" + default n + ---help--- + This selection enables building of the "upper-half" RTC + driver. See include/nuttx/rtc.h for further RTC driver + information. + +endif # RTC + +menuconfig WATCHDOG + bool "Watchdog Timer Support" + default n + ---help--- + This selection enables building of the "upper-half" watchdog timer + driver. See include/nuttx/watchdog.h for further watchdog timer driver + information. + +if WATCHDOG + +config WATCHDOG_DEVPATH + string "Watchdog Device Path" + default "/dev/watchdog0" + +endif # WATCHDOG |