Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help with C code syntex

Status
Not open for further replies.

coolman21

Newbie level 3
Joined
Aug 27, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,300
Hi I ran across code that I need some help with, can someone explain it?


#define BITBAND_SRAM(a,b) ((BITBAND_SRAM_BASE + (a-BITBAND_SRAM_REF)*32 + (b*4)))

#define MBX_B0 *((volatile unsigned int *) (BITBAND_SRAM(MAILBOX,0))) // Bit 0


thanks
 

in your message you initialize the bit for SRAM and you use the REFERENCE Add. to store the data into the location but you use the help of syntax from the software which you use.
 

Hi I ran across code that I need some help with, can someone explain it?


#define BITBAND_SRAM(a,b) ((BITBAND_SRAM_BASE + (a-BITBAND_SRAM_REF)*32 + (b*4)))

#define MBX_B0 *((volatile unsigned int *) (BITBAND_SRAM(MAILBOX,0))) // Bit 0


thanks

I'm sorry I cannot help you because I'm not aware of this compiler. But you can help yourself just by saying which compiler you are using and what is the target device. This information should also be included in the thread's title.

Cheers!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top