
/* MalZeit 06/2014 */

#include <avr/io.h>

#ifndef DEBUG_H
#define DEBUG_H

#ifndef DDR_OFFSET
  #define DDR_OFFSET(X) (*(&X-1))
#endif
#ifndef PIN_OFFSET
  #define PIN_OFFSET(X) (*(&X-2))
#endif

#define SET_TP1 (PORTC |= _BV(PC4))
#define SET_TP2 (PORTD |= _BV(PD0))

#define CLEAR_TP1 (PORTC &= ~_BV(PC4))
#define CLEAR_TP2 (PORTD &= ~_BV(PD0))

#define TOGGLE_TP1 (PORTC ^= _BV(PC4))
#define TOGGLE_TP2 (PORTD ^= _BV(PD0))

#endif // DEBUG_H
 
