synaser.pas - Improved ARM support (from Lazarus repository)
git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@212 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
23
synaser.pas
23
synaser.pas
@ -1,9 +1,9 @@
|
|||||||
{==============================================================================|
|
{==============================================================================|
|
||||||
| Project : Ararat Synapse | 007.006.001 |
|
| Project : Ararat Synapse | 007.006.002 |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Content: Serial port support |
|
| Content: Serial port support |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Copyright (c)2001-2017, Lukas Gebauer |
|
| Copyright (c)2001-2021, Lukas Gebauer |
|
||||||
| All rights reserved. |
|
| All rights reserved. |
|
||||||
| |
|
| |
|
||||||
| Redistribution and use in source and binary forms, with or without |
|
| Redistribution and use in source and binary forms, with or without |
|
||||||
@ -33,7 +33,7 @@
|
|||||||
| DAMAGE. |
|
| DAMAGE. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
|
||||||
| Portions created by Lukas Gebauer are Copyright (c)2001-2017. |
|
| Portions created by Lukas Gebauer are Copyright (c)2001-2021. |
|
||||||
| All Rights Reserved. |
|
| All Rights Reserved. |
|
||||||
|==============================================================================|
|
|==============================================================================|
|
||||||
| Contributor(s): |
|
| Contributor(s): |
|
||||||
@ -86,7 +86,12 @@ case with my USB modem):
|
|||||||
{$IFDEF FPC}
|
{$IFDEF FPC}
|
||||||
{$MODE DELPHI}
|
{$MODE DELPHI}
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
{$ASMMODE intel}
|
{$IFDEF CPUI386}
|
||||||
|
{$ASMMODE INTEL}
|
||||||
|
{$ENDIF}
|
||||||
|
{$IFDEF CPUX86_64}
|
||||||
|
{$ASMMODE INTEL}
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{define working mode w/o LIBC for fpc}
|
{define working mode w/o LIBC for fpc}
|
||||||
{$DEFINE NO_LIBC}
|
{$DEFINE NO_LIBC}
|
||||||
@ -200,7 +205,11 @@ const
|
|||||||
{$IFDEF BSD}
|
{$IFDEF BSD}
|
||||||
MaxRates = 18; //MAC
|
MaxRates = 18; //MAC
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
MaxRates = 30; //UNIX
|
{$IFDEF CPUARM}
|
||||||
|
MaxRates = 19; //CPUARM
|
||||||
|
{$ELSE}
|
||||||
|
MaxRates = 30; //UNIX
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
MaxRates = 19; //WIN
|
MaxRates = 19; //WIN
|
||||||
@ -229,6 +238,7 @@ const
|
|||||||
{$IFNDEF BSD}
|
{$IFNDEF BSD}
|
||||||
,(460800, B460800)
|
,(460800, B460800)
|
||||||
{$IFDEF UNIX}
|
{$IFDEF UNIX}
|
||||||
|
{$IFNDEF CPUARM}
|
||||||
,(500000, B500000),
|
,(500000, B500000),
|
||||||
(576000, B576000),
|
(576000, B576000),
|
||||||
(921600, B921600),
|
(921600, B921600),
|
||||||
@ -240,6 +250,7 @@ const
|
|||||||
(3000000, B3000000),
|
(3000000, B3000000),
|
||||||
(3500000, B3500000),
|
(3500000, B3500000),
|
||||||
(4000000, B4000000)
|
(4000000, B4000000)
|
||||||
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
);
|
);
|
||||||
@ -2354,4 +2365,4 @@ begin
|
|||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Reference in New Issue
Block a user