Hi Gabi,
On Mon, January 12, 2009 3:48 pm, Gabi Voiculescu wrote:
> What would be the best way to use the existing okl4 infrastructure to
> write data ta two serial ports?
On OKL4 3.0, the best way is to define two different <phys_device/>'s in
machine.xml (with names of, say, serial1_dev and serial2_dev), with their
respective memory and interrupt resources. Then you can allocate the two
devices to separate cells (using the <use_device /> element), and make a
small modification to libserial's resource_init() function to use one or
the other resources, depending on what it finds in the environment.
This of course assumes that you want two different cells writing to
separate serial ports. If you want a single cell to write to both, you'll
need to modify libserial to setup two serial devices (in serial_init) with
the different resources, and include an interface specifying which one to
write to / read from.
On OKL4 2.1, it may be easiest to setup a second serial device in vserial
server, and add an attribute to a virtual serial device that tracks which
underlying serial device it should be using.
Best regards,
Josh
_______________________________________________
Developer mailing list
[hidden email]
https://lists.okl4.org/mailman/listinfo/developer