File tree Expand file tree Collapse file tree 20 files changed +773
-186
lines changed Expand file tree Collapse file tree 20 files changed +773
-186
lines changed Original file line number Diff line number Diff line change @@ -142,14 +142,30 @@ menu "On-chip Peripheral Drivers"
142
142
if BSP_USING_ONCHIP_RTC
143
143
choice
144
144
prompt "Select clock source"
145
- default BSP_RTC_USING_LSE
145
+ default RTC_CLOCK_SOURCE_LXTAL
146
146
147
- config BSP_RTC_USING_LSE
147
+ config RTC_CLOCK_SOURCE_LXTAL
148
148
bool "RTC USING LSE"
149
149
150
- config BSP_RTC_USING_LSI
151
- bool "RTC USING LSI"
150
+ config RCU_RTCSRC_IRC32K
151
+ bool "RTC USING LSI(32K)"
152
+
153
+ config RCU_RTCSRC_IRC40K
154
+ bool "RTC USING LSI(40K)"
152
155
endchoice
156
+
157
+ if RT_USING_ALARM
158
+ choice
159
+ prompt "Select rtc alarm device"
160
+ default BSP_USING_ALARM0
161
+
162
+ config BSP_USING_ALARM0
163
+ bool "Enable RTC Alarm0"
164
+
165
+ config BSP_USING_ALARM1
166
+ bool "Enable RTC Alarm1"
167
+ endchoice
168
+ endif
153
169
endif
154
170
155
171
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -138,14 +138,30 @@ menu "On-chip Peripheral Drivers"
138
138
if BSP_USING_ONCHIP_RTC
139
139
choice
140
140
prompt "Select clock source"
141
- default BSP_RTC_USING_LSE
141
+ default RTC_CLOCK_SOURCE_LXTAL
142
142
143
- config BSP_RTC_USING_LSE
143
+ config RTC_CLOCK_SOURCE_LXTAL
144
144
bool "RTC USING LSE"
145
145
146
- config BSP_RTC_USING_LSI
147
- bool "RTC USING LSI"
146
+ config RCU_RTCSRC_IRC32K
147
+ bool "RTC USING LSI(32K)"
148
+
149
+ config RCU_RTCSRC_IRC40K
150
+ bool "RTC USING LSI(40K)"
148
151
endchoice
152
+
153
+ if RT_USING_ALARM
154
+ choice
155
+ prompt "Select rtc alarm device"
156
+ default BSP_USING_ALARM0
157
+
158
+ config BSP_USING_ALARM0
159
+ bool "Enable RTC Alarm0"
160
+
161
+ config BSP_USING_ALARM1
162
+ bool "Enable RTC Alarm1"
163
+ endchoice
164
+ endif
149
165
endif
150
166
151
167
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -146,14 +146,30 @@ menu "On-chip Peripheral Drivers"
146
146
if BSP_USING_ONCHIP_RTC
147
147
choice
148
148
prompt "Select clock source"
149
- default BSP_RTC_USING_LSE
149
+ default RTC_CLOCK_SOURCE_LXTAL
150
150
151
- config BSP_RTC_USING_LSE
151
+ config RTC_CLOCK_SOURCE_LXTAL
152
152
bool "RTC USING LSE"
153
153
154
- config BSP_RTC_USING_LSI
155
- bool "RTC USING LSI"
154
+ config RCU_RTCSRC_IRC32K
155
+ bool "RTC USING LSI(32K)"
156
+
157
+ config RCU_RTCSRC_IRC40K
158
+ bool "RTC USING LSI(40K)"
156
159
endchoice
160
+
161
+ if RT_USING_ALARM
162
+ choice
163
+ prompt "Select rtc alarm device"
164
+ default BSP_USING_ALARM0
165
+
166
+ config BSP_USING_ALARM0
167
+ bool "Enable RTC Alarm0"
168
+
169
+ config BSP_USING_ALARM1
170
+ bool "Enable RTC Alarm1"
171
+ endchoice
172
+ endif
157
173
endif
158
174
159
175
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -138,14 +138,30 @@ menu "On-chip Peripheral Drivers"
138
138
if BSP_USING_ONCHIP_RTC
139
139
choice
140
140
prompt "Select clock source"
141
- default BSP_RTC_USING_LSE
141
+ default RTC_CLOCK_SOURCE_LXTAL
142
142
143
- config BSP_RTC_USING_LSE
143
+ config RTC_CLOCK_SOURCE_LXTAL
144
144
bool "RTC USING LSE"
145
145
146
- config BSP_RTC_USING_LSI
147
- bool "RTC USING LSI"
146
+ config RCU_RTCSRC_IRC32K
147
+ bool "RTC USING LSI(32K)"
148
+
149
+ config RCU_RTCSRC_IRC40K
150
+ bool "RTC USING LSI(40K)"
148
151
endchoice
152
+
153
+ if RT_USING_ALARM
154
+ choice
155
+ prompt "Select rtc alarm device"
156
+ default BSP_USING_ALARM0
157
+
158
+ config BSP_USING_ALARM0
159
+ bool "Enable RTC Alarm0"
160
+
161
+ config BSP_USING_ALARM1
162
+ bool "Enable RTC Alarm1"
163
+ endchoice
164
+ endif
149
165
endif
150
166
151
167
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -142,14 +142,30 @@ menu "On-chip Peripheral Drivers"
142
142
if BSP_USING_ONCHIP_RTC
143
143
choice
144
144
prompt "Select clock source"
145
- default BSP_RTC_USING_LSE
145
+ default RTC_CLOCK_SOURCE_LXTAL
146
146
147
- config BSP_RTC_USING_LSE
147
+ config RTC_CLOCK_SOURCE_LXTAL
148
148
bool "RTC USING LSE"
149
149
150
- config BSP_RTC_USING_LSI
151
- bool "RTC USING LSI"
150
+ config RCU_RTCSRC_IRC32K
151
+ bool "RTC USING LSI(32K)"
152
+
153
+ config RCU_RTCSRC_IRC40K
154
+ bool "RTC USING LSI(40K)"
152
155
endchoice
156
+
157
+ if RT_USING_ALARM
158
+ choice
159
+ prompt "Select rtc alarm device"
160
+ default BSP_USING_ALARM0
161
+
162
+ config BSP_USING_ALARM0
163
+ bool "Enable RTC Alarm0"
164
+
165
+ config BSP_USING_ALARM1
166
+ bool "Enable RTC Alarm1"
167
+ endchoice
168
+ endif
153
169
endif
154
170
155
171
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -172,14 +172,30 @@ menu "On-chip Peripheral Drivers"
172
172
if BSP_USING_ONCHIP_RTC
173
173
choice
174
174
prompt "Select clock source"
175
- default BSP_RTC_USING_LSE
175
+ default RTC_CLOCK_SOURCE_LXTAL
176
176
177
- config BSP_RTC_USING_LSE
177
+ config RTC_CLOCK_SOURCE_LXTAL
178
178
bool "RTC USING LSE"
179
179
180
- config BSP_RTC_USING_LSI
181
- bool "RTC USING LSI"
180
+ config RCU_RTCSRC_IRC32K
181
+ bool "RTC USING LSI(32K)"
182
+
183
+ config RCU_RTCSRC_IRC40K
184
+ bool "RTC USING LSI(40K)"
182
185
endchoice
186
+
187
+ if RT_USING_ALARM
188
+ choice
189
+ prompt "Select rtc alarm device"
190
+ default BSP_USING_ALARM0
191
+
192
+ config BSP_USING_ALARM0
193
+ bool "Enable RTC Alarm0"
194
+
195
+ config BSP_USING_ALARM1
196
+ bool "Enable RTC Alarm1"
197
+ endchoice
198
+ endif
183
199
endif
184
200
185
201
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -142,14 +142,30 @@ menu "On-chip Peripheral Drivers"
142
142
if BSP_USING_ONCHIP_RTC
143
143
choice
144
144
prompt "Select clock source"
145
- default BSP_RTC_USING_LSE
145
+ default RTC_CLOCK_SOURCE_LXTAL
146
146
147
- config BSP_RTC_USING_LSE
147
+ config RTC_CLOCK_SOURCE_LXTAL
148
148
bool "RTC USING LSE"
149
149
150
- config BSP_RTC_USING_LSI
151
- bool "RTC USING LSI"
150
+ config RCU_RTCSRC_IRC32K
151
+ bool "RTC USING LSI(32K)"
152
+
153
+ config RCU_RTCSRC_IRC40K
154
+ bool "RTC USING LSI(40K)"
152
155
endchoice
156
+
157
+ if RT_USING_ALARM
158
+ choice
159
+ prompt "Select rtc alarm device"
160
+ default BSP_USING_ALARM0
161
+
162
+ config BSP_USING_ALARM0
163
+ bool "Enable RTC Alarm0"
164
+
165
+ config BSP_USING_ALARM1
166
+ bool "Enable RTC Alarm1"
167
+ endchoice
168
+ endif
153
169
endif
154
170
155
171
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -138,14 +138,30 @@ menu "On-chip Peripheral Drivers"
138
138
if BSP_USING_ONCHIP_RTC
139
139
choice
140
140
prompt "Select clock source"
141
- default BSP_RTC_USING_LSE
141
+ default RTC_CLOCK_SOURCE_LXTAL
142
142
143
- config BSP_RTC_USING_LSE
143
+ config RTC_CLOCK_SOURCE_LXTAL
144
144
bool "RTC USING LSE"
145
145
146
- config BSP_RTC_USING_LSI
147
- bool "RTC USING LSI"
146
+ config RCU_RTCSRC_IRC32K
147
+ bool "RTC USING LSI(32K)"
148
+
149
+ config RCU_RTCSRC_IRC40K
150
+ bool "RTC USING LSI(40K)"
148
151
endchoice
152
+
153
+ if RT_USING_ALARM
154
+ choice
155
+ prompt "Select rtc alarm device"
156
+ default BSP_USING_ALARM0
157
+
158
+ config BSP_USING_ALARM0
159
+ bool "Enable RTC Alarm0"
160
+
161
+ config BSP_USING_ALARM1
162
+ bool "Enable RTC Alarm1"
163
+ endchoice
164
+ endif
149
165
endif
150
166
151
167
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -139,14 +139,30 @@ menu "On-chip Peripheral Drivers"
139
139
if BSP_USING_ONCHIP_RTC
140
140
choice
141
141
prompt "Select clock source"
142
- default BSP_RTC_USING_LSE
142
+ default RTC_CLOCK_SOURCE_LXTAL
143
143
144
- config BSP_RTC_USING_LSE
144
+ config RTC_CLOCK_SOURCE_LXTAL
145
145
bool "RTC USING LSE"
146
146
147
- config BSP_RTC_USING_LSI
148
- bool "RTC USING LSI"
147
+ config RCU_RTCSRC_IRC32K
148
+ bool "RTC USING LSI(32K)"
149
+
150
+ config RCU_RTCSRC_IRC40K
151
+ bool "RTC USING LSI(40K)"
149
152
endchoice
153
+
154
+ if RT_USING_ALARM
155
+ choice
156
+ prompt "Select rtc alarm device"
157
+ default BSP_USING_ALARM0
158
+
159
+ config BSP_USING_ALARM0
160
+ bool "Enable RTC Alarm0"
161
+
162
+ config BSP_USING_ALARM1
163
+ bool "Enable RTC Alarm1"
164
+ endchoice
165
+ endif
150
166
endif
151
167
152
168
config BSP_USING_WDT
Original file line number Diff line number Diff line change @@ -316,14 +316,30 @@ menu "On-chip Peripheral Drivers"
316
316
if BSP_USING_ONCHIP_RTC
317
317
choice
318
318
prompt "Select clock source"
319
- default BSP_RTC_USING_LSE
319
+ default RTC_CLOCK_SOURCE_LXTAL
320
320
321
- config BSP_RTC_USING_LSE
321
+ config RTC_CLOCK_SOURCE_LXTAL
322
322
bool "RTC USING LSE"
323
323
324
- config BSP_RTC_USING_LSI
325
- bool "RTC USING LSI"
324
+ config RCU_RTCSRC_IRC32K
325
+ bool "RTC USING LSI(32K)"
326
+
327
+ config RCU_RTCSRC_IRC40K
328
+ bool "RTC USING LSI(40K)"
326
329
endchoice
330
+
331
+ if RT_USING_ALARM
332
+ choice
333
+ prompt "Select rtc alarm device"
334
+ default BSP_USING_ALARM0
335
+
336
+ config BSP_USING_ALARM0
337
+ bool "Enable RTC Alarm0"
338
+
339
+ config BSP_USING_ALARM1
340
+ bool "Enable RTC Alarm1"
341
+ endchoice
342
+ endif
327
343
endif
328
344
329
345
config BSP_USING_WDT
You can’t perform that action at this time.
0 commit comments