Hi everybody,
I am testing GPIO pins on dm355 EVM board to write own GPIO driver but I
could not get any live signal on the scope by bit-bang method. I am using
the following code ;
I also tried other 3.3V gpio pins and got no signal! What can be the
problem???
Thanks..
gpio = GPIO(54);
ret = gpio_request(gpio, "gpio");
if( ret == (-EINVAL) )
{
printk("<1>RET: EINVAL\n");
//return -EINVAL;
}
else if( ret == (-EBUSY) )
{
printk("<1>RET: EBUSY\n");
//return -EBUSY;
}
else
{
printk("<1>RET: OK\n");
}
ret = gpio_direction_output(gpio, 0);
printk("<1>RET: %X\n",ret);
udelay(500);
gpio_set_value(gpio, 0);
printk("<1>RET: %X\n",ret);
for(i=0;i<50000;++i)
{
udelay(100);
gpio_set_value(gpio, 1);
udelay(100);
gpio_set_value(gpio, 0);
}
gpio_free(gpio);
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source