aboutsummaryrefslogtreecommitdiff
path: root/common/debug_config.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/debug_config.h')
-rw-r--r--common/debug_config.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/common/debug_config.h b/common/debug_config.h
deleted file mode 100644
index 0e67ee49f..000000000
--- a/common/debug_config.h
+++ /dev/null
@@ -1,52 +0,0 @@
1/*
2Copyright 2013 Jun Wako <wakojun@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef DEBUG_CONFIG_H
19#define DEBUG_CONFIG_H 1
20
21#include <stdbool.h>
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/* NOTE: Not portable. Bit field order depends on implementation */
29typedef union {
30 uint8_t raw;
31 struct {
32 bool enable:1;
33 bool matrix:1;
34 bool keyboard:1;
35 bool mouse:1;
36 uint8_t reserved:4;
37 };
38} debug_config_t;
39debug_config_t debug_config;
40
41#ifdef __cplusplus
42}
43#endif
44
45
46/* for backward compatibility */
47#define debug_enable (debug_config.enable)
48#define debug_matrix (debug_config.matrix)
49#define debug_keyboard (debug_config.keyboard)
50#define debug_mouse (debug_config.mouse)
51
52#endif