summaryrefslogtreecommitdiff
path: root/rcc
diff options
context:
space:
mode:
Diffstat (limited to 'rcc')
-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;