www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/07/14:40:27

Message-Id: <m0xIYlP-000S24C@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT edu DOT ar>
Organization: INTI
To: Nate Eldredge <eldredge AT ap DOT net>, bigal2000 AT hotmail DOT com
Date: Tue, 7 Oct 1997 15:40:21 +0000
MIME-Version: 1.0
Subject: Re: Writing code for both DJGPP and Linux.
CC: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019