From: Bill Beech (NJ7P) <nj7p@nj...> - 2008-11-25 20:16:10
I have succeeded in getting the proc_gpio driver to accept input from
any mortal user. I had to remove two lines of code from the write
routine and I had modified some of the code in the initialization
routine. The following two lines were removed:
The initialization routine was modified as follows:
for(i=0; i < (PXA_LAST_GPIO+1); i++)
gpio_summaries[i].gpio = i;
sprintf(gpio_summaries[i].name, "GPIO%d", i);
create_proc_entry(gpio_summaries[i].name, 0644, proc_gpio_parent);
proc_gpios[i]->mode = S_IFREG | S_IRUGO | S_IWUGO;
proc_gpios[i]->data = &gpio_summaries[i];
proc_gpios[i]->read_proc = proc_gpio_read;
proc_gpios[i]->write_proc = proc_gpio_write;
proc_gpios[i]->owner = THIS_MODULE;
proc_gpios[i]->uid = 0;
proc_gpios[i]->gid = 0;
proc_gpios[i]->size = 37;
This version works on the 2.6.21 kernel and allows www-data to write to
all gpio pins.
I have the complete patch file for the OE-318 build for the modified driver.
I have written a driver which uses the verdex pwm0 device to generate
approximately 20 KHz PWM signal, which can have the width adjusted from
0 to 100% in 1 % steps. I use this signal integrated with a 10k
resistor and 2.2 microfarad capacitor to drive a dimension engineering
I have a patch file for this driver for OE-318, as well.
How do I create a pgw or whatever to put these on the wiki?
Get latest updates about Open Source Projects, Conferences and News.