love_electronic
Member level 5
- Joined
- Nov 16, 2010
- Messages
- 93
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,964
Hi
I wanna ask some basic questions regarding keil uvision syntax.
what are the functions of following statement
Is (cnf<<2) shifting 2 times here?
what this statement tells?
I wanna ask some basic questions regarding keil uvision syntax.
what are the functions of following statement
Code:
#define GPIOCONF(mode, cnf) ((cnf << 2) | (mode))
Code:
#define CONFMASKL(pin) ((u32)~(15 << (pin * 4)))