Skip to content

Commit 4be23e6

Browse files
eriksandgrennordicjm
authored andcommitted
bluetooth: cs_de: Use Kconfig choice when selecing FFT size
As only one size (512, 1024 or 2048) can be used at a time. Signed-off-by: Erik Sandgren <[email protected]>
1 parent 2b648c9 commit 4be23e6

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

subsys/bluetooth/cs_de/Kconfig

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,9 @@ module = BT_CS_DE
2323
module-str = CS_DE
2424
source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
2525

26-
config BT_CS_DE_NFFT_SIZE
27-
int
28-
default 512
29-
default 512 if BT_CS_DE_512_NFFT
30-
default 1024 if BT_CS_DE_1024_NFFT
31-
default 2048 if BT_CS_DE_2048_NFFT
32-
help
33-
Internal config. Not intended for use.
26+
choice BT_CS_DE_NFFT_SIZE_SELECTION
27+
prompt "FFT size used in the CS_DE IFFT algorithm"
28+
default BT_CS_DE_512_NFFT
3429

3530
config BT_CS_DE_512_NFFT
3631
bool "Use NFFT with 512 samples."
@@ -41,4 +36,14 @@ config BT_CS_DE_1024_NFFT
4136
config BT_CS_DE_2048_NFFT
4237
bool "Use NFFT with 2048 samples."
4338

39+
endchoice
40+
41+
config BT_CS_DE_NFFT_SIZE
42+
int
43+
default 512 if BT_CS_DE_512_NFFT
44+
default 1024 if BT_CS_DE_1024_NFFT
45+
default 2048 if BT_CS_DE_2048_NFFT
46+
help
47+
Internal config. Not intended for use.
48+
4449
endif # BT_CS_DE

0 commit comments

Comments
 (0)