lunatic_sh
Newbie level 1
- Joined
- Oct 15, 2010
- Messages
- 1
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Leuven,Belgium
- Activity points
- 1,287
(Not soved)Msp430-Problem with understanding the macros
I am working on MSP 430.
I am problem understanding following macros.
#define POUT_(Pn) Pn##OUT
#define IN_(p,b) (PIN_(p)&(1<<b))
#define USEIO_(p,b) unused_##p&=~(1<<(b))
#define USEIO(name) USEIO_(name)
How do these macros work and help in the code.
Could anybody help me please?
Thanks in advance.
I am working on MSP 430.
I am problem understanding following macros.
#define POUT_(Pn) Pn##OUT
#define IN_(p,b) (PIN_(p)&(1<<b))
#define USEIO_(p,b) unused_##p&=~(1<<(b))
#define USEIO(name) USEIO_(name)
How do these macros work and help in the code.
Could anybody help me please?
Thanks in advance.
Last edited: