On 6/13/2017 7:29 PM, Clark Sann wrote:
> Thanks Charles. 
> 
> I understand everything except for your last statement. 
> 
> I don’t understand the difference between  
> *(volatile uint32_t *)  
> and (volatile uint32_t *). 

Like I said, read up on some basic C tutorials, they'll explain it
much better than I can.

> Why is the leading * needed? That is why I thought it meant a pointer to a 
> pointer, which didn’t seem to make sense in this context.

No.

(uint32_t *) is a pointer (address) to a uint32_t

*(uint32_t *) is the value (data) pointed to by (uint32_t *)

-- 
Charles Steinkuehler
[email protected]

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/cf910aed-bae4-1c43-d5b5-e3aa214774b2%40steinkuehler.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to