/* NOTE: Not portable. Bit field order depends on implementation */
typedef union {
- uint8_t raw;
struct {
bool enable:1;
bool matrix:1;
bool mouse:1;
uint8_t reserved:4;
};
+ uint8_t raw;
} debug_config_t;
-debug_config_t debug_config;
+extern debug_config_t debug_config;
/* for backward compatibility */
#define debug_enable (debug_config.enable)