A guy recommended me to try to get things going with the working
mobo-serialport first before playing with linux drivers and serial
controllers.. probabily a good point to start at.

Anyhow I tried to used your cross-link.c to write ASCII to serialport
rtser0. I connected the cable to the dc motor drive which accepts
ASCII commands with CR(\r\n) at the end of every command line.
The light version of your code that I was testing with looks like:
http://pastebin.ca/690561

I'm trying to write two simple commands in the example, but I couldn't
get it working. Don't know why :/

First when I got that working it would be even nicer to be able to
give a argument to the binary which is a ASCII command(string) written
to rtser0.

thanks
/Bachman
On 10/09/2007, Jan Kiszka <[EMAIL PROTECTED]> wrote:
> Bachman Kharazmi wrote:
> > I've tried to make the pci serial controller visable to the 16550
> > driver by adding:
> > ## FROM 16550A.c
> > static int rt_16550_interrupt(rtdm_irq_t * irq_context)
> > {
> >       struct rt_16550_context *ctx;
> >       unsigned long base;
> >       int mode;
> >       int iir;
> >       uint64_t timestamp = rtdm_clock_read();
> >       int rbytes = 0;
> >       int events = 0;
> >       int modem;
> >       int ret = RTDM_IRQ_NONE;
> > // TEST
> > struct pci_dev *pdev = NULL;  // from
> > http://bachman.tor.lindesign.se/tmp/driver/sunix/snx_golden.c
> > pdev = pci_get_device(0, 0, pdev); // from
>                        ^^^^^^
> You need to provide the fitting vendor and device ID here. Then you have
> to call pci_device_enable on that pdev - if it's not NULL (ie. not
> found). That should tell us if it's already enough to enable the device.
>
> Jan
>
>
>

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to