Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Daniël Mantione
Op Tue, 22 May 2007, schreef Tomas Hajny: > I don't know Linux, but: If ioperm needs to be called just once (without > specifying a particular port number), this call could be added to unit > initialization. If it needs to be called for particular port number or > port range, we could add a func

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Tomas Hajny
Daniël Mantione wrote: > Op Tue, 22 May 2007, schreef Felipe Monteiro de Carvalho: > >> OS specific code is not a devil. Sometimes it's necessary. Ports alone >> won't work on linux also, by the way. > > Even if extra calls are needed, like ioperm, the existance of a hardware > serial port unit, ig

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Daniël Mantione
Op Tue, 22 May 2007, schreef Felipe Monteiro de Carvalho: > > OS specific code is not a devil. Sometimes it's necessary. Ports alone > won't work on linux also, by the way. Even if extra calls are needed, like ioperm, the existance of a hardware serial port unit, ignoring the existance of iop

Re[2]: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Daniël Mantione
Op Tue, 22 May 2007, schreef Alexey Pavluchenko: > Hello Felipe, > > Tuesday, May 22, 2007, 10:48:54 AM, you wrote: > > > On 5/18/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: > >> Can you please implement a ports unit for Windows then? > > > This requires writing a Device Driver for NT

Re[2]: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Alexey Pavluchenko
Hello Felipe, Tuesday, May 22, 2007, 10:48:54 AM, you wrote: > On 5/18/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: >> Can you please implement a ports unit for Windows then? > This requires writing a Device Driver for NT and later you need to > take it with your executable somehow. It's

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-22 Thread Felipe Monteiro de Carvalho
On 5/18/07, Daniël Mantione <[EMAIL PROTECTED]> wrote: Can you please implement a ports unit for Windows then? This requires writing a Device Driver for NT and later you need to take it with your executable somehow. The last thing we need is people to start using OS specific code. OS sp

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Daniël Mantione
Op Fri, 18 May 2007, schreef Felipe Monteiro de Carvalho: > The port array will fail on NT versions of windows. Better to use the > methods described here: > > http://wiki.lazarus.freepascal.org/Hardware_Access Can you please implement a ports unit for Windows then? The last thing we need is

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Felipe Monteiro de Carvalho
The port array will fail on NT versions of windows. Better to use the methods described here: http://wiki.lazarus.freepascal.org/Hardware_Access -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

Re: [fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread Daniël Mantione
Op Thu, 17 May 2007, schreef [EMAIL PROTECTED]: > Hi > I am a new user of FPC can somebody guide me how to access directly hardware > ports > with FPC http://www.freepascal.org/faq.var#accessioports Daniël___ fpc-pascal maillist - fpc-pascal@lists

[fpc-pascal] accessing hardware ports in FPC

2007-05-18 Thread ezrashumla
Hi I am a new user of FPC can somebody guide me how to access directly hardware ports with FPC Thanks Ezra Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection. _