mirror of
https://github.com/okalachev/flix.git
synced 2025-07-29 04:19:00 +00:00
Fix working on ESP32-S3 (#8)
Disable brown-out detector in a more correct way: clear only enable bit instead of clearing the whole register. --------- Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
This commit is contained in:
parent
60fbe1c450
commit
7d2d54a94d
@ -40,5 +40,5 @@ void printArray(const T (&arr)[N]) {
|
|||||||
|
|
||||||
// Disable reset on low voltage
|
// Disable reset on low voltage
|
||||||
void disableBrownOut() {
|
void disableBrownOut() {
|
||||||
WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG, 0);
|
REG_CLR_BIT(RTC_CNTL_BROWN_OUT_REG, RTC_CNTL_BROWN_OUT_ENA);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
// Dummy file to make it possible to compile simulator with Flix' util.h
|
// Dummy file to make it possible to compile simulator with Flix' util.h
|
||||||
|
|
||||||
#define WRITE_PERI_REG(addr, val) {}
|
#define WRITE_PERI_REG(addr, val) {}
|
||||||
|
#define REG_CLR_BIT(_r, _b) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user