ble:add version num support for esp32c6 chip

This commit is contained in:
cjin
2023-04-26 10:31:11 +08:00
parent 134d87848b
commit 1952a26d5e
3 changed files with 12 additions and 4 deletions

View File

@@ -15,6 +15,7 @@
#include "nimble/nimble_npl.h"
#include "esp_bt_cfg.h"
#include "hal/efuse_hal.h"
#ifdef CONFIG_BT_LE_HCI_INTERFACE_USE_UART
#include "driver/uart.h"
@@ -23,7 +24,6 @@
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Bluetooth mode for controller enable/disable
*/
@@ -258,7 +258,7 @@ typedef struct {
.dis_scan_backoff = NIMBLE_DISABLE_SCAN_BACKOFF, \
.ble_scan_classify_filter_enable = 0, \
.main_xtal_freq = CONFIG_XTAL_FREQ, \
.version_num = 0, \
.version_num = efuse_hal_chip_revision(), \
.cpu_freq_mhz = CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ, \
.ignore_wl_for_direct_adv = 0, \
.enable_pcl = DEFAULT_BT_LE_POWER_CONTROL_ENABLED, \

View File

@@ -196,7 +196,7 @@ extern "C" {
#define BLE_LL_CONN_DEF_AUTH_PYLD_TMO_N (3000)
#define RTC_FREQ_N (160000) /* in Hz */
#define RTC_FREQ_N (250000) /* in Hz */
#define BLE_LL_TX_PWR_DBM_N (9)