1
0
Fork 0

switch debug on/off by pressing 4 keys on booting time

This commit is contained in:
tmk 2010-10-24 03:27:43 +09:00
parent bf92bdd7fa
commit 4acc38751e
6 changed files with 61 additions and 14 deletions

View file

@ -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))