From 4d47ce5c60d5e024b9a95f58372bfbb27772ef1a Mon Sep 17 00:00:00 2001 From: sommersoft Date: Wed, 27 Feb 2019 19:28:59 -0600 Subject: [PATCH] fixes set_timer_handler call --- ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c index 2119605878..30fc438277 100644 --- a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c +++ b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c @@ -146,7 +146,7 @@ void frequencyin_reference_tc_init() { return; } #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); #endif // 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) { 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); #endif