Browse Source

Add recommended 24MHz crystal setting

Later, we should check if we can reduce the bias, also (For me, it works with minimal bias -but I think should should keep it for now, as it is).
teensy4-core
Frank 4 years ago
parent
commit
113947c508
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      teensy4/startup.c

+ 1
- 0
teensy4/startup.c View File

IOMUXC_GPR_GPR14 = 0x00AA0000; IOMUXC_GPR_GPR14 = 0x00AA0000;
__asm__ volatile("mov sp, %0" : : "r" ((uint32_t)&_estack) : ); __asm__ volatile("mov sp, %0" : : "r" ((uint32_t)&_estack) : );
#endif #endif
PMU_MISC0_SET = 1<<3; //Use bandgap-based bias currents for best performance (Page 1175)
// pin 13 - if startup crashes, use this to turn on the LED early for troubleshooting // pin 13 - if startup crashes, use this to turn on the LED early for troubleshooting
//IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_03 = 5; //IOMUXC_SW_MUX_CTL_PAD_GPIO_B0_03 = 5;
//IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03 = IOMUXC_PAD_DSE(7); //IOMUXC_SW_PAD_CTL_PAD_GPIO_B0_03 = IOMUXC_PAD_DSE(7);

Loading…
Cancel
Save