From 2063457f362ffcdf99ced198d7ccd0570c39afc7 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 29 Dec 2012 19:22:30 +0100 Subject: Fixed F1 RCC bug. --- rcc/rcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rcc') 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; -- cgit v1.2.3