Hi, > has anyone used the GPIO programming routines from this guy? > Many thanks for any help,
I do... no, not really: I'm using MV kernel, but the author is the same, and the interface seems quite similar. Besides the fact that GPIO37 has his interrupt shared with the other gpio of the same bank (in dm355, though) , I think you should simply set the direction and the value of the gpio, then register the irq with that particular gpio. I use something like: gpio_direction_input( gpionumber ); set_irq_type(gpio_to_irq( gpionumber ), IRQT_RISING); request_irq( gpio_to_irq(gpionumber), &irq_handler, SA_INTERRUPT, "gpio", NULL ); (you'd want to change them with the corrispective functions of git kernel) bye -- Andrea Gasparini ---- ImaVis S.r.l. ---- web: www.imavis.com _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
