forked from Imagelibrary/rtems
bsps/imxrt: Fix getting qtmr clock for i.MXRT11xx
The function returned a multiplexer value instead of the frequency.
This commit is contained in:
@@ -99,7 +99,7 @@ uint32_t QTMR_get_src_clk(TMR_Type *base)
|
|||||||
#elif IMXRT_IS_MIMXRT11xx
|
#elif IMXRT_IS_MIMXRT11xx
|
||||||
(void) base;
|
(void) base;
|
||||||
|
|
||||||
return CLOCK_GetRootClockMux(kCLOCK_Root_Bus);
|
return CLOCK_GetRootClockFreq(kCLOCK_Root_Bus);
|
||||||
#else
|
#else
|
||||||
#error Getting Timer clock frequency is not implemented for this chip
|
#error Getting Timer clock frequency is not implemented for this chip
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user