From: Stefan K. <ste...@cr...> - 2006-08-17 11:47:17
|
Hi Luis, Luis.F.Correia schrieb am 17.08.2006 11:07: > > It reports 74mA to the USB hub. That seems to be O.K. > Ok, this would be a good project, I think. I can help you with the > GPIO think, but only for 2.4 kernels. Still interested? Fine! *eg* Yes sure I am. To my knowledge for now - there are only outb() neccesary to put data on the GPIOs. And before using the GPIO there has a) to switc= h off the "LPC" behaviour of the J2 and to b) set in- or out-direction of the GPIO pins. All that is done by outb(). I found 2 examples from other WRAP users doing some stuff (switches and some optocoupled relais): http://wiki.voyage.hk/dokuwiki/doku.php?id=3Dwrap_switches http://list.voyage.hk/pipermail/voyage-linux/2006-June/000969.html I found there code is handy for the a) part. And there is no special kernel issue. MfG Stefan |