simulavr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Simulavr-devel] Re: Timers


From: Theodore A. Roth
Subject: [Simulavr-devel] Re: Timers
Date: Tue, 9 Mar 2004 09:39:49 -0800 (PST)


On Mon, 8 Mar 2004, Keith Gudger wrote:

> Ted:
>
> I've got the timers done, as far as that goes.  Two things:
>
> The current timers.c file doesn't connect the OCR regs to
> the timer16.  Would you like to me to look into this?  It may mean that I
> have to declare the OCR regs *after* the timer in the atxxx.h files.
> (putting the I/O addresses out of order.)

Send me your patch so I can get a better idea of what you are trying to
do.

>
> I'm using the *data field in a couple of my vdev_creates.  If I forget to
> put the .data field in the at43usb3xx.h file, when vdev_create gets called
> I get a segmentation fault.  Should I put a check in my xyz_create()
> function to check for this, or does it belong in devsupp.c?  I guess
> there's no easy way to initialize the  struct io_reg_defn *reg ?

Sanity checks should be done in the *_create() functions if needed since
it's only a one time performance hit.

Can you hide the data in the module and use differnent *_create()
functions?

Ted Roth




reply via email to

[Prev in Thread] Current Thread [Next in Thread]