mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 22:44:19 +00:00
kconfig: refactor xtal freq kconfig to common configuration item
This commit is contained in:
@@ -226,7 +226,7 @@ typedef struct {
|
||||
.coex_phy_coded_tx_rx_time_limit = DEFAULT_BT_LE_COEX_PHY_CODED_TX_RX_TLIM_EFF, \
|
||||
.dis_scan_backoff = NIMBLE_DISABLE_SCAN_BACKOFF, \
|
||||
.ble_scan_classify_filter_enable = 0, \
|
||||
.main_xtal_freq = CONFIG_ESP32C2_XTAL_FREQ, \
|
||||
.main_xtal_freq = CONFIG_XTAL_FREQ, \
|
||||
.config_magic = CONFIG_MAGIC, \
|
||||
};
|
||||
|
||||
|
@@ -192,11 +192,11 @@ extern "C" {
|
||||
|
||||
#define BLE_LL_CONN_DEF_AUTH_PYLD_TMO_N (3000)
|
||||
|
||||
#ifdef CONFIG_ESP32C2_XTAL_FREQ_26
|
||||
#ifdef CONFIG_XTAL_FREQ_26
|
||||
#define RTC_FREQ_N (40000) /* in Hz */
|
||||
#else
|
||||
#define RTC_FREQ_N (32000) /* in Hz */
|
||||
#endif // CONFIG_ESP32C2_XTAL_FREQ_26
|
||||
#endif // CONFIG_XTAL_FREQ_26
|
||||
|
||||
#define BLE_LL_TX_PWR_DBM_N (0)
|
||||
|
||||
|
Reference in New Issue
Block a user