10,9 → 10,9 |
// invert means: An "1" bit in digital debug data make a LOW on the output. |
#define DIGITAL_DEBUG_INVERT 0 |
|
#define OUTPUT_HIGH(num) {PORTB |= ((1<<4) << (num));} |
#define OUTPUT_LOW(num) {PORTB &= ~((1<<4) << (num));} |
#define OUTPUT_TOGGLE(num) ( {PORTB ^= ((1<<4) << (num));} |
#define OUTPUT_HIGH(num) {PORTB |= ((1<<1) << (num));} |
#define OUTPUT_LOW(num) {PORTB &= ~((1<<1) << (num));} |
#define OUTPUT_TOGGLE(num) ( {PORTB ^= ((1<<1) << (num));} |
|
/* |
* Some digital debugs. A digital debug is 2 signals on the 2 LED outputs, |