forked from mirrors/qmk_userspace
test build of 'Host shield' in minimal env.
This commit is contained in:
parent
9382bf2f76
commit
c5060ea819
26 changed files with 500 additions and 267 deletions
|
@ -18,19 +18,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#ifndef DEBUG_H
|
||||
#define DEBUG_H 1
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "print.h"
|
||||
|
||||
|
||||
#define debug(s) if(debug_enable) print(s)
|
||||
#define debug(s) if(debug_enable) print_P(PSTR(s))
|
||||
#define debug_hex(c) if(debug_enable) phex(c)
|
||||
#define debug_hex16(i) if(debug_enable) phex16(i)
|
||||
#define debug_bin(c) if(debug_enable) pbin(c)
|
||||
#define debug_bin_reverse(c) if(debug_enable) pbin_reverse(c)
|
||||
|
||||
|
||||
bool debug_enable;
|
||||
bool debug_matrix;
|
||||
bool debug_keyboard;
|
||||
bool debug_mouse;
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern bool debug_enable;
|
||||
extern bool debug_matrix;
|
||||
extern bool debug_keyboard;
|
||||
extern bool debug_mouse;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue