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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

702件の閲覧回数
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 件の賞賛
返信
1 返信

549件の閲覧回数
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 件の賞賛
返信