diff options
Diffstat (limited to 'quantum/audio/luts.h')
-rw-r--r-- | quantum/audio/luts.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/quantum/audio/luts.h b/quantum/audio/luts.h index 6fdd3b463..74980b292 100644 --- a/quantum/audio/luts.h +++ b/quantum/audio/luts.h | |||
@@ -14,6 +14,8 @@ | |||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 | */ | 15 | */ |
16 | 16 | ||
17 | #pragma once | ||
18 | |||
17 | #if defined(__AVR__) | 19 | #if defined(__AVR__) |
18 | # include <avr/io.h> | 20 | # include <avr/io.h> |
19 | # include <avr/interrupt.h> | 21 | # include <avr/interrupt.h> |
@@ -23,14 +25,9 @@ | |||
23 | # include <hal.h> | 25 | # include <hal.h> |
24 | #endif | 26 | #endif |
25 | 27 | ||
26 | #ifndef LUTS_H | 28 | #define VIBRATO_LUT_LENGTH 20 |
27 | # define LUTS_H | ||
28 | |||
29 | # define VIBRATO_LUT_LENGTH 20 | ||
30 | 29 | ||
31 | # define FREQUENCY_LUT_LENGTH 349 | 30 | #define FREQUENCY_LUT_LENGTH 349 |
32 | 31 | ||
33 | extern const float vibrato_lut[VIBRATO_LUT_LENGTH]; | 32 | extern const float vibrato_lut[VIBRATO_LUT_LENGTH]; |
34 | extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH]; | 33 | extern const uint16_t frequency_lut[FREQUENCY_LUT_LENGTH]; |
35 | |||
36 | #endif /* LUTS_H */ | ||