commented out 20MHz setup. 3.3Mhz with 6x divisor for the main clock works fine and saves power.

This commit is contained in:
jakeg00dwin 2024-07-15 12:13:28 -07:00
parent 4b014da8ac
commit ab7bf961bc
1 changed files with 3 additions and 2 deletions

5
main.c
View File

@ -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();