Skip to content

Conversation

@cvinayak
Copy link
Contributor

@cvinayak cvinayak commented Jul 9, 2018

Added Kconfig option and implementation to support a
non-blocking startup of 32KHz crystal oscillator.

This will reduce the time from boot to application start
while the crystal startup happens in background.

Signed-off-by: Vinayak Kariappa Chettimada [email protected]

Added Kconfig option and implementation to support a
non-blocking startup of 32KHz crystal oscillator.

This will reduce the time from boot to application start
while the crystal startup happens in background.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak cvinayak requested review from anangl and carlescufi July 9, 2018 09:31
@codecov-io
Copy link

codecov-io commented Jul 9, 2018

Codecov Report

Merging #8803 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8803      +/-   ##
==========================================
- Coverage   52.34%   52.32%   -0.02%     
==========================================
  Files         195      195              
  Lines       24723    24730       +7     
  Branches     5139     5140       +1     
==========================================
  Hits        12941    12941              
- Misses       9708     9715       +7     
  Partials     2074     2074
Impacted Files Coverage Δ
subsys/logging/log_output.c 2.75% <0%> (-0.14%) ⬇️
include/logging/log_core.h 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0aedf8d...54f7339. Read the comment docs.

@pizi-nordic pizi-nordic self-requested a review July 9, 2018 11:29
Copy link
Contributor

@pizi-nordic pizi-nordic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this change will break Bluetooth, as clock might be not stable when connection is established.

IMHO until BLE stack is not handling clock switch-over we should still wait for stable clock. Of course this could be done in thread initializing BLE instead of system startup which still be better than current solution.

@ioannisg ioannisg added the platform: nRF Nordic nRFx label Jul 10, 2018
cvinayak added 2 commits July 10, 2018 10:29
Fix the implementation to correctly check the status of
HFCLK and LFCLK states with respect to the requested
sources.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
Added implementation to check and wait for stable 32KHz
clock source before starting connectable/directed
advertising state and initiating state.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
@cvinayak
Copy link
Contributor Author

@pizi-nordic added implementation to wait for a stable 32KHz source before connected role establishment.

DEBUG_RADIO_CLOSE(0);
}

#define DRV_NAME CONFIG_CLOCK_CONTROL_NRF5_K32SRC_DRV_NAME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this will behave on non-Nordic chips?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current upstream controller is nRF specific, the newer architecture in development separates vendor specifics in lower layer modules.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@carlescufi carlescufi merged commit 3ebb81b into zephyrproject-rtos:master Aug 1, 2018
@cvinayak cvinayak deleted the github_non_blocking_32khz branch March 1, 2021 00:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: nRF Nordic nRFx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants