Skip to main content
sreejithu4u
Associate II
November 9, 2012
Question

Clive thanks!

  • November 9, 2012
  • 2 replies
  • 758 views
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! :)
    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    November 10, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    sreejithu4u
    Associate II
    November 10, 2012
    Posted on November 10, 2012 at 04:19

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

    regards!