/* Common #defines, macros and variables.
 *
 * $Id: common.h 198 2005-10-01 14:20:12Z anders $
 *
 * Copyright (C) 2005 Anders Dubgaard <anders@dubgaard.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _COMMON_H
#define _COMMON_H 1

/* Define _DEBUG to use debugging via the USART/serial port
 * at 115.2KBaud. If not, the base will use 230.4KBaud to
 * communicate over the serial-to-USB.
 *
 * Define _VERBOSE_DEBUG to kind-of-pretty-print joystick data
 * on the terminal with print_data_verbose() (uses printf and
 * takes alot of flash) */

#define _DEBUG 1
//#define _VERBOSE_DEBUG 1

/* General pin up/down macros */
#define setbit(ADDRESS,BIT) (ADDRESS |= (1<<BIT))
#define clrbit(ADDRESS,BIT) (ADDRESS &= ~(1<<BIT))

enum boolean { false, true };

#endif  // _COMMON_H

