This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sleep mode, Key polling, Key interruption.

Other Parts Discussed in Thread: CC2540

Hi, I am having problem with key configurations. Actually, I am not sure where to start to fix this problem.

My device does not go to sleep mode. I figured it is related to the key.  OSAL_System is generating 100ms key event timer.

I believe it is called polling mode. However, when I looked at hal_key.c. If I define CC2540_MINIDK, interrupt should be enabled.

There should be no key polling. I want to use interruption to detect key and my device can go sleep mode.

Since I use the same pins as keyfob module, I define CC2540_MINIDK and halkeyinit().

I use HAL_KEY_SW_1 and HAL_KEY_SW_2.

My device is using all the pins on port 1 for LEDs (P1_X where x is 0 to 7). I use P1_0, and P_1 for buttons.