Subversion Repositories FlightCtrl

Rev

Rev 2111 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2111 Rev 2135
Line 8... Line 8...
8
#define PD2TOGGLE PORTD ^= (1<<PORTD2)
8
#define PD2TOGGLE PORTD ^= (1<<PORTD2)
Line 9... Line 9...
9
 
9
 
10
// invert means: An "1" bit in digital debug data make a LOW on the output.
10
// invert means: An "1" bit in digital debug data make a LOW on the output.
Line 11... Line 11...
11
#define DIGITAL_DEBUG_INVERT 0
11
#define DIGITAL_DEBUG_INVERT 0
12
 
12
 
13
#define OUTPUT_HIGH(num)        {PORTB |=  ((1<<4) << (num));}
13
#define OUTPUT_HIGH(num)        {PORTB |=  ((1<<1) << (num));}
Line 14... Line 14...
14
#define OUTPUT_LOW(num)         {PORTB &= ~((1<<4) << (num));}
14
#define OUTPUT_LOW(num)         {PORTB &= ~((1<<1) << (num));}
15
#define OUTPUT_TOGGLE(num) (    {PORTB ^=  ((1<<4) << (num));}
15
#define OUTPUT_TOGGLE(num) (    {PORTB ^=  ((1<<1) << (num));}
16
 
16
 
17
/*
17
/*