Fwd: Connect RTEMS with Arduino Serial Port

César Rodríguez Cerro ces.rodriguez.c at gmail.com
Sun Jul 30 14:53:54 UTC 2017


---------- Forwarded message ----------
From: César Rodríguez Cerro <ces.rodriguez.c at gmail.com>
Date: 2017-07-30 16:50 GMT+02:00
Subject: Re: Connect RTEMS with Arduino Serial Port
To: Chris Johns <chrisj at rtems.org>


Chris,

Thank you very much for your help, I solved my problem, the serial device
is /dev/com1.

Best regards.

2017-07-26 1:22 GMT+02:00 Chris Johns <chrisj at rtems.org>:

> On 25/07/2017 22:02, César Rodríguez Cerro wrote:
> >
> > Sorry, I´ve made some changes.
> >
> > Hi everyone,
> >
> > I built RTEMS in Ubuntu for a pc386 bsp with POSIX. I´m trying to
> connect RTEMS
> > with Arduino Serial Port and then emulate it with Qemu.
> >
> > Here is my code:
> >
> > Qemu command line:
> >
> > sudo qemu-system-i386 -serial /dev/ttyACM0 -hda controladorA
> >
>
> Is '/dev/ttyACM0' a device on your host?
>
> > myProgram.c
> >
> > #include <pthread.h>
> > #include <signal.h>
> > #include <stdio.h>
> > #include <string.h>
> > #include <unistd.h>
> > #include "displayA.h"
> >
> > #include <time.h>
> > #include <sched.h>
> > #include <bsp.h>
> > #include <stdlib.h>
> >
> > #include <uart.h>
> > #include <termios.h>
> > #include <rtems.h>
> > #include <rtems/libio.h>
> > #include <rtems/console.h>
> >
> > #include <fcntl.h>
> > #include <sys/types.h>
> > #include <sys/stat.h>
> >
> > int *POSIX_Init()
> > {
> >
> > int fd = open("/dev/ttyACM0",O_RDONLY);
>
> The serial devices on the PC BSP are '/dev/com1', '/dev/com2', etc for
> legacy
> serial ports and '/dev/pcicom1' and so on for PCI UART boards.
>
> The source references are:
>
> https://git.rtems.org/rtems/tree/c/src/lib/libbsp/i386/pc386
> /console/conscfg.c
> https://git.rtems.org/rtems/tree/c/src/lib/libbsp/i386/pc386
> /console/uart_bus_pci.c#n387
>
> Chris
>



-- 
*César Rodríguez Cerro (Ingeniería Informática Carlos III, Madrid)*



-- 
*César Rodríguez Cerro (Ingeniería Informática Carlos III, Madrid)*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20170730/efdf0374/attachment-0002.html>


More information about the users mailing list