summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2022-11-03 20:44:36 +0000
committerGitHub <noreply@github.com>2022-11-03 20:44:36 +0000
commitf11a247127c82bc207f20e0b1be2cf6efea3a129 (patch)
tree620b37404ef37b590ab53d5e922ea2926af3a380 /quantum
parent40122c28e026ab2da6dd784b66fd8de2b6dc1fed (diff)
Reduce includes for sequencer header (#18946)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/sequencer/sequencer.c2
-rw-r--r--quantum/sequencer/sequencer.h16
2 files changed, 15 insertions, 3 deletions
diff --git a/quantum/sequencer/sequencer.c b/quantum/sequencer/sequencer.c
index 2e92f7b3eb..ff243c870b 100644
--- a/quantum/sequencer/sequencer.c
+++ b/quantum/sequencer/sequencer.c
@@ -15,6 +15,8 @@
*/
#include "sequencer.h"
+#include "debug.h"
+#include "timer.h"
#ifdef MIDI_ENABLE
# include "process_midi.h"
diff --git a/quantum/sequencer/sequencer.h b/quantum/sequencer/sequencer.h
index a8ea16eece..a6498ed413 100644
--- a/quantum/sequencer/sequencer.h
+++ b/quantum/sequencer/sequencer.h
@@ -17,8 +17,7 @@
#pragma once
#include <stdbool.h>
-#include "debug.h"
-#include "timer.h"
+#include <stdint.h>
// Maximum number of steps: 256
#ifndef SEQUENCER_STEPS
@@ -42,7 +41,18 @@
* Make sure that the items of this enumeration follow the powers of 2, separated by a ternary variant.
* Check the implementation of `get_step_duration` for further explanation.
*/
-typedef enum { SQ_RES_2, SQ_RES_2T, SQ_RES_4, SQ_RES_4T, SQ_RES_8, SQ_RES_8T, SQ_RES_16, SQ_RES_16T, SQ_RES_32, SEQUENCER_RESOLUTIONS } sequencer_resolution_t;
+typedef enum {
+ SQ_RES_2, //
+ SQ_RES_2T,
+ SQ_RES_4,
+ SQ_RES_4T,
+ SQ_RES_8,
+ SQ_RES_8T,
+ SQ_RES_16,
+ SQ_RES_16T,
+ SQ_RES_32,
+ SEQUENCER_RESOLUTIONS
+} sequencer_resolution_t;
typedef struct {
bool enabled;