diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-04-11 22:53:00 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-04-11 22:56:43 +0200 |
| commit | 0ba699511c136e0215fd2f75e2800be920221497 (patch) | |
| tree | 93ada6042e058a9d0dcf074246b6c58fb282cdf7 /src/common/includes/Core | |
| parent | 7c7cd71c56808610be6af41dbeb09637026414bb (diff) | |
| download | glutte-o-matic-0ba699511c136e0215fd2f75e2800be920221497.tar.gz glutte-o-matic-0ba699511c136e0215fd2f75e2800be920221497.tar.bz2 glutte-o-matic-0ba699511c136e0215fd2f75e2800be920221497.zip | |
Rework tone detector
- Send buffer pointers from ISR to userspace
- Use ADC interrupt to fetch data, not TIM6
- Increase size of buffer and do double-buffering
- Implement DTMF detectors
- Compare relative results instead of using absolute thresholds
- Add an IIR averaging filter on the results
Diffstat (limited to 'src/common/includes/Core')
| -rw-r--r-- | src/common/includes/Core/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/includes/Core/common.h b/src/common/includes/Core/common.h index 3f7dbcc..2dc0680 100644 --- a/src/common/includes/Core/common.h +++ b/src/common/includes/Core/common.h @@ -63,7 +63,8 @@ int random_bool(void); #define FAULT_SOURCE_TASK_OVERFLOW 5 #define FAULT_SOURCE_CW_AUDIO_QUEUE 6 #define FAULT_SOURCE_ADC1 7 -#define FAULT_SOURCE_ADC2 8 +#define FAULT_SOURCE_TIM6_ISR 8 +#define FAULT_SOURCE_ADC2_QUEUE 9 void trigger_fault(int source); int find_last_sunday(const struct tm*); |
