use function in examples provided in the package
prussdrv_exec_program (PRU_NUM, "./text.bin");
PRU_NUM is defined as 0 in the example, you can use other notation to
define both pru0 and pru1
#define PRU_NUM0 0
#define PRU_NUM1 1
.....
.....
prussdrv_exec_program (PRU_NUM0, "./text1.bin"); //text1.bin for pru0
prussdrv_exec_program (PRU_NUM1, "./text2.bin"); //text2.bin for pru1
...
...
On Tuesday, 2 June 2015 15:03:54 UTC+5:30, [email protected] wrote:
>
> I've got one question - how can I switch on the PRU (both of them) on the
> BeagleBone so I can access them using "am335x pru package".
>
> Nowadays I'm using Debian and in order to enable them I'm using the PRU
> cape:
>
> echo BB-BONE-PRU-01 >/sys/devices/bone_capemgr.x/slots
>
> Is it the only way to do that? Since I remember the cape is muxxing by
> default some I/O to the PRU.
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.