A patch was sent to this email list on 2012-JAN-16 which provided a fix for
the rate constants on ARM:

https://sourceforge.net/p/synalist/mailman/message/28681870/

I haven't tested this, but here is the relevant part:

Index: synaser.pas
===================================================================
--- synaser.pas (revision 137)
+++ synaser.pas (working copy)
@@ -200,7 +200,11 @@
   {$IFDEF DARWIN}
   MaxRates = 18;  //MAC
   {$ELSE}
-   MaxRates = 30; //UNIX
+    {$IFDEF CPUARM}
+    MaxRates = 19; //UNIX
+    {$ELSE}
+    MaxRates = 30; //UNIX
+    {$ENDIF}
   {$ENDIF}
 {$ELSE}
   MaxRates = 19;  //WIN
@@ -229,6 +233,7 @@
 {$IFNDEF DARWIN}
     ,(460800, B460800)
   {$IFDEF UNIX}
+    {$IFNDEF CPUARM}
     ,(500000, B500000),
     (576000, B576000),
     (921600, B921600),
@@ -240,6 +245,7 @@
     (3000000, B3000000),
     (3500000, B3500000),
     (4000000, B4000000)
+    {$ENDIF}
   {$ENDIF}
 {$ENDIF}
     );
@@ -1938,7 +1944,7 @@
     {$IFDEF DARWIN}
     SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH));
     {$ELSE}
-    SerialCheck(fpioctl(FHandle, TCFLSH, TCIOFLUSH));
+    SerialCheck(fpioctl(FHandle, TCFLSH, Pointer(TCIOFLUSH)));
     {$ENDIF}
   {$ENDIF}
   FBuffer := '';
@@ -2336,4 +2342,4 @@
 end;
 {$ENDIF}

-end.
+end.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to