Hi NXP team,
We are using S32K344 EVK board and S32 design studio v3.5.
We want to use Clock_Ip_GetClockFrequency() function from ..../RTD/include/Clock_Ip.h file to calculate time in millisecs as per below code.
void BCC_MCU_WaitMs(uint16_t delay)
{
g_sysClk = (g_sysClk) ? g_sysClk : BCC_MCU_GetSystemClockFreq();
uint32_t cycles = (uint32_t) BCC_GET_CYCLES_FOR_MS(1U, g_sysClk);
/* Advance to next multiple of 4. Value 0x04U ensures that the number
* is not zero. */
cycles = (cycles & 0xFFFFFFFCU) | 0x04U;
for (; delay > 0U; delay--) {
BCC_WAIT_FOR_MUL4_CYCLES(cycles);
}
}
But in my SDK the Clock_Ip_GetClockFrequency() function is not enabled. How to enable this function?(Please find the attached image for your reference)
Please assist me to resolve this issue.
Thanks and regards,
Hareesh
解決済! 解決策の投稿を見る。
Hi @Hareesh
To enable the get clock frequency API, you have to activate it in the clock tool of Config Tools.
B.R.
VaneB
Hi @Hareesh
To enable the get clock frequency API, you have to activate it in the clock tool of Config Tools.
B.R.
VaneB