Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2005 12:30:02 +0800
From:      Kathy Quinlan <kat-free@kaqelectronics.dyndns.org>
To:        freebsd-hackers@freebsd.org
Subject:   gcc question
Message-ID:  <421D584A.90203@kaqelectronics.dyndns.org>

next in thread | raw e-mail | index | archive | help
Hi all,

I have some code that I build for two targets, one an Atmel uC and the 
other FreeBSD.

What is the best way to redefine getchar and putchar (in uC they use the 
serial port, in FreeBSD stdin stdout)

Or would I be better #ifdef the commands and making getchar only used in 
uC and my serial port handler in FreeBSD ??

Thanks for the help

Regards,

Kat.


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?421D584A.90203>