A SERVICE OF

logo

iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 177
int InstallUserTimerFunction_us(unsigned time,void (*fun)(void));
/*
time unit is 0.1 us.
for example:
If want timer generate interrupt for every 0.5ms(500 us=5000*0.1us)
(That is to say system will call your function once every 0.5 ms)
just use
void fun(void)
{
...
}
...
InstallUserTimerFunction_us(5000,fun);
*/
int InstallUserTimerFunction_ms(unsigned time,void (*fun)(void));
/*
time unit is ms.
for example:
If want timer generate interrupt for every 1 second(1 sec=1000 ms)
(That is to say system will call your function once every 1 sec.)
just use
void fun(void)
{
...
}
...
InstallUserTimerFunction_ms(1000,fun);
*/
void StopUserTimerFun(void);
/* For PIO pins on I/O expansion BUS */