Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8725737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:06:06+00:00 2026-06-13T08:06:06+00:00

I found this statement in header file that came with a micro controller and

  • 0

I found this statement in header file that came with a micro controller and have no idea how to evaluate it

#define FIO0SET        (*(volatile unsigned long *)(FIO_BASE_ADDR + 0x18))

I don’t have the foggiest idea what this expression is, and so I have no way to start any meaningful research. Can anyone tell me what this beast is or how to evaluate it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:06:07+00:00Added an answer on June 13, 2026 at 8:06 am
    #define FIO0SET  (*(volatile unsigned long *)(FIO_BASE_ADDR + 0x18))
    

    Go at memory address FIO_BASE_ADDR + 0x18 and retreive the 32-bit (if unsigned long is 32-bit) word stored at that location. FIO0SET is also a modifiable lvalue so you can assign it a value.

    Note that the volatile qualifier is used to inform the compiler that the value of the object can change in a way unknown to it. Consider for an example an IO register in input mode: its value can change unexpectedly and the compiler cannot assume its value didn’t change after it was read.

    For example:

    unsigned long register_value;
    
    register_value = FIO0SET; // store FIO0SET in register_value object
    

    or

    FIO0SET = 0x1122334;      // store 0x1122334 value in FIO0SET register 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this on http://old.nabble.com/insert-statement-td21157498.html I want to do the same thing .I have
I found it in a statement like this: delete /*+ restrict_all_ref_cons */ from table_1
I was reading this page and I found the following statement: MVC in Java
found this little code snippet that seems to do what i want, but im
I am reading some source code and I found this statement at the very
I have code that looks like this: function processRequest() { // get the verb
I do some debugging and I found this statement: $(this)[widget.widgetName](widget.attributes); where widget.widgetName = chart
In the java docs of the map interface's entrySet() method I found this statement
I have this code that processes a user then redirects them to the user
I found this statement is some old code and it took me a second

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.