Example delay function using the JN-AN-1220 with JN-SW-4170 SDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example delay function using the JN-AN-1220 with JN-SW-4170 SDK

701 Views
jeanbony
Contributor II

Hi Guys, 

I want to implement a simple delay function that takes a x_ms (time in milli-second) as input argument using related functions of the JN-SW-4170 SDK.

Ex:

void delay_ms (uint32_t d_ms)

{

    /*JN-SW-4170 timer functions call to implemnt a delay of d_ms ?*/

}

Can you provide an example based on existing functions of the JN-SW4170 to implement such delay?

Thanks,

0 Kudos
Reply
1 Reply

548 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello Jean Bony,


Could you please verify in your code, by using the bAHI_GetClkSource function, which is the clock used for your example?

For more information about this function, please check the Integrated Peripherals API User Guide (page 168).

Regards,

Estephania

0 Kudos
Reply