To implement C/C++ delay() for MPC5748G(S32 DS)

cancel
Showing results for 
Search instead for 
Did you mean: 

To implement C/C++ delay() for MPC5748G(S32 DS)

440 Views
barkly_lin
Contributor III

Hi

Just found someone implement delay() function with interrupt + timer by using C language.

Is it possible to achieve that with easier way? or S32 DS may already has function available in library?

Regards,

0 Kudos
1 Reply

256 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

using PIT is the right way. If you are using SDK - there is PIT module which can be used for timing. 

Jiri

0 Kudos