We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6479cb0 commit f38ce10Copy full SHA for f38ce10
ports/atmel-samd/supervisor/port.c
@@ -203,9 +203,16 @@ safe_mode_t port_init(void) {
203
}
204
#endif
205
206
- // if (PM->RCAUSE.bit.BOD33 == 1 || PM->RCAUSE.bit.BOD12 == 1) {
207
- // return BROWNOUT;
208
- // }
+ #ifdef SAMD21
+ if (PM->RCAUSE.bit.BOD33 == 1 || PM->RCAUSE.bit.BOD12 == 1) {
+ return BROWNOUT;
209
+ }
210
+ #endif
211
+ #ifdef SAMD51
212
+ if (RSTC->RCAUSE.bit.BODVDD == 1 || RSTC->RCAUSE.bit.BODCORE == 1) {
213
214
215
216
217
if (board_requests_safe_mode()) {
218
return USER_SAFE_MODE;
0 commit comments