9fans archive / 1999 / 06 / 50 / prev next From: jmk@pla... jmk@pla... Subject: [9fans] Hooking up to a timer in a driver Date: Mon, 21 Jun 1999 23:20:49 -0400 cpane@met...: >It looks like if you want to get interrupted you insert a call to your >clock routine inside the clock() function in pc/clock.c. Yes, you can do that. Brazil has slightly generalised this by having a routine which drivers can call to add a function to a linked-list of functions to be called per clock tick, so there are no dependancies in clock.c for the uart, mouse, etc. --jim