aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r--quantum/quantum.h38
1 files changed, 35 insertions, 3 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index e6adf974a..2bf18d095 100644
--- a/quantum/quantum.h
+++ b/quantum/quantum.h
@@ -1,3 +1,18 @@
1/* Copyright 2016-2017 Erez Zukerman, Jack Humbert
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
1#ifndef QUANTUM_H 16#ifndef QUANTUM_H
2#define QUANTUM_H 17#define QUANTUM_H
3 18
@@ -15,7 +30,6 @@
15#ifdef RGBLIGHT_ENABLE 30#ifdef RGBLIGHT_ENABLE
16 #include "rgblight.h" 31 #include "rgblight.h"
17#endif 32#endif
18
19#include "action_layer.h" 33#include "action_layer.h"
20#include "eeconfig.h" 34#include "eeconfig.h"
21#include <stddef.h> 35#include <stddef.h>
@@ -36,11 +50,16 @@ extern uint32_t default_layer_state;
36 50
37#ifdef MIDI_ENABLE 51#ifdef MIDI_ENABLE
38 #include <lufa.h> 52 #include <lufa.h>
53#ifdef MIDI_ADVANCED
39 #include "process_midi.h" 54 #include "process_midi.h"
40#endif 55#endif
56#endif // MIDI_ENABLE
41 57
42#ifdef AUDIO_ENABLE 58#ifdef AUDIO_ENABLE
43 #include "audio.h" 59 #include "process_audio.h"
60#endif
61
62#if defined(AUDIO_ENABLE) || (defined(MIDI_ENABLE) && defined(MIDI_BASIC))
44 #include "process_music.h" 63 #include "process_music.h"
45#endif 64#endif
46 65
@@ -57,12 +76,24 @@ extern uint32_t default_layer_state;
57 #include "process_unicode.h" 76 #include "process_unicode.h"
58#endif 77#endif
59 78
79#ifdef UCIS_ENABLE
80 #include "process_ucis.h"
81#endif
82
83#ifdef UNICODEMAP_ENABLE
84 #include "process_unicodemap.h"
85#endif
86
60#include "process_tap_dance.h" 87#include "process_tap_dance.h"
61 88
62#ifdef PRINTING_ENABLE 89#ifdef PRINTING_ENABLE
63 #include "process_printer.h" 90 #include "process_printer.h"
64#endif 91#endif
65 92
93#ifdef COMBO_ENABLE
94 #include "process_combo.h"
95#endif
96
66#define SEND_STRING(str) send_string(PSTR(str)) 97#define SEND_STRING(str) send_string(PSTR(str))
67void send_string(const char *str); 98void send_string(const char *str);
68 99
@@ -92,6 +123,7 @@ void unregister_code16 (uint16_t code);
92 123
93#ifdef BACKLIGHT_ENABLE 124#ifdef BACKLIGHT_ENABLE
94void backlight_init_ports(void); 125void backlight_init_ports(void);
126void backlight_task(void);
95 127
96#ifdef BACKLIGHT_BREATHING 128#ifdef BACKLIGHT_BREATHING
97void breathing_enable(void); 129void breathing_enable(void);
@@ -114,7 +146,7 @@ void send_dword(uint32_t number);
114void send_word(uint16_t number); 146void send_word(uint16_t number);
115void send_byte(uint8_t number); 147void send_byte(uint8_t number);
116void send_nibble(uint8_t number); 148void send_nibble(uint8_t number);
117 149uint16_t hex_to_keycode(uint8_t hex);
118 150
119void led_set_user(uint8_t usb_led); 151void led_set_user(uint8_t usb_led);
120void led_set_kb(uint8_t usb_led); 152void led_set_kb(uint8_t usb_led);