bsps/imxrt: Fix getting qtmr clock for i.MXRT11xx

The function returned a multiplexer value instead of the frequency.
This commit is contained in:
Christian Mauderer
2023-06-06 15:46:08 +02:00
parent ffd8004cae
commit b831014b12

View File

@@ -99,7 +99,7 @@ uint32_t QTMR_get_src_clk(TMR_Type *base)
#elif IMXRT_IS_MIMXRT11xx
(void) base;
return CLOCK_GetRootClockMux(kCLOCK_Root_Bus);
return CLOCK_GetRootClockFreq(kCLOCK_Root_Bus);
#else
#error Getting Timer clock frequency is not implemented for this chip
#endif