aboutsummaryrefslogtreecommitdiff
path: root/common/debug.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-04-07 15:36:50 +0900
committertmk <nobody@nowhere>2013-04-07 15:36:50 +0900
commit4e93b3fa67d3b8170de2f05322738e08ac17948e (patch)
tree46b5191bd9e6c591bc13e05aa97a0454f30b1897 /common/debug.h
parent78fd5a715464e72df08bcf683ca45b63c2df490f (diff)
downloadqmk_firmware-4e93b3fa67d3b8170de2f05322738e08ac17948e.tar.gz
qmk_firmware-4e93b3fa67d3b8170de2f05322738e08ac17948e.zip
Fix bootmagic and eeconfig for virtual DIP SW
Diffstat (limited to 'common/debug.h')
-rw-r--r--common/debug.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/common/debug.h b/common/debug.h
index e16ea14af..cac682703 100644
--- a/common/debug.h
+++ b/common/debug.h
@@ -79,10 +79,26 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
79extern "C" { 79extern "C" {
80#endif 80#endif
81 81
82extern bool debug_enable; 82
83extern bool debug_matrix; 83/* NOTE: Not portable. Bit field order depends on implementation */
84extern bool debug_keyboard; 84typedef union {
85extern bool debug_mouse; 85 uint8_t raw;
86 struct {
87 bool enable:1;
88 bool matrix:1;
89 bool keyboard:1;
90 bool mouse:1;
91 uint8_t reserved:4;
92 };
93} debug_config_t;
94debug_config_t debug_config;
95
96/* for backward compatibility */
97#define debug_enable (debug_config.enable)
98#define debug_matrix (debug_config.matrix)
99#define debug_keyboard (debug_config.keyboard)
100#define debug_mouse (debug_config.mouse)
101
86 102
87#ifdef __cplusplus 103#ifdef __cplusplus
88} 104}