mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-02-06 17:12:01 +08:00
* [dd][rtc] set the RTC alarm thread stack size default. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] make Kconfig import for DM Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] support DM API for RTC 1. rtc_dev_set_name for RTC device init the name auto. 2. rtc_wkalarm_to_timestamp and rtc_timestamp_to_wkalarm for rt_rtc_wkalarm/time_t convert. Signed-off-by: GuEe-GUI <2991707448@qq.com> * [dm][rtc] add new drivers 1. Dallas/Maxim DS1302 2. Dallas/Maxim DS1307/37/38/39/40, ST M41T11 3. Goldfish Real Time Clock 4. Haoyu Microelectronics HYM8563 5. NXP PCF8523 6. Philips PCF8563/Epson RTC8564 7. ARM PL031 8. Epson RX8010SJ Signed-off-by: GuEe-GUI <2991707448@qq.com> --------- Signed-off-by: GuEe-GUI <2991707448@qq.com>
91 lines
2.1 KiB
Plaintext
91 lines
2.1 KiB
Plaintext
menuconfig RT_USING_RTC
|
|
bool "Using RTC device drivers"
|
|
default n
|
|
|
|
if RT_USING_RTC
|
|
config RT_USING_ALARM
|
|
bool "Using RTC alarm"
|
|
default n
|
|
|
|
if RT_USING_ALARM
|
|
config RT_ALARM_STACK_SIZE
|
|
int "stack size for alarm thread"
|
|
default IDLE_THREAD_STACK_SIZE
|
|
|
|
config RT_ALARM_TIMESLICE
|
|
int "timeslice for alarm thread"
|
|
default 5
|
|
|
|
config RT_ALARM_PRIORITY
|
|
int "priority for alarm thread"
|
|
default 10
|
|
|
|
config RT_ALARM_USING_LOCAL_TIME
|
|
bool "Using local time for the alarm calculation"
|
|
default n
|
|
depends on RT_USING_ALARM
|
|
endif
|
|
|
|
config RT_USING_SOFT_RTC
|
|
bool "Using software simulation RTC device"
|
|
default n
|
|
endif
|
|
|
|
config RT_RTC_DS1302
|
|
bool "Dallas/Maxim DS1302"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_SPI
|
|
default n
|
|
|
|
config RT_RTC_DS1307
|
|
bool "Dallas/Maxim DS1307/37/38/39/40, ST M41T11"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_I2C
|
|
default n
|
|
|
|
config RT_RTC_GOLDFISH
|
|
bool "Goldfish Real Time Clock"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
default n
|
|
|
|
config RT_RTC_HYM8563
|
|
bool "Haoyu Microelectronics HYM8563"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_I2C
|
|
default n
|
|
|
|
config RT_RTC_PCF8523
|
|
bool "NXP PCF8523"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_I2C
|
|
default n
|
|
|
|
config RT_RTC_PCF8563
|
|
bool "Philips PCF8563/Epson RTC8564"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_I2C
|
|
default n
|
|
|
|
config RT_RTC_PL031
|
|
bool "ARM PL031"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
default n
|
|
|
|
config RT_RTC_RX8010
|
|
bool "Epson RX8010SJ"
|
|
depends on RT_USING_DM
|
|
depends on RT_USING_RTC
|
|
depends on RT_USING_I2C
|
|
default n
|
|
|
|
if RT_USING_DM && RT_USING_RTC
|
|
osource "$(SOC_DM_RTC_DIR)/Kconfig"
|
|
endif
|