aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/includes
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-19 17:52:52 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2019-04-19 17:53:21 +0200
commit0e09a45cfd6ce22cb2708e9e42fe375fcf4b6091 (patch)
treed185445b707e6da1772cb9c1ef061c7d6474cf95 /src/common/includes
parent0e8b0c38b5100a0be3c1ce87935fda1daf7f2cb2 (diff)
downloadglutte-o-matic-0e09a45cfd6ce22cb2708e9e42fe375fcf4b6091.tar.gz
glutte-o-matic-0e09a45cfd6ce22cb2708e9e42fe375fcf4b6091.tar.bz2
glutte-o-matic-0e09a45cfd6ce22cb2708e9e42fe375fcf4b6091.zip
Fix tone detection
Diffstat (limited to 'src/common/includes')
-rw-r--r--src/common/includes/Audio/tone.h2
-rw-r--r--src/common/includes/Core/common.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h
index 7de1c31..272fcb9 100644
--- a/src/common/includes/Audio/tone.h
+++ b/src/common/includes/Audio/tone.h
@@ -44,6 +44,6 @@ int tone_fax_status(void);
void tone_do_analysis(void);
/* Push a sample from the ADC ISR */
-void tone_detect_push_sample_from_irq(const int16_t sample);
+void tone_detect_push_sample_from_irq(const uint16_t sample);
#endif
diff --git a/src/common/includes/Core/common.h b/src/common/includes/Core/common.h
index 2dc0680..4918a5b 100644
--- a/src/common/includes/Core/common.h
+++ b/src/common/includes/Core/common.h
@@ -65,6 +65,7 @@ int random_bool(void);
#define FAULT_SOURCE_ADC1 7
#define FAULT_SOURCE_TIM6_ISR 8
#define FAULT_SOURCE_ADC2_QUEUE 9
+#define FAULT_SOURCE_ADC2_IRQ 10
void trigger_fault(int source);
int find_last_sunday(const struct tm*);