Embedded systems have limited resources and need to lower the default channel alocation
Showing the changes to src/src_sinc.c (1 of 1 file). Show all
Unified · Split
| @@ -25,7 +25,13 @@ · 24 unmodified lines | ||
| 25 | 25 | #define SHIFT_BITS 12 |
| 26 | 26 | #define FP_ONE ((double) (((increment_t) 1) << SHIFT_BITS)) |
| 27 | 27 | #define INV_FP_ONE (1.0 / FP_ONE) |
| 28 | + | |
| 29 | +/* Customixe max channls from Kconfig. */ | |
| 30 | +#ifndef CONFIG_CHAN_NR | |
| 28 | 31 | #define MAX_CHANNELS 128 |
| 32 | +#else | |
| 33 | +#define MAX_CHANNELS CONFIG_CHAN_NR | |
| 34 | +#endif | |
| 29 | 35 | |
| 30 | 36 | /*======================================================================================== |
| 31 | 37 | */ |