aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rcc.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/rcc.c b/lib/rcc.c
index 5f10093..43e6887 100644
--- a/lib/rcc.c
+++ b/lib/rcc.c
@@ -102,6 +102,9 @@ int rcc_osc_ready_int_flag(osc_t osc)
return ((RCC_CIR & LSIRDYF) != 0);
break;
}
+
+ /* Shouldn't be reached. */
+ return -1;
}
void rcc_css_int_clear(void)
@@ -133,6 +136,9 @@ int rcc_osc_ready(osc_t osc)
return ((RCC_CSR & LSIRDY) != 0);
break;
}
+
+ /* Shouldn't be reached. */
+ return -1;
}
void rcc_osc_on(osc_t osc)
@@ -196,6 +202,11 @@ void rcc_osc_bypass_enable(osc_t osc)
case LSE:
RCC_BDCR |= LSEBYP;
break;
+ case PLL:
+ case HSI:
+ case LSI:
+ /* Do nothing, only HSE/LSE allowed here. */
+ break;
}
}
@@ -208,5 +219,10 @@ void rcc_osc_bypass_disable(osc_t osc)
case LSE:
RCC_BDCR &= ~LSEBYP;
break;
+ case PLL:
+ case HSI:
+ case LSI:
+ /* Do nothing, only HSE/LSE allowed here. */
+ break;
}
}