/*
   standard bit defintions to make things more readable
*/

/* the conditional keeps this from being included more than once */
#ifndef BITDEFS_H
#define BITDEFS_H

#define BIT0HI    0x00000001
#define BIT1HI    0x00000002
#define BIT2HI    0x00000004
#define BIT3HI    0x00000008
#define BIT4HI    0x00000010
#define BIT5HI    0x00000020
#define BIT6HI    0x00000040
#define BIT7HI    0x00000080
#define BIT8HI    0x00000100
#define BIT9HI    0x00000200
#define BIT10HI   0x00000400
#define BIT11HI   0x00000800
#define BIT12HI   0x00001000
#define BIT13HI   0x00002000
#define BIT14HI   0x00004000
#define BIT15HI   0x00008000
#define BIT16HI   0x00010000
#define BIT17HI   0x00020000
#define BIT18HI   0x00040000
#define BIT19HI   0x00080000
#define BIT20HI   0x00100000
#define BIT21HI   0x00200000
#define BIT22HI   0x00400000
#define BIT23HI   0x00800000
#define BIT24HI   0x01000000
#define BIT25HI   0x02000000
#define BIT26HI   0x04000000
#define BIT27HI   0x08000000
#define BIT28HI   0x10000000
#define BIT29HI   0x20000000
#define BIT30HI   0x40000000
#define BIT31HI   0x80000000

#define BIT0LO    ~0x00000001
#define BIT1LO    ~0x00000002
#define BIT2LO    ~0x00000004
#define BIT3LO    ~0x00000008
#define BIT4LO    ~0x00000010
#define BIT5LO    ~0x00000020
#define BIT6LO    ~0x00000040
#define BIT7LO    ~0x00000080
#define BIT8LO    ~0x00000100
#define BIT9LO    ~0x00000200
#define BIT10LO   ~0x00000400
#define BIT11LO   ~0x00000800
#define BIT12LO   ~0x00001000
#define BIT13LO   ~0x00002000
#define BIT14LO   ~0x00004000
#define BIT15LO   ~0x00008000
#define BIT16LO   ~0x00010000
#define BIT17LO   ~0x00020000
#define BIT18LO   ~0x00040000
#define BIT19LO   ~0x00080000
#define BIT20LO   ~0x00100000
#define BIT21LO   ~0x00200000
#define BIT22LO   ~0x00400000
#define BIT23LO   ~0x00800000
#define BIT24LO   ~0x01000000
#define BIT25LO   ~0x02000000
#define BIT26LO   ~0x04000000
#define BIT27LO   ~0x08000000
#define BIT28LO   ~0x10000000
#define BIT29LO   ~0x20000000
#define BIT30LO   ~0x40000000
#define BIT31LO   ~0x80000000

#endif  /* BITDEFS_H */

