How to implement clock() function of C Library for TWRK60N512

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

How to implement clock() function of C Library for TWRK60N512

Jump to solution
1,436 Views
dhaval_v_shah
Contributor III

Hello,

 

I want to use C library function clock() part of time.h. This function being hardware dependent needs to be implemented specifically for the target hardware.

 

Can I make use of sysTick of Cortex M4 for its implementation?

 

suggestions/example implementation are welcome.

 

Regards,

d2v0

0 Kudos
1 Solution
990 Views
dhaval_v_shah
Contributor III

done!

 

Hint: Use SysTick and reflect ticks from clock() functions...

View solution in original post

0 Kudos
1 Reply
991 Views
dhaval_v_shah
Contributor III

done!

 

Hint: Use SysTick and reflect ticks from clock() functions...

0 Kudos