[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Serial port comunications
- Date: Thu, 6 May 1999 08:04:16 +0100
- From: Nick.SIMON at syntegra.bt.co.uk (Nick.SIMON at syntegra.bt.co.uk)
- Subject: Serial port comunications
Yes, rtems lets you get at the serial ports, using the IO manager (see the
RTEMS C user's guide). However, your BSP has to set up a serial device
driver (look in c/src/lib/libbsp/<BSP>/console) and register the devices
with names (such as /dev/console, /dev/com1).
You don't say which BSP your PC uses, but I've had a quick scan through the
i386 BSPs and they all seem to just set up /dev/console which amy be mapped
to COM1 or COM2. If you want an independent port for your PC link, you'll
need to add another device, set to use the other com port. Or carefully
avoid using the console device, which has stdin and stdout mapped to it.
I'd be very suprised, however, if someone hasn't already added another
serial port to your BSP.
If you do have to to add another device yourself, it has to be initialised,
registered (with rtems_io_register_name) all the driver entry points will
have to use minor so they know which device they're being told about.
-- Nick Simon
> -----Original Message-----
> From: Xavier Valls [mailto:xavier.valls1 at upcnet.upc.es]
> Sent: 05 May 1999 16:21
> To: Rtems list
> Subject: Serial port comunications
> I have to comunicate two PC's using serial port, one of them
> works under
> RTEMS. Has RTEMS some special functions for serial port comunications?
> Is any documentation about it in the web?
> Thanks a lot,