switch debug on/off by pressing 4 keys on booting time
This commit is contained in:
parent
bf92bdd7fa
commit
4acc38751e
6 changed files with 61 additions and 14 deletions
4
print.h
4
print.h
|
@ -1,9 +1,13 @@
|
|||
#ifndef PRINT_H__
|
||||
#define PRINT_H__ 1
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include "usb_debug.h"
|
||||
|
||||
|
||||
bool print_enable;
|
||||
|
||||
// this macro allows you to write print("some text") and
|
||||
// the string is automatically placed into flash memory :)
|
||||
#define print(s) print_P(PSTR(s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue