love_electronic
Member level 5
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)))