PINS_DRV_SetPinsDirection(GPIO_PORT, ((1 << LED1) | (1 << LED2)));
here "PINS_DRV_SetPinsDirection" is a function and i am passing arguments which are in (). what is the meaning of those arguments "(GPIO_PORT, ((1 << LED1) | (1 << LED2)))"???
PINS_DRV_SetPinsDirection(GPIO_PORT, ((1 << LED1) | (1 << LED2)));
here "PINS_DRV_SetPinsDirection" is a function and i am passing arguments which are in (). what is the meaning of those arguments "(GPIO_PORT, ((1 << LED1) | (1 << LED2)))"???
|
is bitwise or, <<
is left shift.
Wikipedia has an article on Operators in C and C++ which might be worth a look. It's the first result I got when searching for "c operators" (without the quotes)…