From: Tomek Walkuski on
Hi group,

I want to communicate with serial port in Ada. What is the best choice
in your opinion? GNAT.Serial_Communications? Where can I find any
documentation about this (GCC GNAT Reference Manual says nothing about
this)?

--
Tomek
From: Anh Vo on
On Jun 20, 3:34 am, Tomek Walkuski <tomek.walku...(a)gmail.com> wrote:
> Hi group,
>
> I want to communicate with serial port in Ada. What is the best choice
> in your opinion? GNAT.Serial_Communications? Where can I find any
> documentation about this (GCC GNAT Reference Manual says nothing about
> this)?

Did you try the GCC GNAT User's Guide or read the self-documented code
package GNAT.Serial_Communications?

AV

From: Tomek Walkuski on
On 20 Cze, 14:41, Anh Vo <anhvofrc...(a)gmail.com> wrote:
> Did you try the GCC GNAT User's Guide or read the self-documented code
> package GNAT.Serial_Communications?
>
> AV

I've gnat-gcc-4.3.0 (Fedora 9) and I don't have g-sercom.ads under /
usr/lib/gcc/i386-redhat-linux/4.3.0/adainclude .

Am I something missing?
From: anon on
No Error! The standard GNAT system does not come with a Serial or UART
package. The package tree is a new addition (April 2008) so the
maintainers may not have this package yet or they may not include it
because it not apart of the Ada RM.

It might be included in June version of the GNAT-2008 package, but for
GNAT-2007 you will need to do a search and down load the set of files
that makes this package.

Note: you can find a copy of the serial communication package tree at:
http://gcc.gnu.org/viewcvs?view=rev&revision=134003

Then compile the set of files manually to create the serial communation
package. Now, you can either just copy and use then when you need this
package.

Note: If you know what your doing you can add the source and "*.ali" to
your GNAT system adainclude/adalib directories and the object files to
the "gnatlib" file.


In <cf8971db-feda-4632-8062-6bf9f8becb99(a)z66g2000hsc.googlegroups.com>, Tomek Walkuski <tomek.walkuski(a)gmail.com> writes:
>On 20 Cze, 14:41, Anh Vo <anhvofrc...(a)gmail.com> wrote:
>> Did you try the GCC GNAT User's Guide or read the self-documented code
>> package GNAT.Serial_Communications?
>>
>> AV
>
>I've gnat-gcc-4.3.0 (Fedora 9) and I don't have g-sercom.ads under /
>usr/lib/gcc/i386-redhat-linux/4.3.0/adainclude .
>
>Am I something missing?

From: Tomek Walkuski on
I have got GNAT.Serial_Communications sources from GCC CVS, renamed
packages and I am trying to compile:

gcc -c serial_com.adb
serial_com.adb:40:06: warning: "System.Crtl" is an internal GNAT unit
serial_com.adb:40:06: warning: use of this unit is non-portable and
version-dependent
serial_com.adb:126:32: expected type "Serial_Port" defined at
serial_com.ads:109
serial_com.adb:126:32: found private type "System.Address"
serial_com.adb:296:17: no candidate interpretations match the actuals:
serial_com.adb:296:17: missing argument for parameter "Status" in call
to "Close" declared at s-os_lib.ads:262
serial_com.adb:296:17: context requires function call, found procedure
name
gnatmake: "serial_com.adb" compilation error