Skip to content

Commit f938195

Browse files
committed
[nrf fromlist] samples: usb: uac2: align feedback_nrf to changes in nrfx
Upstream PR #: 96858 Signed-off-by: Michał Bainczyk <[email protected]>
1 parent c475e9f commit f938195

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

samples/subsys/usb/uac2_explicit_feedback/src/feedback_nrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static const nrfx_gpiote_t gpiote =
6464
NRFX_GPIOTE_INSTANCE(FEEDBACK_GPIOTE_INSTANCE_NUMBER);
6565

6666
static const nrfx_timer_t feedback_timer_instance =
67-
NRFX_TIMER_INSTANCE(FEEDBACK_TIMER_INSTANCE_NUMBER);
67+
NRFX_TIMER_INSTANCE(NRF_TIMER_INST_GET(FEEDBACK_TIMER_INSTANCE_NUMBER));
6868

6969
/* See 5.12.4.2 Feedback in Universal Serial Bus Specification Revision 2.0 for
7070
* more information about the feedback. There is a direct implementation of the

samples/subsys/usb/uac2_implicit_feedback/src/feedback_nrf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline void feedback_target_init(void)
5252
#endif
5353

5454
static const nrfx_timer_t feedback_timer_instance =
55-
NRFX_TIMER_INSTANCE(FEEDBACK_TIMER_INSTANCE_NUMBER);
55+
NRFX_TIMER_INSTANCE(NRF_TIMER_INST_GET(FEEDBACK_TIMER_INSTANCE_NUMBER));
5656

5757
/* While it might be possible to determine I2S FRAMESTART to USB SOF offset
5858
* entirely in software, the I2S API lacks appropriate timestamping. Therefore

0 commit comments

Comments
 (0)