Hi,
I'm receiving only one callback for button press event on KeyFob when it is running SimpleBLECentral application. I'm not receiving any callbacks after the first one when KeyFob keys are pressed. (For my project I need to set the KeyFob in Scanning Mode - GAP Master and act like a GATT Client)
I've added CC2540_MINIDK to the pre-processor macros but it didn't fix my problem. Can you please tell me if there are any other tweaks needed in "hal_key.c". I need help for this very badly and any help in this regard is highly appreciated.
NOTE: I've the following section in "SimpleBLECentral_Init()"
#if defined( CC2540_MINIDK )
// For keyfob board set GPIO pins into a power-optimized state
// Note that there is still some leakage current from the buzzer,
// accelerometer, LEDs, and buttons on the PCB.
P0SEL = 0; // Configure Port 0 as GPIO
P1SEL = 0; // Configure Port 1 as GPIO
P2SEL = 0; // Configure Port 2 as GPIO
P0DIR = 0xFC; // Port 0 pins P0.0 and P0.1 as input (buttons),
// all others (P0.2-P0.7) as output
P1DIR = 0xFF; // All port 1 pins (P1.0-P1.7) as output
P2DIR = 0x1F; // All port 1 pins (P2.0-P2.4) as output
P0 = 0x03; // All pins on port 0 to low except for P0.0 and P0.1 (buttons)
P1 = 0; // All pins on port 1 to low
P2 = 0; // All pins on port 2 to low
#endif // #if defined( CC2540_MINIDK )
Thanks, Arjun