fixes set_timer_handler call

This commit is contained in:
sommersoft 2019-02-27 19:28:59 -06:00
parent 9d20380bd4
commit 4d47ce5c60

View File

@ -146,7 +146,7 @@ void frequencyin_reference_tc_init() {
return; return;
} }
#ifdef SAMD21 #ifdef SAMD21
set_timer_handler(reference_tc, dpll_gclk, TC_HANDLER_FREQUENCYIN); set_timer_handler(true, reference_tc, TC_HANDLER_FREQUENCYIN);
turn_on_clocks(true, reference_tc, 0); turn_on_clocks(true, reference_tc, 0);
#endif #endif
// use the DPLL we setup so that the reference_tc and freqin_tc(s) // use the DPLL we setup so that the reference_tc and freqin_tc(s)
@ -155,7 +155,7 @@ void frequencyin_reference_tc_init() {
if (dpll_gclk == 0xff) { if (dpll_gclk == 0xff) {
frequencyin_samd51_start_dpll(); frequencyin_samd51_start_dpll();
} }
set_timer_handler(reference_tc, dpll_gclk, TC_HANDLER_FREQUENCYIN); set_timer_handler(true, reference_tc, TC_HANDLER_FREQUENCYIN);
turn_on_clocks(true, reference_tc, dpll_gclk); turn_on_clocks(true, reference_tc, dpll_gclk);
#endif #endif