diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-12-29 19:22:30 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-12-29 19:22:30 +0100 |
commit | 2063457f362ffcdf99ced198d7ccd0570c39afc7 (patch) | |
tree | a0aab66ab80949df72d83c999be91e0383bf3be3 /rcc | |
parent | 8df0bd6997b6c32e93cae81438d0fe97066d9099 (diff) |
Fixed F1 RCC bug.
Diffstat (limited to 'rcc')
-rw-r--r-- | rcc/rcc.cpp | 2 |
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; |