summaryrefslogtreecommitdiff
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
parent40122c28e026ab2da6dd784b66fd8de2b6dc1fed (diff)
Reduce includes for sequencer header (#18946)
-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 @@
15 */ 15 */
16 16
17#include "sequencer.h" 17#include "sequencer.h"
18#include "debug.h"
19#include "timer.h"
18 20
19#ifdef MIDI_ENABLE 21#ifdef MIDI_ENABLE
20# include "process_midi.h" 22# 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 @@
17#pragma once 17#pragma once
18 18
19#include <stdbool.h> 19#include <stdbool.h>
20#include "debug.h" 20#include <stdint.h>
21#include "timer.h"
22 21
23// Maximum number of steps: 256 22// Maximum number of steps: 256
24#ifndef SEQUENCER_STEPS 23#ifndef SEQUENCER_STEPS
@@ -42,7 +41,18 @@
42 * Make sure that the items of this enumeration follow the powers of 2, separated by a ternary variant. 41 * Make sure that the items of this enumeration follow the powers of 2, separated by a ternary variant.
43 * Check the implementation of `get_step_duration` for further explanation. 42 * Check the implementation of `get_step_duration` for further explanation.
44 */ 43 */
45typedef 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; 44typedef enum {
45 SQ_RES_2, //
46 SQ_RES_2T,
47 SQ_RES_4,
48 SQ_RES_4T,
49 SQ_RES_8,
50 SQ_RES_8T,
51 SQ_RES_16,
52 SQ_RES_16T,
53 SQ_RES_32,
54 SEQUENCER_RESOLUTIONS
55} sequencer_resolution_t;
46 56
47typedef struct { 57typedef struct {
48 bool enabled; 58 bool enabled;