Mail Archives: djgpp/1997/10/07/14:40:27
Nate Eldredge <eldredge AT ap DOT net> wrote:
> At 05:03 10/6/1997 PDT, Alex Holden wrote:
> >I am just starting a project in DJGPP (A PIC17C75XX programmer), which
> >I want to be able to port to Linux at a later stage.
To Alex: Take a look to other PIC programmers for Linux ;-)
> It will use a
> >colour text interface, possibly the mouse,
To Alex: Easy solution: curses, really interesting: TVision.
> and will need to access the
> >serial port directly (to communicate with the device programmer).
To Alex: That's the more complex thing in Linux, the other is exact timing for
the signals.
> >The problem is that I have no experience of Linux programming
> >whatsoever, and so I need some advice on exactly what I should do/avoid
> >doing, to make the job of porting the program to Linux as painless as
> >possible.
> If you just want to do vanilla serial port access, you can read and write
> the appropriate /dev/ttySx device. There are ioctl() calls to change the
> baud rate and stuff; see the man pages.
No, he wants to touch all the bits by hand, no baud rate. I don't know if ioctl
provides it.
> If you need to poke the port
> directly, see the "Linux I/O port programming mini-HOWTO".
That's what he want.
> > I particularly would like to know how you set up/access the
> >serial port in Linux, and whether it's possible to do direct console io
> >(gotoxy(), intensevideo(), that type of thing).
> I don't think you can, but I could be wrong. If it doesn't *have* to be
> interactive, you could go with the usual Unix tradition of command-line
> invocation with hairy options.
He can use TVision if the target is Linux, RHIDE doesn't use command line ;-)))
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -