Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2134 → Rev 2135

/branches/dongfang_FC_fixedwing/arduino_atmega328/output.h
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,