This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE BUTTON KEY

Hello, Am using Freertos with SDK 13.1 and SD 4.0.5 on custom board. My question is about buttons,We have one button need to configured for BLE Button.

I have board_custom file in which BUTTONS_NUMBER 1 and BUTTON_START/STOP and 1 is configured to one of the GPIO 10 and defined BSP_BUTTON_0.

In main file calling in buttons_init function err_code = bsp_init(BSP_INIT_BUTTONS, bsp_event_handler) and bsp_btn_ble_init(NULL, &startup_event) and after bsp_event_to_button_action_assign is called from bsp_init and also from connection_buttons_configure for BTN_ID_WAKEUP , BTN_ID_SLEEP and BTN_ID_DISCONNECT .

When Am pressing button and getting event BSP_EVENT_KEY_x and it crash in bsp_event_handler.

My requirement is configure Button to control sleep/wakeup and disconnect feature. Am not able compile if I remove BUTTON_0 or enabling BSP_SIMPLE Macros.

How to configure Button for only BLE Button ?

Parents Reply Children
No Data
Related