This commit is contained in:
Oleksandr Masliuchenko 2026-02-08 21:32:00 +03:00 committed by GitHub
commit 35d37cbb3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -128,6 +128,13 @@ pll_setup(pll_hw_t *pll, uint32_t mul, uint32_t postdiv)
pll->prim = ((postdiv1 << PLL_PRIM_POSTDIV1_LSB)
| (postdiv2 << PLL_PRIM_POSTDIV2_LSB));
pll->pwr = PLL_PWR_DSMPD_BITS;
// Extra wait here. TwoTrees SK1 toolhead board cannot boot normally without
// these waits.
// TODO: find a more elegant way for this waiting loop, maybe wait for some
// bit (waiting for pll->cs like the loop above does not seem to work)
for(volatile int i=0; i<1000; i++)
;
}
static void