how to make a easy delay function by using the S32K144EVK board.

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

how to make a easy delay function by using the S32K144EVK board.

ソリューションへジャンプ
1,831件の閲覧回数
Guofred
Contributor III

Hi,

i want to make a easy delay function for the blinking LED, i found this function doesn't have execute and  jump the code end line. the details as below.

the attachment is the source code, would you like kindly help to share your comments or provide your blinking LED code for reference, thanks.

Guofred_0-1642605849944.png

Guofred_0-1642606627441.png

 

Best regards.

Guofred

 

 

0 件の賞賛
1 解決策
1,804件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Guofred

please refer to belowing picture.

Senlent_0-1642662494082.png

BR!

     Jim,

元の投稿で解決策を見る

4 返答(返信)
1,821件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Guofred

you can take a look at belowing function

 

file osif.h

/*!
* @brief Delays execution for a number of milliseconds.
*
* @param[in] delay Time delay in milliseconds.
*/
void OSIF_TimeDelay(const uint32_t delay);

 

BR!

     Jim,

0 件の賞賛
1,812件の閲覧回数
Guofred
Contributor III

Hi @Senlent ,

Thanks for your kindly help.

would you like kindly help to share your code for reference, may be osif.h and osif.c are need to add our project, i can't use this function directly, thanks.

Guofred_0-1642657494808.png

Guofred_1-1642657995154.png

Best regards.

Guofred

 

0 件の賞賛
1,805件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@Guofred

please refer to belowing picture.

Senlent_0-1642662494082.png

BR!

     Jim,

1,791件の閲覧回数
Guofred
Contributor III

Hi @Senlent ,

Thanks for your patience and kindly help.

Best regards.

Guofred

0 件の賞賛