Rev 1854 | Rev 1869 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1854 | Rev 1864 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #ifndef _OUTPUT_H |
1 | #ifndef _OUTPUT_H |
2 | #define _OUTPUT_H |
2 | #define _OUTPUT_H |
Line 3... | Line 3... | ||
3 | 3 | ||
Line -... | Line 4... | ||
- | 4 | #include <avr/io.h> |
|
- | 5 | ||
- | 6 | #define J3HIGH PORTD |= (1<<PORTD5) |
|
- | 7 | #define J3LOW PORTD &= ~(1<<PORTD5) |
|
- | 8 | #define J3TOGGLE PORTD ^= (1<<PORTD5) |
|
- | 9 | ||
- | 10 | #define J4HIGH PORTD |= (1<<PORTD4) |
|
- | 11 | #define J4LOW PORTD &= ~(1<<PORTD4) |
|
- | 12 | #define J4TOGGLE PORTD ^= (1<<PORTD4) |
|
- | 13 | ||
- | 14 | #define J5HIGH PORTD |= (1<<PORTD3) |
|
- | 15 | #define J5LOW PORTD &= ~(1<<PORTD3) |
|
4 | #include <avr/io.h> |
16 | #define J5TOGGLE PORTD ^= (1<<PORTD3) |
5 | 17 | ||
Line 6... | Line 18... | ||
6 | // invert means: An "1" bit in digital debug data make a LOW on the output. |
18 | // invert means: An "1" bit in digital debug data make a LOW on the output. |
7 | #define DIGITAL_DEBUG_INVERT 1 |
19 | #define DIGITAL_DEBUG_INVERT 1 |
Line 44... | Line 56... | ||
44 | 56 | ||
45 | /* |
57 | /* |
46 | * Set to 0 for using outputs as the usual flashing lights. |
58 | * Set to 0 for using outputs as the usual flashing lights. |
47 | * Set to one of the DEBUG_... defines h for using the outputs as debug lights. |
59 | * Set to one of the DEBUG_... defines h for using the outputs as debug lights. |
48 | */ |
60 | */ |
Line 49... | Line 61... | ||
49 | #define DIGITAL_DEBUG_MASK DEBUG_CLIP |
61 | #define DIGITAL_DEBUG_MASK DEBUG_ACC0THORDER |
50 | 62 | ||
Line 51... | Line 63... | ||
51 | void output_init(void); |
63 | void output_init(void); |