summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/modmachine.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/modmachine.c')
-rw-r--r--stmhal/modmachine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/modmachine.c b/stmhal/modmachine.c
index c5f33146f7..cc5ae3499b 100644
--- a/stmhal/modmachine.c
+++ b/stmhal/modmachine.c
@@ -68,7 +68,7 @@ void machine_init(void) {
if (PWR->CSR & PWR_CSR_SBF) {
// came out of standby
reset_cause = PYB_RESET_DEEPSLEEP;
- PWR->CR = PWR_CR_CSBF;
+ PWR->CR |= PWR_CR_CSBF;
} else
#endif
{
@@ -86,7 +86,7 @@ void machine_init(void) {
}
}
// clear RCC reset flags
- RCC->CSR = RCC_CSR_RMVF;
+ RCC->CSR |= RCC_CSR_RMVF;
}
// machine.info([dump_alloc_table])