File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,12 @@ menu "ADC and ADC Calibration"
92
92
The SARADC clock frequency will be set to the nearest integer multiple of sample freq.
93
93
The fractional divisor parameters will be calculated at runtime.
94
94
95
+ config ADC_CONTINUOUS_NUM_DMA
96
+ int "Set the number of DMA buffers"
97
+ default 5
98
+ help
99
+ Configure the number of DMA buffers used by adc
100
+
95
101
config ADC_ENABLE_DEBUG_LOG
96
102
bool "Enable ADC debug log"
97
103
default n
Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ extern portMUX_TYPE rtc_spinlock; //TODO: Will be placed in the appropriate posi
53
53
#define ADC_ENTER_CRITICAL () portENTER_CRITICAL(&rtc_spinlock)
54
54
#define ADC_EXIT_CRITICAL () portEXIT_CRITICAL(&rtc_spinlock)
55
55
56
+ #ifndef CONFIG_ADC_CONTINUOUS_NUM_DMA
56
57
#define INTERNAL_BUF_NUM 5
58
+ #else
59
+ #define INTERNAL_BUF_NUM CONFIG_ADC_CONTINUOUS_NUM_DMA
60
+ #endif
57
61
58
62
/*---------------------------------------------------------------
59
63
ADC Continuous Read Mode (via DMA)
You can’t perform that action at this time.
0 commit comments