The following code, taken from RKRM but using
UNIT_VBLANK instead of UNIT_MICROHZ, fails to open
timer.device.
struct Library *TimerBase; /* global library pointer */
struct timerequest *TimerIO;
struct timeval *time1;
/* Allocate memory for timerequest and timeval
structures */
TimerIO=(struct timerequest *)AllocMem(sizeof(struct
timerequest),
MEMF_PUBLIC |
MEMF_CLEAR);
time1=(struct timeval *)AllocMem(sizeof(struct timeval),
MEMF_PUBLIC |
MEMF_CLEAR);
if (!TimerIO | !time1)
cleanexit(" Error: Can't allocate memory for I/O
structures\n",
RETURN_FAIL);
if (error=OpenDevice(TIMERNAME,UNIT_VBLANK,TimerIO,0))
cleanexit(" Error: Can't open
Timer.device\n",RETURN_FAIL);
/* Set up pointer for timer functions */
TimerBase = (struct Library
*)TimerIO->tr_node.io_Device;
/Martin Blom, martin@blom.org
Logged In: NO
"does not", obviously ...
Logged In: YES
user_id=50427
Yes... quite true. I've fixed this in rev 1.11 of timer_init.c