[fpc-pascal] How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-03 Thread Dennis Poon

Anyone has some sample codes or links to share on this?

So far, I only found this:  
http://code.google.com/p/fprpbm/source/browse/#svn%2Ftrunk%2Fexamples%2Fminiuart%253Fstate%253Dclosed


Thanks in advance.

Dennis
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-03 Thread Michael Schnell

Synaser:

http://synapse.ararat.cz/doc/help/synaser.html

-Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-03 Thread Paul Breneman

On 07/03/2013 07:18 AM, Dennis Poon wrote:

Anyone has some sample codes or links to share on this?

So far, I only found this:
http://code.google.com/p/fprpbm/source/browse/#svn%2Ftrunk%2Fexamples%2Fminiuart%253Fstate%253Dclosed


http://www.ctrlterm.com/

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-03 Thread Dennis Poon

Michael,
I used the synapser.pas unit but the compiler choked at line 232 at the 
identifier 'B50', 'B576000'  not found.

Any idea ?

Dennis


 Rates: array[0..MaxRates, 0..1] of cardinal =
  (
(0, B0),
(50, B50),
(75, B75),
(110, B110),
(134, B134),
(150, B150),
(200, B200),
(300, B300),
(600, B600),
(1200, B1200),
(1800, B1800),
(2400, B2400),
(4800, B4800),
(9600, B9600),
(19200, B19200),
(38400, B38400),
(57600, B57600),
(115200, B115200),
(230400, B230400)
{$IFNDEF DARWIN}
,(460800, B460800)
  {$IFDEF UNIX}
,(50, B50),
(576000, B576000),
(921600, B921600),
(100, B100),
(1152000, B1152000),
(150, B150),
(200, B200),
(250, B250),
(300, B300),
(350, B350),
(400, B400)
  {$ENDIF}
{$ENDIF}

Michael Schnell wrote:

Synaser:

http://synapse.ararat.cz/doc/help/synaser.html

-Michael
___

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to use UART of ARM platforms (e.g. Raspberry Pi ) through free Pascal?

2013-07-03 Thread Dennis Poon
After some studying, synaser.pas seems to deal with com port instead of 
the low level UART interface.
Can you give me some pointer on directly using UART? I need to implement 
half-duplex using UART for rs-485 protocol.


Thanks.

Dennis

Michael Schnell wrote:

Synaser:

http://synapse.ararat.cz/doc/help/synaser.html

-Michael
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2013.0.3345 / Virus Database: 3204/6458 - Release Date: 07/02/13


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal