Skip to content

Commit 3bf0129

Browse files
committed
samples: i2s: output: add nucleo_l432kc
Add nucleo_l432kc in samples/drivers/i2s/output Signed-off-by: Mario Paja <mariopaja@hotmail.com>
1 parent 66c8555 commit 3bf0129

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

drivers/i2s/i2s_stm32_sai.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,4 +860,4 @@ static DEVICE_API(i2s, i2s_stm32_driver_api) = {
860860
K_MSGQ_DEFINE(queue_##index, sizeof(struct queue_item), CONFIG_I2S_STM32_SAI_BLOCK_COUNT, \
861861
4);
862862

863-
DT_INST_FOREACH_STATUS_OKAY(I2S_STM32_SAI_INIT)
863+
DT_INST_FOREACH_STATUS_OKAY(I2S_STM32_SAI_INIT)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_HEAP_MEM_POOL_SIZE=4192
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Mario Paja
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
i2s-tx = &sai1_a;
10+
};
11+
};
12+
13+
/* 44.27KHz (0.38% Error) */
14+
&pllsai1 {
15+
div-m = <1>;
16+
mul-n = <17>;
17+
div-r = <2>;
18+
div-q = <2>;
19+
div-p = <12>;
20+
clocks = <&clk_hsi>;
21+
status = "okay";
22+
};
23+
24+
&dma2 {
25+
status = "okay";
26+
};
27+
28+
&sai1_a {
29+
pinctrl-0 = <&sai1_mclk_a_pa3 &sai1_sd_a_pa10
30+
&sai1_fs_a_pa9 &sai1_sck_a_pa8>;
31+
pinctrl-names = "default";
32+
status = "okay";
33+
mclk-enable;
34+
mclk-divider = "div-256";
35+
dma-names = "tx";
36+
};
37+
38+
/* USART1 TX conflicts with SAI1_A FS */
39+
&usart1 {
40+
status = "disabled";
41+
};

0 commit comments

Comments
 (0)