aboutsummaryrefslogtreecommitdiff
path: root/quantum/audio
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2021-07-24 19:56:45 +0100
committerGitHub <noreply@github.com>2021-07-24 19:56:45 +0100
commitb5bcd5b0a18079df1252a718588255c62d24a054 (patch)
tree886b84473e94718fed4de18a6d6c5b5b9e46eb89 /quantum/audio
parent145d89ab9192d08b7e22a14105d27988944b7b0c (diff)
downloadqmk_firmware-b5bcd5b0a18079df1252a718588255c62d24a054.tar.gz
qmk_firmware-b5bcd5b0a18079df1252a718588255c62d24a054.zip
Refactor some platform dependent logic (#13675)
Diffstat (limited to 'quantum/audio')
-rw-r--r--quantum/audio/luts.h10
-rw-r--r--quantum/audio/voices.h3
2 files changed, 2 insertions, 11 deletions
diff --git a/quantum/audio/luts.h b/quantum/audio/luts.h
index 74980b292..8bb045449 100644
--- a/quantum/audio/luts.h
+++ b/quantum/audio/luts.h
@@ -16,14 +16,8 @@
16 16
17#pragma once 17#pragma once
18 18
19#if defined(__AVR__) 19#include <float.h>
20# include <avr/io.h> 20#include <stdint.h>
21# include <avr/interrupt.h>
22# include <avr/pgmspace.h>
23#else
24# include <ch.h>
25# include <hal.h>
26#endif
27 21
28#define VIBRATO_LUT_LENGTH 20 22#define VIBRATO_LUT_LENGTH 20
29 23
diff --git a/quantum/audio/voices.h b/quantum/audio/voices.h
index 578350d33..1f402e7e1 100644
--- a/quantum/audio/voices.h
+++ b/quantum/audio/voices.h
@@ -18,9 +18,6 @@
18 18
19#include <stdint.h> 19#include <stdint.h>
20#include <stdbool.h> 20#include <stdbool.h>
21#if defined(__AVR__)
22# include <avr/io.h>
23#endif
24#include "wait.h" 21#include "wait.h"
25#include "luts.h" 22#include "luts.h"
26 23