If I need to init ADC and QDC, and they both use XBARA, and `CLOCK_EnableClock(kCLOCK_Xbar1);` is invoked twice.
Would it be a problem that kCLOCK_Xbar1 enable twice? Is there a function I can use to know if the module already has been enabled before I try to enable the module?
已解决! 转到解答。
Hello @5angxr,
It is not a problem to use "CLOCK_EnableClock(kCLOCK_Xbar1);" twice, this because the clock will be enabled.
Also, to know if the clock is enabled you can see the bits 22 and 23 in the register called "CCM Clock Gating Register 2" where is in the chapter 14.7.23 in the RM. As shows the next image:
Also, if you experience any issue, do not hesitate to let me know.
BR
Habib
Hello @5angxr,
It is not a problem to use "CLOCK_EnableClock(kCLOCK_Xbar1);" twice, this because the clock will be enabled.
Also, to know if the clock is enabled you can see the bits 22 and 23 in the register called "CCM Clock Gating Register 2" where is in the chapter 14.7.23 in the RM. As shows the next image:
Also, if you experience any issue, do not hesitate to let me know.
BR
Habib