Difference between revisions of "Talk:GPIO Driver"

From ArmadeusWiki
Jump to: navigation, search
(New page: ==Installation== You have to: * reflash your rootfs or copy these modules on your target in ''/lib/modules/2.6.18.1/extra/gpio'' (don't forget modules.dep file), * copy loadgpio.sh script ...)
(No difference)

Revision as of 15:56, 12 May 2009

Installation

You have to:

  • reflash your rootfs or copy these modules on your target in /lib/modules/2.6.18.1/extra/gpio (don't forget modules.dep file),
  • copy loadgpio.sh script on your rootfs in /etc/

After that you can launch:

 # sh /etc/loadgpio.sh

or look inside this script if you want to manually enter the module parameters:

 # modprobe gpio portB_init=0,0,0x00FFFF00,0,0,0,0,0,0x0FF00000,0,0,0,0,0,0,0x0FF00000

gpio module parameters are values for PORTA, PORTB, PORTC, PORTD configuration registers in following order: DDIR, OCR1, OCR2, ICONFA1, ICONFA2, ICONFB1, ICONFB2, DR, GIUS, SSR, ICR1, ICR2, IMR, GPR, SWR, PUEN,
If you don't know what these registers means, load the module without parameters !!