2012-11-09 09:39 AM
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! :)2012-11-09 06:09 PM
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.2012-11-09 07:19 PM
I`m learning :) thanks alot my friend! your help appreciated! :)
regards!