Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce includes for sequencer header #18946

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions quantum/sequencer/sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
*/

#include "sequencer.h"
#include "debug.h"
#include "timer.h"

#ifdef MIDI_ENABLE
# include "process_midi.h"
Expand Down
16 changes: 13 additions & 3 deletions quantum/sequencer/sequencer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down