Bladeren bron

Reduce flash clock in 168 MHz overclock mode

teensy4-core
PaulStoffregen 9 jaren geleden
bovenliggende
commit
7dd78d023a
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +1
    -1
      teensy3/kinetis.h
  2. +2
    -2
      teensy3/mk20dx128.c

+ 1
- 1
teensy3/kinetis.h Bestand weergeven

@@ -572,7 +572,7 @@ enum IRQ_NUMBER_t {
#elif (F_CPU == 168000000)
#define F_PLL 168000000
#define F_BUS 56000000
#define F_MEM 33600000
#define F_MEM 28000000
#elif (F_CPU == 144000000)
#define F_PLL 144000000
#define F_BUS 48000000

+ 2
- 2
teensy3/mk20dx128.c Bestand weergeven

@@ -753,8 +753,8 @@ void ResetHandler(void)
#endif
// now program the clock dividers
#if F_CPU == 168000000
// config divisors: 168 MHz core, 56 MHz bus, 33.6 MHz flash, USB = 168 * 2 / 7
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(4);
// config divisors: 168 MHz core, 56 MHz bus, 28 MHz flash, USB = 168 * 2 / 7
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(5);
SIM_CLKDIV2 = SIM_CLKDIV2_USBDIV(6) | SIM_CLKDIV2_USBFRAC;
#elif F_CPU == 144000000
// config divisors: 144 MHz core, 48 MHz bus, 28.8 MHz flash, USB = 144 / 3

Laden…
Annuleren
Opslaan