Skip to content

Commit 235c889

Browse files
committed
application: nrf5340_audio: Align to new I2S driver
Add the I2S instance property to overlay. This is used to identify the peripheral instance in the Nordic driver. Remove I2S0 symbol from Kconfig. Align audio_i2s module to the new nrfx I2S driver. Signed-off-by: Jakub Zymelka <[email protected]>
1 parent 782de39 commit 235c889

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

applications/nrf5340_audio/Kconfig.defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ config REGULATOR
4848
config CONTIN_ARRAY
4949
default y
5050

51-
config NRFX_I2S0
51+
config NRFX_I2S
5252
default y
5353

5454
config PCM_MIX

applications/nrf5340_audio/boards/nrf5340dk_nrf5340_cpuapp.overlay

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,5 @@
7979
pinctrl-0 = <&i2s0_default>;
8080
pinctrl-1 = <&i2s0_sleep>;
8181
pinctrl-names = "default", "sleep";
82+
instance = <0>;
8283
};

applications/nrf5340_audio/src/modules/audio_i2s.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ PINCTRL_DT_DEFINE(I2S_NL);
3636
#error "Current AUDIO_SAMPLE_RATE_HZ setting not supported"
3737
#endif
3838

39-
static nrfx_i2s_t i2s_inst = NRFX_I2S_INSTANCE(0);
39+
static nrfx_i2s_t i2s_inst = NRFX_I2S_INSTANCE(NRF_I2S0);
40+
41+
NRFX_INSTANCE_IRQ_HANDLER_DEFINE(i2s, 0, &i2s_inst);
4042

4143
static nrfx_i2s_config_t cfg = {
4244
/* Pins are configured by pinctrl. */

0 commit comments

Comments
 (0)