PreviousNext
Help > Software > The <platform.h> Library for C.impl > System
System

void reset(void)

Immediately reset the system.

 

void delay_ms(unsigned long milliseconds)

Generate specified delay in milliseconds.

 

void set_timer(unsigned long milliseconds, void (*intHandler)(void) )

Enable an internal timer counter which calls the specified function ‘intHandler()’ every time when at least the given number of milliseconds have passed. The timer can be disabled by setting 0 in the ‘milliseconds’ parameter.

It is an important detail to note that the handler function should be supplied in its calling format, i.e. func(), not func.

As an example:

set_timer( 1000, tmr1000() );    // call the tmr1000() function every 1000ms

C.impl allows multiple simultaneously working timers, each calling a different handler function.