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.
2 parents 317bb6d + f38ce10 commit ea95eb7Copy full SHA for ea95eb7
ports/atmel-samd/supervisor/port.c
@@ -201,9 +201,16 @@ safe_mode_t port_init(void) {
201
}
202
#endif
203
204
- // if (PM->RCAUSE.bit.BOD33 == 1 || PM->RCAUSE.bit.BOD12 == 1) {
205
- // return BROWNOUT;
206
- // }
+ #ifdef SAMD21
+ if (PM->RCAUSE.bit.BOD33 == 1 || PM->RCAUSE.bit.BOD12 == 1) {
+ return BROWNOUT;
207
+ }
208
+ #endif
209
+ #ifdef SAMD51
210
+ if (RSTC->RCAUSE.bit.BODVDD == 1 || RSTC->RCAUSE.bit.BODCORE == 1) {
211
212
213
214
215
if (board_requests_safe_mode()) {
216
return USER_SAFE_MODE;
0 commit comments