OnTimer4

Name
OnTimer4 - Call a function at fixed interval

Description
Call a function at a fixed interval using Timer 4.
 * OnTimer4 works on 32-bit, x6j50 and xxj53 boards only.

The function is called indefinitely until Int.detach is called.

If Timer 4 is free, OnTimer4 will return the number of the interrupt, otherwise it will return "false".

Multi-call to OnTimer4 is not allowed. Function will then return "false" and produce "Error : interrupt TIMER4 is already used !" on the debug output.

If overwrite is needed, always use Int.detach with the interrupt number before new declaration.

beta 9.05
 * Since

Syntax
void OnTimer4(void (*callback), u8 timediv, u16 delay);

Function called each time Timer4 trigger an interrupt. No argument is allowed in this function.
 * callback

INT_MICROSEC, INT_MILLISEC or INT_SEC (for ms, us and sec.)
 * timediv

time before interrupt is triggered (using timediv as unit)
 * delay

Comments
OnTimer4 works on 32-bit, x6j50 and xxj53 boards only.