Yeah, I woke up realizing what a dunce I was reading it the way I was.  
HWREG equates to (*((volatile unsigned int *) (x)))


On Tuesday, April 13, 2021 at 10:54:36 AM UTC-4 Dennis Bieber wrote:

> On Mon, 12 Apr 2021 13:08:48 -0700 (PDT), in
> gmane.comp.hardware.beagleboard.user Walter Cromer
> <walterc-2dFtBuzUeF/tpnmuczy8b...@public.gmane.org> wrote:
>
> >What's really throwing me is the + between what looks like two macro 
> >values. Normally, we see the + on the right sign of the equals, right? 
> >Or am I forgetting something I used to know!?
> >
>
> Why? Take into account the ()s.
>
> From what I can tell, this is adding the ADC register offset to the
> base address of the (?) wakeup register block, which is passed as parameter
> to HWREG (no doubt some macro that sets up actual access to the SoC
> registers and returns a pointer or some such), and then assigns 0x02 into
> the register so indicated.
>
>
> -- 
> Dennis L Bieber
>
>

-- 
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/e8bac78b-4ba0-4fa2-853b-d5e81eeb7597n%40googlegroups.com.

Reply via email to