From: <jer...@gm...> - 2005-03-16 17:04:22
|
Hi everybody ! (Please be lenient with me, I don't have must experience in linux systems.) I'am developping some stuff in c/c++ for the gumstix, and one of my duties is to control the RTS line of HW UART. after looking for some answer on the net, I found that the following code could help : ioctl(fd, TIOCMBIS, &TIOCM_RTS); // to set it ..? ioctl(fd, TIOCMBIC, &TIOCM_RTS); // to clear it ..? But now, I can't find in wich .h the ioctl, TIOCMBIS and others are define= d. Could anybody help me to make this code work ..? And more generally what is the best way to begin a c++ project for gumstix :) I'm using lastest revision (426) with C++ enabled (INSTALL_LIBSTDCPP:=3Dtru= e) Thanks in advance ! Best regards, J=E9r=F4me |
From: Darren G. <ts...@ya...> - 2005-03-16 17:37:45
|
On Mar 16, 2005, at 9:04 AM, J=E9r=F4me Multrier wrote: > after looking for some answer on the net, I found that the following > code could help : > ioctl(fd, TIOCMBIS, &TIOCM_RTS); // to set it ..? > ioctl(fd, TIOCMBIC, &TIOCM_RTS); // to clear it ..? > > But now, I can't find in wich .h the ioctl, TIOCMBIS and others are=20= > defined. gumstix-buildroot/build_arm/linux-2.6.10gum/include/asm-arm/ioctls.h I've never used C++ for gumstix, so I can't help you there... |
From: Craig H. <cr...@hu...> - 2005-03-16 19:17:24
|
On Mar 16, 2005, at 9:37 AM, Darren Gibbs wrote: > > On Mar 16, 2005, at 9:04 AM, J=E9r=F4me Multrier wrote: > >> after looking for some answer on the net, I found that the following >> code could help : >> ioctl(fd, TIOCMBIS, &TIOCM_RTS); // to set it ..? >> ioctl(fd, TIOCMBIC, &TIOCM_RTS); // to clear it ..? >> >> But now, I can't find in wich .h the ioctl, TIOCMBIS and others are=20= >> defined. > > gumstix-buildroot/build_arm/linux-2.6.10gum/include/asm-arm/ioctls.h > > I've never used C++ for gumstix, so I can't help you there... The "correct" way to include that file is #include <sys/ioctls.h> according to the ioctl(2) manpage. C= |