> Use 32-bit (or smaller) naturally aligned values in the PRU data ram and 
> accesses will be atomic on both the PRU and the ARM side. 
>
>
So, something like this will do the trick (for atomic access)? on the PRU:
// Address 0x10000 is refered to as "shared data" in the PRU local data 
memory map.
volatile unsigned int* shared_ram = (volatile unsigned int *)0x10000;  
shared_ram[100] = 0xFFFF;

And on the ARM:
void* p;
prussdrv_map_prumem(PRUSS0_SHARED_DATARAM, &p);
shared_ram = (volatile unsigned int*)p;
unsigned int foobar = shared_ram[100];

Thanks for the quick reply :)

-- 
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.

Reply via email to