cancel
Showing results for 
Search instead for 
Did you mean: 

Clive thanks!

sreejithu4u
Associate II
Posted on November 09, 2012 at 18:39

Clive1 thanks for your response! :) could u please explain how it works? im learning shift operators and addressing registers as struct. it`l be helpful if u could guide me

thanks! :)
2 REPLIES 2
Posted on November 10, 2012 at 03:09

Clive1 thanks for your response! :) could u please explain how it works? im learning shift operators and addressing registers as struct. it`l be helpful if u could guide me thanks! :)

The first use casting to point to a 32-bit register, instead of the 16-bit one the structure refers too. The Bit Set Reset Register, uses the low 16-bits to set GPIO bits, and the high 16-bits clear GPIO bits (the inverse of the pattern you want to set is the one you want to clear).

If you want to understand how basic logic concepts, structures and pointers work in C you'll need to review K&R and other texts, and perhaps decompose the sequence into steps so you can see what each does.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sreejithu4u
Associate II
Posted on November 10, 2012 at 04:19

I`m learning :) thanks alot my friend! your help appreciated! :)

regards!