Skip to content

Commit 38ffaf8

Browse files
authored
Merge pull request #2451 from balanceTWK/rtt_master
[components] 添加 RT_USING_ALARM 选项
2 parents 0876c25 + fcdd5d1 commit 38ffaf8

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

components/drivers/Kconfig

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -129,22 +129,27 @@ config RT_USING_RTC
129129
default n
130130

131131
if RT_USING_RTC
132-
config RT_USING_SOFT_RTC
133-
bool "Using software simulation RTC device"
134-
default n
135-
config RTC_SYNC_USING_NTP
136-
bool "Using NTP auto sync RTC time"
137-
depends on PKG_NETUTILS_NTP
138-
default y
132+
config RT_USING_ALARM
133+
bool "Using RTC alarm"
134+
default n
135+
136+
config RT_USING_SOFT_RTC
137+
bool "Using software simulation RTC device"
138+
default n
139+
140+
config RTC_SYNC_USING_NTP
141+
bool "Using NTP auto sync RTC time"
142+
depends on PKG_NETUTILS_NTP
143+
default y
139144

140-
if RTC_SYNC_USING_NTP
141-
config RTC_NTP_FIRST_SYNC_DELAY
142-
int "NTP first sync delay time(second) for network connect"
143-
default 30
144-
config RTC_NTP_SYNC_PERIOD
145-
int "NTP auto sync period(second)"
146-
default 3600
147-
endif
145+
if RTC_SYNC_USING_NTP
146+
config RTC_NTP_FIRST_SYNC_DELAY
147+
int "NTP first sync delay time(second) for network connect"
148+
default 30
149+
config RTC_NTP_SYNC_PERIOD
150+
int "NTP auto sync period(second)"
151+
default 3600
152+
endif
148153
endif
149154

150155
config RT_USING_SDIO

0 commit comments

Comments
 (0)