1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

new timer convenience function

This commit is contained in:
Bogdan Marinescu 2011-10-09 19:41:30 +03:00
parent a9e69c72d4
commit 720d62909e

View File

@ -135,6 +135,7 @@ void platform_timer_sys_start();
#define platform_timer_read( id ) platform_timer_op( id, PLATFORM_TIMER_OP_READ, 0 )
#define platform_timer_start( id ) platform_timer_op( id, PLATFORM_TIMER_OP_START, 0 )
#define platform_timer_get_diff_crt( id, v ) platform_timer_get_diff_us( id, platform_timer_read( id ), v )
#define platform_timer_sys_delay( us ) platform_timer_delay( PLATFORM_TIMER_SYS_ID, us )
// *****************************************************************************
// CAN subsection