|
|
|
|
|
|
|
|
// now we're in PBE mode |
|
|
// now we're in PBE mode |
|
|
|
|
|
|
|
|
#if F_CPU == 168000000 |
|
|
#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 |
|
|
#elif F_CPU == 144000000 |
|
|
// config divisors: 144 MHz core, 48 MHz bus, 28.8 MHz flash |
|
|
// 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); |
|
|
SIM_CLKDIV1 = SIM_CLKDIV1_OUTDIV1(0) | SIM_CLKDIV1_OUTDIV2(2) | SIM_CLKDIV1_OUTDIV4(4); |