#define WX_AIRSYNC_CFG 1
#define BUT_PROFILE_CFG 0
-#define HIDD_LE_PROFILE_CFG 0
+#define HIDD_LE_PROFILE_CFG 1
/*
* Type Definition
static void do_global_ctors(void);
static void main_task(void* args);
extern void ets_setup_syscalls(void);
-extern void bt_app_main(void);
+extern void app_main(void);
extern int _bss_start;
extern int _bss_end;
static void main_task(void* args)
{
- bt_app_main();
+ app_main();
vTaskDelete(NULL);
}
#if (defined(BLE_INCLUDED) && (BLE_INCLUDED == TRUE))
/* Enable local privacy */
- BTA_DmBleConfigLocalPrivacy(BLE_LOCAL_PRIVACY_ENABLED);
+ //BTA_DmBleConfigLocalPrivacy(BLE_LOCAL_PRIVACY_ENABLED);
do {
const controller_t *controller = controller_get_interface();
char bdstr[18];
/*set connectable,discoverable, pairable and paired only modes of local device*/
tBTA_DM_DISC disc_mode = BTA_DM_BLE_GENERAL_DISCOVERABLE;
tBTA_DM_CONN conn_mode = BTA_DM_BLE_CONNECTABLE;
- //BTA_DmSetVisibility(disc_mode, conn_mode, (UINT8)BTA_DM_NON_PAIRABLE, (UINT8)BTA_DM_CONN_ALL);
+ BTA_DmSetVisibility(disc_mode, conn_mode, (UINT8)BTA_DM_NON_PAIRABLE, (UINT8)BTA_DM_CONN_ALL);
gatts_server_test();
//gattc_client_test();
#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include "bt.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
+#include "string.h"
extern void bte_main_boot_entry(void *);
}
}
-void bt_app_main()
+void app_main()
{
+ bt_controller_init();
xTaskCreatePinnedToCore(&pingTask, "pingTask", 2048, NULL, 5, NULL, 0);
bt_app_task_start_up();
bte_main_boot_entry(bt_app_core_start);