mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-17 14:39:55 +00:00
nimble/ll: Rename BLE_XTAL_SETTLE_TIME
With addition of ll_rfmgmt this setting has now more generic meaning so let's rename it.
This commit is contained in:
@@ -26,7 +26,7 @@ extern "C" {
|
|||||||
|
|
||||||
void ble_ll_rfmgmt_init(void);
|
void ble_ll_rfmgmt_init(void);
|
||||||
|
|
||||||
#if MYNEWT_VAL(BLE_XTAL_SETTLE_TIME) > 0
|
#if MYNEWT_VAL(BLE_LL_RFMGMT_ENABLE_TIME) > 0
|
||||||
|
|
||||||
void ble_ll_rfmgmt_reset(void);
|
void ble_ll_rfmgmt_reset(void);
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
#include "controller/ble_ll_sched.h"
|
#include "controller/ble_ll_sched.h"
|
||||||
#include "controller/ble_ll_rfmgmt.h"
|
#include "controller/ble_ll_rfmgmt.h"
|
||||||
|
|
||||||
#if MYNEWT_VAL(BLE_XTAL_SETTLE_TIME) > 0
|
#if MYNEWT_VAL(BLE_LL_RFMGMT_ENABLE_TIME) > 0
|
||||||
|
|
||||||
enum ble_ll_rfmgmt_state {
|
enum ble_ll_rfmgmt_state {
|
||||||
RFMGMT_STATE_OFF = 0,
|
RFMGMT_STATE_OFF = 0,
|
||||||
@@ -215,7 +215,7 @@ ble_ll_rfmgmt_init(void)
|
|||||||
rfmgmt->state = RFMGMT_STATE_OFF;
|
rfmgmt->state = RFMGMT_STATE_OFF;
|
||||||
|
|
||||||
rfmgmt->ticks_to_enabled =
|
rfmgmt->ticks_to_enabled =
|
||||||
ble_ll_usecs_to_ticks_round_up(MYNEWT_VAL(BLE_XTAL_SETTLE_TIME));
|
ble_ll_usecs_to_ticks_round_up(MYNEWT_VAL(BLE_LL_RFMGMT_ENABLE_TIME));
|
||||||
|
|
||||||
rfmgmt->timer_scheduled = false;
|
rfmgmt->timer_scheduled = false;
|
||||||
os_cputime_timer_init(&rfmgmt->timer, ble_ll_rfmgmt_timer_exp, NULL);
|
os_cputime_timer_init(&rfmgmt->timer, ble_ll_rfmgmt_timer_exp, NULL);
|
||||||
|
|||||||
@@ -175,13 +175,18 @@ syscfg.defs:
|
|||||||
material often.
|
material often.
|
||||||
value: '32'
|
value: '32'
|
||||||
|
|
||||||
# Crystal setting time
|
BLE_LL_RFMGMT_ENABLE_TIME:
|
||||||
BLE_XTAL_SETTLE_TIME:
|
|
||||||
description: >
|
description: >
|
||||||
The settling time of the high-frequency oscillator. This is
|
Time required for radio and/or related components to be fully
|
||||||
used to turn on/off the clock used for the radio (assuming
|
enabled before any request from LL is sent. This value is used
|
||||||
the HW supports this). This value is in microseconds.
|
by rfmgmt to enable PHY in advance, before request from LL is
|
||||||
value: '0'
|
made. It depends on radio driver selected and may also depend
|
||||||
|
on hardware used:
|
||||||
|
- nrf51 - time required for XTAL to settle
|
||||||
|
- nrf52 - time required for XTAL to settle
|
||||||
|
Value is specified in microseconds. If set to 0, rfmgmt keeps
|
||||||
|
PHY enabled all the time.
|
||||||
|
value: MYNEWT_VAL(BLE_XTAL_SETTLE_TIME)
|
||||||
|
|
||||||
# Configuration for LL supported features.
|
# Configuration for LL supported features.
|
||||||
#
|
#
|
||||||
@@ -369,6 +374,10 @@ syscfg.defs:
|
|||||||
description: use BLE_LL_DTM instead
|
description: use BLE_LL_DTM instead
|
||||||
value: 0
|
value: 0
|
||||||
deprecated: 1
|
deprecated: 1
|
||||||
|
BLE_XTAL_SETTLE_TIME:
|
||||||
|
description: use BLE_LL_RFMGMT_ENABLE_TIME instead
|
||||||
|
value: 0
|
||||||
|
deprecated: 1
|
||||||
|
|
||||||
# defunct settings (to be removed eventually)
|
# defunct settings (to be removed eventually)
|
||||||
BLE_DEVICE:
|
BLE_DEVICE:
|
||||||
|
|||||||
Reference in New Issue
Block a user