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

Samples: Bluetooth: conn time sync fix #17745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions samples/bluetooth/conn_time_sync/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,16 @@ To observe that the LEDs are toggled synchronously, use a logic analyzer or an o

Overview
********
.. tabs::

.. group-tab:: nRF52 and nRF53 DKs

The Central and Peripheral devices toggle **LED 2** synchronously and within a few microseconds of one another.

.. group-tab:: nRF54 DKs

The Central and Peripheral devices toggle **LED 1** synchronously and within a few microseconds of one another.

The Central and Peripheral devices toggle **LED 1** synchronously and within a few microseconds of one another.
The LEDs are toggled at the timestamp specified by the Central device.

Clock synchronization
Expand Down Expand Up @@ -99,9 +107,17 @@ On nRF52 and nRF53 Series devices, you also need one RTC peripheral, one TIMER p

User interface
**************
.. tabs::

.. group-tab:: nRF52 and nRF53 DKs

**LED 2**:
Blinks simultaneously on all devices after synchronization takes place.

.. group-tab:: nRF54 DKs

LED 1:
Blinks simultaneously on all devices after synchronization takes place.
**LED 1**:
Blinks simultaneously on all devices after synchronization takes place.

Building and running
********************
Expand Down
4 changes: 2 additions & 2 deletions samples/bluetooth/conn_time_sync/src/timed_led_toggle.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ int timed_led_toggle_init(void)
const nrfx_gpiote_task_config_t task_cfg_led_toggle = {
.task_ch = gpiote_chan_led_toggle,
.polarity = NRF_GPIOTE_POLARITY_TOGGLE,
.init_val = (led.dt_flags & GPIO_ACTIVE_HIGH) ?
NRF_GPIOTE_INITIAL_VALUE_LOW : NRF_GPIOTE_INITIAL_VALUE_HIGH,
.init_val = (led.dt_flags & GPIO_ACTIVE_LOW) ?
NRF_GPIOTE_INITIAL_VALUE_HIGH : NRF_GPIOTE_INITIAL_VALUE_LOW,
};

if (nrfx_gpiote_output_configure(&gpiote, LED_PIN, &gpiote_output_cfg,
Expand Down
Loading