summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-12-29 19:22:30 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-12-29 19:22:30 +0100
commit2063457f362ffcdf99ced198d7ccd0570c39afc7 (patch)
treea0aab66ab80949df72d83c999be91e0383bf3be3
parent8df0bd6997b6c32e93cae81438d0fe97066d9099 (diff)
Fixed F1 RCC bug.
-rw-r--r--rcc/rcc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rcc/rcc.cpp b/rcc/rcc.cpp
index 6028cdc..7e711f9 100644
--- a/rcc/rcc.cpp
+++ b/rcc/rcc.cpp
@@ -9,7 +9,7 @@ void rcc_init() {
// Enable HSE.
RCC.CR |= 0x10000;
- while(RCC.CR & 0x20000);
+ while(!(RCC.CR & 0x20000));
// Configure and enable PLL.
RCC.CFGR = 0x1d0000;