[okl4-developer] About jiffies in wombat
Nelson Tam
nelson at ok-labs.com
Thu Jan 10 13:56:26 EST 2008
Hi Kashin,
On 09/01/2008, at 4:29 AM, kashin Lin wrote:
> when i build okl4 with "driver" example, i got following warnings
> and abort building process.
The function "iguana_getenv()" is defined in libs/iguana/src/env.c.
The header
declaration is in libs/iguana/include/env.h. Please check that the
header file
is included in drivers_example.c.
> i have some addition question about timer driver:
> what does"handling timeouts correctly" mean?
> does it mean i should check if timer's period setting effectively?
> or there are some actions i should do when timeout occurs? (ex: ?)
Two things:
1. like you said, setting a periodic timer such that you get periodic
timeouts
2. calling current_time() and looking at the results
> what should i implement in "device_interrupt_impl" ?
> what does the return value indicate?
Typically a few things:
- acknowledge the interrupt on the device, such as clearing
interrupt bits, if
needed
- do whatever is appropriate depending on the reason for the
interrupt, such as
handling timer overflows etc.
- the return value is given back to the device server. The device
server is free
to do whatever it wants with the return value
Enjoy,
Nelson.
--
(nt)
More information about the Developer
mailing list