summaryrefslogtreecommitdiff
path: root/quantum/audio
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-03-23 05:30:30 +0000
committerGitHub <noreply@github.com>2023-03-23 05:30:30 +0000
commitb01dc36fbf09c3ebf8efe1bac54205ace1b1c6cc (patch)
treedacbffac9d1918eb8962f631517cfec544adb965 /quantum/audio
parent42aa83787fd0d3a5acd0ac7fbe7d148648be742d (diff)
Tidy up duplication of MIN/MAX fallback implementations (#20236)
Diffstat (limited to 'quantum/audio')
-rw-r--r--quantum/audio/audio.c1
-rw-r--r--quantum/audio/audio.h5
2 files changed, 1 insertions, 5 deletions
diff --git a/quantum/audio/audio.c b/quantum/audio/audio.c
index 3f6dc20232..2570ad9cd1 100644
--- a/quantum/audio/audio.c
+++ b/quantum/audio/audio.c
@@ -18,6 +18,7 @@
#include "eeconfig.h"
#include "timer.h"
#include "wait.h"
+#include "util.h"
/* audio system:
*
diff --git a/quantum/audio/audio.h b/quantum/audio/audio.h
index 6feecb5e65..497f3dafd0 100644
--- a/quantum/audio/audio.h
+++ b/quantum/audio/audio.h
@@ -43,11 +43,6 @@ typedef union {
};
} audio_config_t;
-// AVR/LUFA has a MIN, arm/chibios does not
-#ifndef MIN
-# define MIN(a, b) (((a) < (b)) ? (a) : (b))
-#endif
-
/*
* a 'musical note' is represented by pitch and duration; a 'musical tone' adds intensity and timbre
* https://en.wikipedia.org/wiki/Musical_tone