This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
qmk_firmware
mirror of
https://github.com/qmk/qmk_firmware/
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
1.6k
Wiki
Activity
Browse Source
Reduce includes for sequencer header (
#18946
)
pull/18948/head
Joel Challis
1 year ago
committed by
GitHub
parent
40122c28e0
commit
f11a247127
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
15 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
quantum/sequencer/sequencer.c
+13
-3
quantum/sequencer/sequencer.h
+ 2
- 0
quantum/sequencer/sequencer.c
View File
@ -15,6 +15,8 @@
*/
#
include
"sequencer.h"
#
include
"debug.h"
#
include
"timer.h"
#
ifdef MIDI_ENABLE
#
include "process_midi.h"
+ 13
- 3
quantum/sequencer/sequencer.h
View File
@ -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
;
Write
Preview
Loading…
Cancel
Save