From 6f912b553278bd8fe5f36170019652a5b3819978 Mon Sep 17 00:00:00 2001 From: cnlohr <lohr85@gmail.com> Date: Wed, 28 Jun 2023 05:03:53 -0400 Subject: [PATCH] Correct error with HSE. --- ch32v003fun/ch32v003fun.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ch32v003fun/ch32v003fun.c b/ch32v003fun/ch32v003fun.c index 7373c7c..eb0ebc4 100644 --- a/ch32v003fun/ch32v003fun.c +++ b/ch32v003fun/ch32v003fun.c @@ -1018,8 +1018,6 @@ void SystemInit() #if defined(FUNCONF_USE_HSE) && FUNCONF_USE_HSE - #define HSEBYP (FUNCONF_HSE_BYPASS)? - RCC->CTLR = RCC_HSION | RCC_HSEON | RCC_PLLON | HSEBYP; // Keep HSI and PLL on just in case, while turning on HSE // Values lifted from the EVT. There is little to no documentation on what this does. -- GitLab