line of code.

Status
Not open for further replies.

electricity86

New Member
What does this line mean:

P0IFG = (HAL_KEY_P0INT_LOW_USED | HAL_KEY_POINT_HIGH_USED);

Where:
#define HAL_KEY_P0INT_LOW_USED 0
#define HAL_KEY_POINT_HIGH_USED 0

What will be inside P0IFG after that line, if before that line, his value was xxxxxxxx (eight 'x's).

Thanks.
 
I guess,

1. there's no such numeric value as 8 x's unless it was something like base 40 or something.

2. The pipe character '|' is a bitwise or operator in C. Google 'bitwise or' and you'll get an explanation of how it works.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…