Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by liuxiaoping@Jan 5 2007, 10:49 AM to hippo:
because of your help,now,i know of something,thank you!
it means that the nios2_system.h is included in the device driver source.
if i use two ps/2 ip for mouse and keyboard, in the nios2_system.h file ,there will be two defines.the problem is how i know whitch is for mouse and whitch is for keyboard in the uclinux.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=20376)
--- quote end ---
--- Quote End --- It is off topic. You should start a new topic next time. In hardware, you can assign the ports usage, eg, ps2_0 for keyboard, ps2_1 for mouse. In software, you can query the devices to get device type. You will need to write serio driver for your PS/2 hardware. The kbd and mouse drivers will use it. linux-2.6.x/drivers/input/serio linux-2.6.x/Documents/input