aboutsummaryrefslogtreecommitdiff
path: root/quantum/quantum.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/quantum.h')
-rw-r--r--quantum/quantum.h47
1 files changed, 45 insertions, 2 deletions
diff --git a/quantum/quantum.h b/quantum/quantum.h
index 0c6046649..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,8 +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
89#ifdef PRINTING_ENABLE
90 #include "process_printer.h"
91#endif
92
93#ifdef COMBO_ENABLE
94 #include "process_combo.h"
95#endif
96
62#define SEND_STRING(str) send_string(PSTR(str)) 97#define SEND_STRING(str) send_string(PSTR(str))
63void send_string(const char *str); 98void send_string(const char *str);
64 99
@@ -88,6 +123,7 @@ void unregister_code16 (uint16_t code);
88 123
89#ifdef BACKLIGHT_ENABLE 124#ifdef BACKLIGHT_ENABLE
90void backlight_init_ports(void); 125void backlight_init_ports(void);
126void backlight_task(void);
91 127
92#ifdef BACKLIGHT_BREATHING 128#ifdef BACKLIGHT_BREATHING
93void breathing_enable(void); 129void breathing_enable(void);
@@ -106,8 +142,15 @@ void breathing_speed_dec(uint8_t value);
106#endif 142#endif
107 143
108#endif 144#endif
145void send_dword(uint32_t number);
146void send_word(uint16_t number);
147void send_byte(uint8_t number);
148void send_nibble(uint8_t number);
149uint16_t hex_to_keycode(uint8_t hex);
109 150
110void led_set_user(uint8_t usb_led); 151void led_set_user(uint8_t usb_led);
111void led_set_kb(uint8_t usb_led); 152void led_set_kb(uint8_t usb_led);
112 153
154void api_send_unicode(uint32_t unicode);
155
113#endif 156#endif