Hi , I am use CC2541 Keyfob board and the project that I use is Keyfob project.
In normal operation, the CC2541 keyfob board will advertising when I push the button SW_2 at P0_1.
I have another CC2541 board , it also use the keyfob project at C:\Texas Instruments\BLE-CC254x-1.3.2\Projects\ble\KeyFob\CC2541DB.
And the pin of button at this CC2541 board is P1_5.
But I change the pin of SW_2 from P0_1 to P1_5 like the following code at hal_key.c , the CC2541 keyfob board will auto advertising after ten second when power on.
/* SW_2 is at P0.1 */
/*#define HAL_KEY_SW_2_PORT P0
#define HAL_KEY_SW_2_BIT BV(1)*/
#define HAL_KEY_SW_2_PORT P1
#define HAL_KEY_SW_2_BIT BV(5)
The question is:
Does any else should I modify but I didn't modify in hal_key.c or in keyfobdemo.c ??
or something I have to notice at change the pin od SW_2 at CC2541 ??
Thank for your direction.
Martin