aboutsummaryrefslogtreecommitdiff
path: root/debug.h
blob: 503922abbed29c3de86b8103869d04e42251481f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#define DEBUG_ALL_VAL ((1 << 1) | (1 << 2) | (1 << 3) | (1 << 4) | (1 << 5) | (1 << 6))
#define DEBUG_INIT         do{DDRB |= DEBUG_ALL_VAL;}while(0)
#define DEBUG_MARK_SET_ALL do{PORTB |= DEBUG_ALL_VAL;}while(0)
#define DEBUG_MARK_1_SET   do{PORTB |= 1 << 1;}while(0)
#define DEBUG_MARK_1_CLEAR do{PORTB &= ~(1 << 1);}while(0)
#define DEBUG_MARK_2_SET   do{PORTB |= 1 << 3;}while(0)
#define DEBUG_MARK_2_CLEAR do{PORTB &= ~(1 << 3);}while(0)
#define DEBUG_MARK_3_SET   do{PORTB |= 1 << 2;}while(0)
#define DEBUG_MARK_3_CLEAR do{PORTB &= ~(1 << 2);}while(0)
#define DEBUG_MARK_4_SET   do{PORTB |= 1 << 6;}while(0)
#define DEBUG_MARK_4_CLEAR do{PORTB &= ~(1 << 6);}while(0)
#define DEBUG_MARK_5_SET   do{PORTB |= 1 << 5;}while(0)
#define DEBUG_MARK_5_CLEAR do{PORTB &= ~(1 << 5);}while(0)