This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: Using the second serial port on ARM-E7T
- From: "Jacques Ehrlich" <ehrlich at lcpc dot fr>
- To: "Ravi Kumar B S" <ravikbs at mindtree dot com>, "Jonathan Larmour" <jlarmour at redhat dot com>
- Cc: "Ecos-Discuss" <ecos-discuss at sources dot redhat dot com>
- Date: Mon, 15 Apr 2002 09:03:27 +0200
- Subject: RE: [ECOS] Using the second serial port on ARM-E7T
>I tried something like :
> fp = fopen("/dev/ser0", "rw");
> ...
> fprintf(fp, "hello\n");
> ...
>
> without success.
Finally, it works !
The error was :
fp = fopen("/dev/ser0", "rw")
To be ok you must open two different "files":
out = fopen("/dev/ser0", "w")
in = fopen("/dev/ser0", "r")
--
Jacques Ehrlich | LIVIC (INRETS-LCPC) |
http://www.lcpc.fr
Laboratoire sur les Interactions Véhicules, Infrastructure, Conducteurs
tel:33(0)1 4043 2903 | fax:33(0)1 4043 2930 | mob:33(0)6 6336 9499
---
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss