Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bluetooth: controller: Added support for vendor ticker nodes #25066

Merged
merged 1 commit into from
May 7, 2020
Merged

Conversation

mtpr-ot
Copy link
Collaborator

@mtpr-ot mtpr-ot commented May 7, 2020

With BT_CTLR_USER_TICKER_ID_RANGE it is possible for vendors to add a
number of ticker nodes for proprietary purposes. The feature depends on
BT_CTLR_USER_EXT.

Signed-off-by: Morten Priess mtpr@oticon.com

Fixes #25067

@aescolar aescolar added the bug The issue is a bug, or the PR is fixing a bug label May 7, 2020
int "Range of ticker id constants reserved for proprietary ticker nodes"
depends on BT_CTLR_USER_EXT
default 0
range 0 10
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to add a range limitation on this?

Copy link
Collaborator Author

@mtpr-ot mtpr-ot May 7, 2020

Choose a reason for hiding this comment

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

Do we need to add a range limitation on this?

No we don't need the range, but I prefer to have it to discourage from just using any number. Memory usage is quite high per node.

Comment on lines 57 to 63
#if defined(CONFIG_BT_CTLR_USER_EXT)
TICKER_ID_USER_BASE,
TICKER_ID_USER_LAST = (TICKER_ID_USER_BASE +
CONFIG_BT_CTLR_USER_TICKER_ID_RANGE - 1),
#endif /* CONFIG_BT_CTLR_USER_EXT */

Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this block only make sense if CONFIG_BT_CTLR_USER_TICKER_ID_RANGE > 0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Doesn't this block only make sense if CONFIG_BT_CTLR_USER_TICKER_ID_RANGE > 0?

Correct. Should we add the condition CONFIG_BT_CTLR_USER_TICKER_ID_RANGE > 0 to line 57?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Doesn't this block only make sense if CONFIG_BT_CTLR_USER_TICKER_ID_RANGE > 0?

Correct. Should we add the condition CONFIG_BT_CTLR_USER_TICKER_ID_RANGE > 0 to line 57?

That would make sense.

@mtpr-ot mtpr-ot requested review from cvinayak and thoh-ot May 7, 2020 11:17
@mtpr-ot
Copy link
Collaborator Author

mtpr-ot commented May 7, 2020

Shippable failures are not from my commit, rebased...

With BT_CTLR_USER_TICKER_ID_RANGE it is possible for vendors to add a
number of ticker nodes for proprietary purposes. The feature depends on
BT_CTLR_USER_EXT.

Signed-off-by: Morten Priess <mtpr@oticon.com>
@carlescufi carlescufi added this to the v2.3.0 milestone May 7, 2020
@carlescufi carlescufi merged commit 3ed658e into zephyrproject-rtos:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insufficient ticker nodes for vendor implementations
5 participants