Skip to content

Commit

Permalink
Update clock frequencies to match the infinity ergodox
Browse files Browse the repository at this point in the history
  • Loading branch information
belak committed Jan 9, 2017
1 parent a702f46 commit 49a00a5
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions keyboards/whitefox/mcuconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,10 @@

/* PEE mode - 48MHz system clock driven by external crystal. */
#define KINETIS_MCG_MODE KINETIS_MCG_MODE_PEE
#define KINETIS_PLLCLK_FREQUENCY 96000000UL
#define KINETIS_SYSCLK_FREQUENCY 48000000UL

#if 0
/* FEI mode - 48 MHz with internal 32.768 kHz crystal */
#define KINETIS_MCG_MODE KINETIS_MCG_MODE_FEI
#define KINETIS_MCG_FLL_DMX32 1 /* Fine-tune for 32.768 kHz */
#define KINETIS_MCG_FLL_DRS 1 /* 1464x FLL factor */
#define KINETIS_SYSCLK_FREQUENCY 47972352UL /* 32.768 kHz * 1464 (~48 MHz) */
#define KINETIS_CLKDIV1_OUTDIV1 1
#define KINETIS_CLKDIV1_OUTDIV2 1
#define KINETIS_CLKDIV1_OUTDIV4 2
#define KINETIS_BUSCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY
#define KINETIS_FLASHCLK_FREQUENCY KINETIS_SYSCLK_FREQUENCY/2
#endif
#define KINETIS_PLLCLK_FREQUENCY 72000000UL
#define KINETIS_SYSCLK_FREQUENCY 72000000UL
#define KINETIS_BUSCLK_FREQUENCY 36000000UL
#define KINETIS_FLASHCLK_FREQUENCY 24000000UL

/*
* SERIAL driver system settings.
Expand Down

0 comments on commit 49a00a5

Please sign in to comment.