From ab7bf961bca61cbac14c122eb759d567adc421c1 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Mon, 15 Jul 2024 12:13:28 -0700 Subject: [PATCH] commented out 20MHz setup. 3.3Mhz with 6x divisor for the main clock works fine and saves power. --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 243a2d1..58028fa 100644 --- a/main.c +++ b/main.c @@ -9,7 +9,8 @@ * extracted into separate source files and headers for configuration. */ -#define F_CPU 2000000UL +//#define F_CPU 2000000UL +#define F_CPU 3333333UL //These defines are mostly useful for when you want you editors LSP server to //function correctly. @@ -46,7 +47,7 @@ static void CLK_DisablePrescaler(void) int main(int argc, char **argv) { - CLK_DisablePrescaler(); + //CLK_DisablePrescaler(); while(true){ for(int i = 0; i < GatePulsesQty; i++){ ZCD_Poll();