From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cc65ab136f46904d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j25g2000vbr.googlegroups.com!not-for-mail From: tonyg Newsgroups: comp.lang.ada Subject: Re: GNAT.Serial_Communications Date: Thu, 21 Apr 2011 03:14:23 -0700 (PDT) Organization: http://groups.google.com Message-ID: <916de306-53f7-4f19-9cac-03914ea6dff8@j25g2000vbr.googlegroups.com> References: <31dd80b2-3fd3-4078-8774-c396a52c94a0@r6g2000vbz.googlegroups.com> <0d509f1c-4ca7-4595-a026-65c108558d76@bl1g2000vbb.googlegroups.com> <35515c03-f565-4fc4-ac1c-e9b7268123b3@dn9g2000vbb.googlegroups.com> <1144e8e4-4193-4ffd-a8d2-145c38993eb2@p16g2000vbi.googlegroups.com> <6301289c-f450-4d7f-8391-01e17d2555b9@z27g2000prz.googlegroups.com> <140e4937-ba03-4384-8206-f24b88de1b1c@v16g2000vbq.googlegroups.com> NNTP-Posting-Host: 82.46.232.121 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1303380863 4911 127.0.0.1 (21 Apr 2011 10:14:23 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Apr 2011 10:14:23 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j25g2000vbr.googlegroups.com; posting-host=82.46.232.121; posting-account=28F2IwkAAACL1Z5nRC-dE7zuvWdbWC7P User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.16) Gecko/20110323 Ubuntu/10.04 (lucid) Firefox/3.6.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19918 Date: 2011-04-21T03:14:23-07:00 List-Id: Here are the 'monkey with a spanner' changes I have done, :o) g-sercom.ads type Flow_Control is (None, Active); procedure Set (Port : Serial_Port; Rate : Data_Rate := B9600; Bits : Data_Bits := CS8; Stop_Bits : Stop_Bits_Number := One; Parity : Parity_Check := None; Block : Boolean := True; Timeout : Duration := 10.0; Flow : Flow_Control := Active); g-sercom.adb C_Flow_Control : Constant array (Flow_Control) of unsigned := (None => 0, Active => CRTSCTS); procedure Set (Port : Serial_Port; Rate : Data_Rate := B9600; Bits : Data_Bits := CS8; Stop_Bits : Stop_Bits_Number := One; Parity : Parity_Check := None; Block : Boolean := True; Timeout : Duration := 10.0; Flow : Flow_Control := Active) Current.c_cflag := C_Data_Rate (Rate) or C_Bits (Bits) or C_Stop_Bits (Stop_Bits) or C_Parity (Parity) or CLOCAL or CREAD or C_Flow_Control (Flow); what do you think? I have tried to maintain compatibility.