File tree Expand file tree Collapse file tree 20 files changed +590
-264
lines changed
Expand file tree Collapse file tree 20 files changed +590
-264
lines changed Original file line number Diff line number Diff line change @@ -140,16 +140,21 @@ 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
143+ config BSP_USING_ALARM
144+ bool "Enable RTC alarm"
145+ default n
146+ if BSP_USING_ALARM
147+ choice
148+ prompt "Select rtc alarm device"
149+ default BSP_USING_ALARM0
146150
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE "
151+ config BSP_USING_ALARM0
152+ bool "Enable RTC Alarm0 "
149153
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
154+ config BSP_USING_ALARM1
155+ bool "Enable RTC Alarm1"
156+ endchoice
157+ endif
153158 endif
154159
155160 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,21 @@ 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
139+ config BSP_USING_ALARM
140+ bool "Enable RTC alarm"
141+ default n
142+ if BSP_USING_ALARM
143+ choice
144+ prompt "Select rtc alarm device"
145+ default BSP_USING_ALARM0
142146
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE "
147+ config BSP_USING_ALARM0
148+ bool "Enable RTC Alarm0 "
145149
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
150+ config BSP_USING_ALARM1
151+ bool "Enable RTC Alarm1"
152+ endchoice
153+ endif
149154 endif
150155
151156 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -144,16 +144,21 @@ 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
147+ config BSP_USING_ALARM
148+ bool "Enable RTC alarm"
149+ default n
150+ if BSP_USING_ALARM
151+ choice
152+ prompt "Select rtc alarm device"
153+ default BSP_USING_ALARM0
150154
151- config BSP_RTC_USING_LSE
152- bool "RTC USING LSE "
155+ config BSP_USING_ALARM0
156+ bool "Enable RTC Alarm0 "
153157
154- config BSP_RTC_USING_LSI
155- bool "RTC USING LSI"
156- endchoice
158+ config BSP_USING_ALARM1
159+ bool "Enable RTC Alarm1"
160+ endchoice
161+ endif
157162 endif
158163
159164 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,21 @@ 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
139+ config BSP_USING_ALARM
140+ bool "Enable RTC alarm"
141+ default n
142+ if BSP_USING_ALARM
143+ choice
144+ prompt "Select rtc alarm device"
145+ default BSP_USING_ALARM0
142146
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE "
147+ config BSP_USING_ALARM0
148+ bool "Enable RTC Alarm0 "
145149
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
150+ config BSP_USING_ALARM1
151+ bool "Enable RTC Alarm1"
152+ endchoice
153+ endif
149154 endif
150155
151156 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -140,16 +140,21 @@ 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
143+ config BSP_USING_ALARM
144+ bool "Enable RTC alarm"
145+ default n
146+ if BSP_USING_ALARM
147+ choice
148+ prompt "Select rtc alarm device"
149+ default BSP_USING_ALARM0
146150
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE "
151+ config BSP_USING_ALARM0
152+ bool "Enable RTC Alarm0 "
149153
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
154+ config BSP_USING_ALARM1
155+ bool "Enable RTC Alarm1"
156+ endchoice
157+ endif
153158 endif
154159
155160 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -170,16 +170,21 @@ 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
173+ config BSP_USING_ALARM
174+ bool "Enable RTC alarm"
175+ default n
176+ if BSP_USING_ALARM
177+ choice
178+ prompt "Select rtc alarm device"
179+ default BSP_USING_ALARM0
176180
177- config BSP_RTC_USING_LSE
178- bool "RTC USING LSE "
181+ config BSP_USING_ALARM0
182+ bool "Enable RTC Alarm0 "
179183
180- config BSP_RTC_USING_LSI
181- bool "RTC USING LSI"
182- endchoice
184+ config BSP_USING_ALARM1
185+ bool "Enable RTC Alarm1"
186+ endchoice
187+ endif
183188 endif
184189
185190 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -140,16 +140,21 @@ 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
143+ config BSP_USING_ALARM
144+ bool "Enable RTC alarm"
145+ default n
146+ if BSP_USING_ALARM
147+ choice
148+ prompt "Select rtc alarm device"
149+ default BSP_USING_ALARM0
146150
147- config BSP_RTC_USING_LSE
148- bool "RTC USING LSE "
151+ config BSP_USING_ALARM0
152+ bool "Enable RTC Alarm0 "
149153
150- config BSP_RTC_USING_LSI
151- bool "RTC USING LSI"
152- endchoice
154+ config BSP_USING_ALARM1
155+ bool "Enable RTC Alarm1"
156+ endchoice
157+ endif
153158 endif
154159
155160 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -136,16 +136,21 @@ 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
139+ config BSP_USING_ALARM
140+ bool "Enable RTC alarm"
141+ default n
142+ if BSP_USING_ALARM
143+ choice
144+ prompt "Select rtc alarm device"
145+ default BSP_USING_ALARM0
142146
143- config BSP_RTC_USING_LSE
144- bool "RTC USING LSE "
147+ config BSP_USING_ALARM0
148+ bool "Enable RTC Alarm0 "
145149
146- config BSP_RTC_USING_LSI
147- bool "RTC USING LSI"
148- endchoice
150+ config BSP_USING_ALARM1
151+ bool "Enable RTC Alarm1"
152+ endchoice
153+ endif
149154 endif
150155
151156 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -137,16 +137,21 @@ 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
140+ config BSP_USING_ALARM
141+ bool "Enable RTC alarm"
142+ default n
143+ if BSP_USING_ALARM
144+ choice
145+ prompt "Select rtc alarm device"
146+ default BSP_USING_ALARM0
143147
144- config BSP_RTC_USING_LSE
145- bool "RTC USING LSE "
148+ config BSP_USING_ALARM0
149+ bool "Enable RTC Alarm0 "
146150
147- config BSP_RTC_USING_LSI
148- bool "RTC USING LSI"
149- endchoice
151+ config BSP_USING_ALARM1
152+ bool "Enable RTC Alarm1"
153+ endchoice
154+ endif
150155 endif
151156
152157 config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -314,16 +314,21 @@ 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+ config BSP_USING_ALARM
318+ bool "Enable RTC alarm"
319+ default n
320+ if BSP_USING_ALARM
321+ choice
322+ prompt "Select rtc alarm device"
323+ default BSP_USING_ALARM0
324+
325+ config BSP_USING_ALARM0
326+ bool "Enable RTC Alarm0"
327+
328+ config BSP_USING_ALARM1
329+ bool "Enable RTC Alarm1"
330+ endchoice
331+ endif
327332 endif
328333
329334 config BSP_USING_WDT
You can’t perform that action at this time.
0 commit comments