[PATCH rtems 2/6] bsps/imxrt: Fix getting qtmr clock for i.MXRT11xx
Christian Mauderer
christian.mauderer at embedded-brains.de
Thu Jul 13 13:42:19 UTC 2023
The function returned a multiplexer value instead of the frequency.
---
bsps/arm/imxrt/mcux-sdk/drivers/qtmr_1/fsl_qtmr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bsps/arm/imxrt/mcux-sdk/drivers/qtmr_1/fsl_qtmr.c b/bsps/arm/imxrt/mcux-sdk/drivers/qtmr_1/fsl_qtmr.c
index 4c8bd71be5..33271d6e9a 100644
--- a/bsps/arm/imxrt/mcux-sdk/drivers/qtmr_1/fsl_qtmr.c
+++ b/bsps/arm/imxrt/mcux-sdk/drivers/qtmr_1/fsl_qtmr.c
@@ -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
--
2.35.3
More information about the devel
mailing list