|
From: Frank W. <F.W...@wi...> - 2002-10-29 14:32:23
|
Hello Cesare, to use the serial ports with DevC++ depends on the compiler to use with. As far as I know (but I'm not sure) with borland these functions are included in the conio.h. There is also a conio.h that comes with the DevC++ IDE written by Hongli Lai but I don't know whether it will compatible with borland. I use the cygwin system because of the ability to port these applications to unix systems. With cygwin the required funktions are in termios.h and fcntl.h If you are interested in I can send you a little example that uses the cygwin system. Greetings Frank >>> Cesare Padovani <pad...@in...> 10/29 1:10 >>> Does anyone know how to write to and read from an i/o port? In the dos version of Borland C++ there were the functions: void outport(int portid, int value); int outp(int portid, int byte_value); located in dos.h. What about Dev-C++ in this area? Regards, Cesare Padovani ------------------------------------ Cesare Padovani Dipartimento di Ingegneria Elettrica Universita' degli Studi di L'Aquila Italy Tel. +39-0862-434432 Fax +39-0862-434403 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |