16,7 → 16,7 |
#define J5TOGGLE PORTD ^= (1<<PORTD3) |
|
// invert means: An "1" bit in digital debug data make a LOW on the output. |
#define DIGITAL_DEBUG_INVERT 1 |
#define DIGITAL_DEBUG_INVERT 0 |
|
#define OUTPUT_HIGH(num) {PORTC |= (4 << (num));} |
#define OUTPUT_LOW(num) {PORTC &= ~(4 << (num));} |
44,8 → 44,13 |
* Digital debugs may be added as desired, and removed when the mystery |
* at hand is resolved. |
*/ |
#define DEBUG_LEDTEST 256 |
#define DEBUG_HEIGHT_SWITCH 1 |
|
#define DEBUG_LEDTEST_ON 1000 |
#define DEBUG_LEDTEST_OFF 1001 |
#define DEBUG_LEDTEST_0 1002 |
#define DEBUG_LEDTEST_1 1003 |
|
#define DEBUG_MAINLOOP_TIMER 1 |
#define DEBUG_HEIGHT_DIFF 2 |
#define DEBUG_HOVERTHROTTLE 4 |
#define DEBUG_ACC0THORDER 8 |
58,7 → 63,7 |
* Set to 0 for using outputs as the usual flashing lights. |
* Set to one of the DEBUG_... defines h for using the outputs as debug lights. |
*/ |
#define DIGITAL_DEBUG_MASK DEBUG_ACC0THORDER |
#define DIGITAL_DEBUG_MASK DEBUG_MAINLOOP_TIMER |
|
void output_init(void); |
void output_update(void); |