aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann2009-07-20 15:32:28 +0200
committerUwe Hermann2009-07-20 15:32:28 +0200
commit4f43d8c622fddabfa891421b7d5f5daef2f364a9 (patch)
tree3e4ad699df48bbe03c43a5dbeefcd5de20a43320
parent50b1b50676ebdf97cc3de85b711976da62f848b9 (diff)
Fix some compiler warnings.
-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;
}
}