File tree Expand file tree Collapse file tree 20 files changed +558
-288
lines changed
Expand file tree Collapse file tree 20 files changed +558
-288
lines changed Original file line number Diff line number Diff line change @@ -140,16 +140,18 @@ menu "On-chip Peripheral Drivers"
140140 select RT_USING_RTC
141141 default n
142142 if BSP_USING_ONCHIP_RTC
143- choice
144- prompt "Select clock source"
145- default BSP_RTC_USING_LSE
146-
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE"
149-
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
143+ if RT_USING_ALARM
144+ choice
145+ prompt "Select rtc alarm device"
146+ default BSP_USING_ALARM0
147+
148+ config BSP_USING_ALARM0
149+ bool "Enable RTC Alarm0"
150+
151+ config BSP_USING_ALARM1
152+ bool "Enable RTC Alarm1"
153+ endchoice
154+ endif
153155 endif
154156
155157 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,18 @@ menu "On-chip Peripheral Drivers"
136136 select RT_USING_RTC
137137 default n
138138 if BSP_USING_ONCHIP_RTC
139- choice
140- prompt "Select clock source"
141- default BSP_RTC_USING_LSE
142-
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE"
145-
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
139+ if RT_USING_ALARM
140+ choice
141+ prompt "Select rtc alarm device"
142+ default BSP_USING_ALARM0
143+
144+ config BSP_USING_ALARM0
145+ bool "Enable RTC Alarm0"
146+
147+ config BSP_USING_ALARM1
148+ bool "Enable RTC Alarm1"
149+ endchoice
150+ endif
149151 endif
150152
151153 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -144,16 +144,18 @@ menu "On-chip Peripheral Drivers"
144144 select RT_USING_RTC
145145 default n
146146 if BSP_USING_ONCHIP_RTC
147- choice
148- prompt "Select clock source"
149- default BSP_RTC_USING_LSE
150-
151- config BSP_RTC_USING_LSE
152- bool "RTC USING LSE"
153-
154- config BSP_RTC_USING_LSI
155- bool "RTC USING LSI"
156- endchoice
147+ if RT_USING_ALARM
148+ choice
149+ prompt "Select rtc alarm device"
150+ default BSP_USING_ALARM0
151+
152+ config BSP_USING_ALARM0
153+ bool "Enable RTC Alarm0"
154+
155+ config BSP_USING_ALARM1
156+ bool "Enable RTC Alarm1"
157+ endchoice
158+ endif
157159 endif
158160
159161 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,18 @@ menu "On-chip Peripheral Drivers"
136136 select RT_USING_RTC
137137 default n
138138 if BSP_USING_ONCHIP_RTC
139- choice
140- prompt "Select clock source"
141- default BSP_RTC_USING_LSE
142-
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE"
145-
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
139+ if RT_USING_ALARM
140+ choice
141+ prompt "Select rtc alarm device"
142+ default BSP_USING_ALARM0
143+
144+ config BSP_USING_ALARM0
145+ bool "Enable RTC Alarm0"
146+
147+ config BSP_USING_ALARM1
148+ bool "Enable RTC Alarm1"
149+ endchoice
150+ endif
149151 endif
150152
151153 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -140,16 +140,18 @@ menu "On-chip Peripheral Drivers"
140140 select RT_USING_RTC
141141 default n
142142 if BSP_USING_ONCHIP_RTC
143- choice
144- prompt "Select clock source"
145- default BSP_RTC_USING_LSE
146-
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE"
149-
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
143+ if RT_USING_ALARM
144+ choice
145+ prompt "Select rtc alarm device"
146+ default BSP_USING_ALARM0
147+
148+ config BSP_USING_ALARM0
149+ bool "Enable RTC Alarm0"
150+
151+ config BSP_USING_ALARM1
152+ bool "Enable RTC Alarm1"
153+ endchoice
154+ endif
153155 endif
154156
155157 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -170,16 +170,18 @@ menu "On-chip Peripheral Drivers"
170170 select RT_USING_RTC
171171 default n
172172 if BSP_USING_ONCHIP_RTC
173- choice
174- prompt "Select clock source"
175- default BSP_RTC_USING_LSE
176-
177- config BSP_RTC_USING_LSE
178- bool "RTC USING LSE"
179-
180- config BSP_RTC_USING_LSI
181- bool "RTC USING LSI"
182- endchoice
173+ if RT_USING_ALARM
174+ choice
175+ prompt "Select rtc alarm device"
176+ default BSP_USING_ALARM0
177+
178+ config BSP_USING_ALARM0
179+ bool "Enable RTC Alarm0"
180+
181+ config BSP_USING_ALARM1
182+ bool "Enable RTC Alarm1"
183+ endchoice
184+ endif
183185 endif
184186
185187 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -140,16 +140,18 @@ menu "On-chip Peripheral Drivers"
140140 select RT_USING_RTC
141141 default n
142142 if BSP_USING_ONCHIP_RTC
143- choice
144- prompt "Select clock source"
145- default BSP_RTC_USING_LSE
146-
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE"
149-
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
143+ if RT_USING_ALARM
144+ choice
145+ prompt "Select rtc alarm device"
146+ default BSP_USING_ALARM0
147+
148+ config BSP_USING_ALARM0
149+ bool "Enable RTC Alarm0"
150+
151+ config BSP_USING_ALARM1
152+ bool "Enable RTC Alarm1"
153+ endchoice
154+ endif
153155 endif
154156
155157 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,18 @@ menu "On-chip Peripheral Drivers"
136136 select RT_USING_RTC
137137 default n
138138 if BSP_USING_ONCHIP_RTC
139- choice
140- prompt "Select clock source"
141- default BSP_RTC_USING_LSE
142-
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE"
145-
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
139+ if RT_USING_ALARM
140+ choice
141+ prompt "Select rtc alarm device"
142+ default BSP_USING_ALARM0
143+
144+ config BSP_USING_ALARM0
145+ bool "Enable RTC Alarm0"
146+
147+ config BSP_USING_ALARM1
148+ bool "Enable RTC Alarm1"
149+ endchoice
150+ endif
149151 endif
150152
151153 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -137,16 +137,18 @@ menu "On-chip Peripheral Drivers"
137137 select RT_USING_RTC
138138 default n
139139 if BSP_USING_ONCHIP_RTC
140- choice
141- prompt "Select clock source"
142- default BSP_RTC_USING_LSE
143-
144- config BSP_RTC_USING_LSE
145- bool "RTC USING LSE"
146-
147- config BSP_RTC_USING_LSI
148- bool "RTC USING LSI"
149- endchoice
140+ if RT_USING_ALARM
141+ choice
142+ prompt "Select rtc alarm device"
143+ default BSP_USING_ALARM0
144+
145+ config BSP_USING_ALARM0
146+ bool "Enable RTC Alarm0"
147+
148+ config BSP_USING_ALARM1
149+ bool "Enable RTC Alarm1"
150+ endchoice
151+ endif
150152 endif
151153
152154 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -314,16 +314,18 @@ menu "On-chip Peripheral Drivers"
314314 select RT_USING_RTC
315315 default n
316316 if BSP_USING_ONCHIP_RTC
317- choice
318- prompt "Select clock source"
319- default BSP_RTC_USING_LSE
320-
321- config BSP_RTC_USING_LSE
322- bool "RTC USING LSE"
323-
324- config BSP_RTC_USING_LSI
325- bool "RTC USING LSI"
326- endchoice
317+ if RT_USING_ALARM
318+ choice
319+ prompt "Select rtc alarm device"
320+ default BSP_USING_ALARM0
321+
322+ config BSP_USING_ALARM0
323+ bool "Enable RTC Alarm0"
324+
325+ config BSP_USING_ALARM1
326+ bool "Enable RTC Alarm1"
327+ endchoice
328+ endif
327329 endif
328330
329331 config BSP_USING_WDT
You can’t perform that action at this time.
0 commit comments