/////////////////////////////////////////////////////////////////////////// // Name: common.h // Author: B. Gian James // Description: All the common stuff I include in all my applications. // // $Id: common.h,v 1.1.1.1 2009/08/19 06:09:42 gian Exp $ /////////////////////////////////////////////////////////////////////////// #pragma once #ifndef F_CPU #define F_CPU 16000000UL #endif #include #include #include #include #include // This just makes my life easier #define BIT16(b) ((unsigned long)0x00000001 << (b)) #define BIT8(b) (0x01 << (b)) // from AVR035: Efficient C Coding for AVR #define BSET(ADDRESS,BIT) (ADDRESS |= (unsigned char)(1<