Application code is very simple. We are opening our device which is in the path "/dev/myled". Now there is an infinite loop. First we are reading one byte from device and LSB bit is indicating the status of the LED. Now we are toggling the status and writing back the status to the device. Again we are doing the same using ioctl(). Here reading and writing happends in the device driver read()/write()/ioctl() call back and calls are blocked till interrupt is triggred.
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Draw on printer Free alt softwares