Thanks, is there a way to do it in ASM rather than basic?  My entire code 
base so far is in ASM and I don't really want to recode it.

On Saturday, December 24, 2016 at 10:04:05 AM UTC-5, TJF wrote:
>
> Hi Jay!
>
> Am Freitag, 23. Dezember 2016 04:25:12 UTC+1 schrieb Jay Doobie:
>>
>> Is there an easy way to access to P8_9 and P8_10 from the PRU?  I haven't 
>> found much code on how one can access the GPIO's, I assume the DTO needs to 
>> set the mode to 7 (GPIO[5] and GPIO[4])?
>>
>
> Find example code in the libpruio 
> <http://beagleboard.org/project/libpruio/> project.
>
> The CPU balls should be in mode 7 after boot / reset, allready -> no DTBO 
> necessary. Check it by executing analyse example 
> <http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/_cha_examples.html#SubSecExaAnalyse>,
>  
> here I get
>
> Header Pins:
> ...
>   P8_09, GPIO 2/05: input, pullup
>   P8_10, GPIO 2/04: input, pullup
> ...
>
> For IO, set or read in GPIO-2 subsystem bits 5 (P8_09) and 4 (P8_10).
>
> Note: the subsystem GPIO-2 is disabled by default:
>
> ...
> GPIO-2 (DeAd: 00000000, ClAd: 00000000, ClVa: 00000000)
>          REVISION: 00000000
>  --> subsystem not handled (is down)
> ...
>
> Regards
>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/6ed3d42c-98a3-4932-9c9c-7db47db41ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to