1
0
Fork 0

Adhoc fix compile error of usb_usb

This commit is contained in:
tmk 2014-09-22 10:42:20 +09:00
parent b9e265368f
commit ea524d7bef
11 changed files with 27 additions and 10 deletions

12
common/debug.c Normal file
View file

@ -0,0 +1,12 @@
#include <stdbool.h>
#include "debug.h"
//debug_config_t debug_config = { .enable = false, .matrix = false };
debug_config_t debug_config = {
.enable = false,
.matrix = false,
.keyboard = false,
.mouse = false,
};

View file

@ -36,7 +36,7 @@ typedef union {
uint8_t reserved:4;
};
} debug_config_t;
debug_config_t debug_config;
extern debug_config_t debug_config;
/* for backward compatibility */
#define debug_enable (debug_config.enable)

View file

@ -32,8 +32,8 @@ extern "C" {
extern bool keyboard_nkro;
#endif
uint8_t keyboard_idle;
uint8_t keyboard_protocol;
extern uint8_t keyboard_idle;
extern uint8_t keyboard_protocol;
/* host driver */

View file

@ -34,10 +34,7 @@
// this macro allows you to write print("some text") and
// the string is automatically placed into flash memory :)
// TODO: avoid collision with arduino/Print.h
#ifndef __cplusplus
#define print(s) print_P(PSTR(s))
#endif
#define println(s) print_P(PSTR(s "\n"))
/* for old name */

View file

@ -8,6 +8,10 @@
#include <inttypes.h>
#include <avr/pgmspace.h>
#ifdef __cplusplus
extern "C" {
#endif
extern void (*xfunc_out)(uint8_t);
#define xdev_out(func) xfunc_out = (void(*)(uint8_t))(func)
@ -99,5 +103,9 @@ char xatoi(char **str, long *ret);
Pointer to return value
*/
#ifdef __cplusplus
}
#endif
#endif