Przeglądaj źródła

When overclocking the CPU 133%, overclock flash by 40% too

main
PaulStoffregen 10 lat temu
rodzic
commit
2b07457405
2 zmienionych plików z 3 dodań i 3 usunięć
  1. +2
    -2
      teensy3/mk20dx128.c
  2. +1
    -1
      teensy3/mk20dx128.h

+ 2
- 2
teensy3/mk20dx128.c Wyświetl plik

@@ -438,8 +438,8 @@ void ResetHandler(void)
// now we're in PBE mode

#if F_CPU == 168000000
// config divisors: 168 MHz core, 56 MHz bus, 28 MHz flash
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(5);
// config divisors: 168 MHz core, 56 MHz bus, 33.6 MHz flash
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(4);
#elif F_CPU == 144000000
// config divisors: 144 MHz core, 48 MHz bus, 28.8 MHz flash
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(4);

+ 1
- 1
teensy3/mk20dx128.h Wyświetl plik

@@ -44,7 +44,7 @@

#if (F_CPU == 168000000)
#define F_BUS 56000000
#define F_MEM 28000000
#define F_MEM 33600000
#elif (F_CPU == 144000000)
#define F_BUS 48000000
#define F_MEM 28800000

Ładowanie…
Anuluj
Zapisz