Hi,
I have gone through the code numerous times and figured out how key press changes are being send to application level. I successfully added switch to P0.6 which when pressed toggles the LED. It works fine. But I dont understand how this OnBoard_KeyCallback function works.
A detailed look at this function tell me that it sends message using OnBoard_SendKeys to application level. How do they decide the shift parameter in OnBoard_SendKeys function. They used ternary operator but the last part of the that ternary operator itself is a ternary operator. ((keys & HAL_KEY_SW_6) ? true : false) and why shift parameter depends on SW6?
Then If the message sending is not successful then do nothing. and then last part again they call HalKeyConfig( OnboardKeyIntEnable, OnBoard_KeyCallback) which is calling the OnBoard_KeyCallback again inside that function only?