Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe correct way is to use the GPIO Kernel driver provided with the uClinux distribution:
http://www.nioswiki.com/gpio There are several article on accessing hardware in the Wiki. Generally hardware should be accessed via device drivers. With NoMMU it's possible to access hardware directly from user mode, for MMU this should be possible in some cases with "uio", but doing a device driver is more clean and more portable. -Michael