delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/10/17/06:45:47

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Newsgroups: comp.os.msdos.djgpp
Subject: Re: reading from com1: => driving me nuts
From: muellernick AT gmx DOT de (=?ISO-8859-1?Q?Nick_M=FCller?=)
Date: Mon, 17 Oct 2005 12:40:29 +0200
Message-ID: <1h4h4t6.bxmfkh1caen33N%muellernick@gmx.de>
References: <1h4c4cp.1b942cr1g5grtnN%muellernick AT gmx DOT de> <55g0l1loonul6cqq14k5svi8lr72g67es1 AT 4ax DOT com>
Organization: messy desktop AKA messy shop
User-Agent: MacSOUP/D-2.7 (unregistered for 171 days)
NNTP-Posting-Host: 84.57.14.183
X-Trace: news.arcor-ip.de 1129545631 84.57.14.183 (17 Oct 2005 12:40:31 +0200)
Lines: 44
X-Complaints-To: abuse AT arcor-ip DOT de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

AndrewC <andspamtrap AT exemail DOT doty DOT com DOT au> wrote:

> >What am I doing wrong?
> Assuming that you are a embedded C programmer didn't it strike you are
> strange that you can't read or write to the uart registers?

Not at all! If I have a <stdio.h> I prefer using it.

> If you can't access them then have a think about the API/library you are
> using as it may not give you the control you need to talk to an SBC.

But that's what libs are for. Hide the implementation, let the OS or the
lib do the job and present a uniform interface to the C-programmer.
Independant of the platform.


> If you want the full source code to a sniffer I wrote using DJGPP a
> long time ago then please respond to this posting or modify the
> respond to email.

Thanks for the offer. I got it fully working without messing around with
UARTS and hardware I don't want to know or I don't want to assume that
it exists on the PC the programm is running at.

On the uC side, my attitude is quite the inverse.


> If you do want to use Windows and program a windows based app then
> grab the following serial comms library, but with this you will need
> to use MSVC++
>       http://home.ict.nl/~ramklein/Projects/Serial.html

Sorry if you got that wrong. I just do the development under Windows
(because of the envorinment).

> Hope this helps.

Just in convincing me to stay with what the standard offers. ;-)

Thanks,
Nick
-- 
Motor Modelle // Engine Models
http://www.motor-manufaktur.de

- Raw text -


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