Skip to content

Commit

Permalink
Update util.h
Browse files Browse the repository at this point in the history
Disable brownout detection via set bit register
  • Loading branch information
Zatupitel authored Jan 12, 2025
1 parent 70f5186 commit 5059274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flix/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ void printArray(const T (&arr)[N]) {

// Disable reset on low voltage
void disableBrownOut() {
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA);
}

0 comments on commit 5059274

Please sign in to comment.