Add notes about 2MHz/4MHz mode and binary size.

Also move a couple more things under #ifdef DEBUG in an attempt to
reduce the code size for ATmega168.
It current doesn't fit in the '168 but maybe after some more tweaks.
This commit is contained in:
Andrew Gillham
2013-08-03 13:24:18 -07:00
parent d7c1bf52a8
commit 51df725ee8
2 changed files with 14 additions and 2 deletions

View File

@@ -516,6 +516,7 @@ void captureMicro() {
* Arduino digital pin 8 is being used here.
*/
DEBUG_ENABLE;
#ifdef DEBUG
DEBUG_ON;
delayMicroseconds(20);
DEBUG_OFF;
@@ -524,6 +525,7 @@ void captureMicro() {
delayMicroseconds(20);
DEBUG_OFF;
delayMicroseconds(20);
#endif
if (delayTime == 1) {
/*
@@ -691,6 +693,7 @@ void triggerMicro() {
* Arduino digital pin 8 is being used here.
*/
DEBUG_ENABLE;
#ifdef DEBUG
DEBUG_ON;
delayMicroseconds(20);
DEBUG_OFF;
@@ -699,6 +702,7 @@ void triggerMicro() {
delayMicroseconds(20);
DEBUG_OFF;
delayMicroseconds(20);
#endif
if (delayTime == 1) {
/*
@@ -1027,3 +1031,5 @@ void debugdump() {