[fpc-pascal] USB or RS-232 capability?

Jonas Maebe jonas at zeus.ugent.be
Thu Jan 13 11:43:57 CET 2005


On 13 jan 2005, at 11:31, Lance Boyle wrote:

> Does FPC provide access to USB or RS-232 (COM) ports?
>
> I am interested in trying this on Mac OS X, with a possible port to 
> Windows. (Yes, I'll get a USB-Serial adapter from Keyspan if 
> necessary.)

Plain RS-232 should be fairly simple under Mac OS X once you get such 
an adapter. They include a driver that creates a device under /dev, 
which can be used as a regular serial port after you open it from your 
application (so if you search for generic unix serial port controlling 
code, it should Just Work).

USB will be a lot harder, I think, though I have no experience with 
that. Your code for Windows will also be quite different (whichever 
route you take), I assume.


Jonas





More information about the fpc-pascal mailing list