12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- /*!
- *******************************************************************************
- **
- ** \file gbitdefs.h
- **
- ** \brief General bit constants.
- **
- ** (C) Copyright 2012-2013 by Goke Microelectronics Shanghai Branch
- **
- ** \attention THIS SAMPLE CODE IS PROVIDED AS IS. GOKE MICROELECTRONICS
- ** ACCEPTS NO RESPONSIBILITY OR LIABILITY FOR ANY ERRORS OR
- ** OMMISSIONS.
- **
- ** \version \$Revision: 1.0 $
- **
- ******************************************************************************/
- #ifndef _GBITDEFS_H_
- #define _GBITDEFS_H_
- #define BIT0 0x0001 //!< Bit 0.
- #define BIT1 0x0002 //!< Bit 1.
- #define BIT2 0x0004 //!< Bit 2.
- #define BIT3 0x0008 //!< Bit 3.
- #define BIT4 0x0010 //!< Bit 4.
- #define BIT5 0x0020 //!< Bit 5.
- #define BIT6 0x0040 //!< Bit 6.
- #define BIT7 0x0080 //!< Bit 7.
- #define BIT8 0x0100 //!< Bit 8.
- #define BIT9 0x0200 //!< Bit 9.
- #define BIT10 0x0400 //!< Bit 10.
- #define BIT11 0x0800 //!< Bit 11.
- #define BIT12 0x1000 //!< Bit 12.
- #define BIT13 0x2000 //!< Bit 13.
- #define BIT14 0x4000 //!< Bit 14.
- #define BIT15 0x8000 //!< Bit 15.
- #define BIT16 0x00010000 //!< Bit 16.
- #define BIT17 0x00020000 //!< Bit 17.
- #define BIT18 0x00040000 //!< Bit 18.
- #define BIT19 0x00080000 //!< Bit 19.
- #define BIT20 0x00100000 //!< Bit 20.
- #define BIT21 0x00200000 //!< Bit 21.
- #define BIT22 0x00400000 //!< Bit 22.
- #define BIT23 0x00800000 //!< Bit 23.
- #define BIT24 0x01000000 //!< Bit 24.
- #define BIT25 0x02000000 //!< Bit 25.
- #define BIT26 0x04000000 //!< Bit 26.
- #define BIT27 0x08000000 //!< Bit 27.
- #define BIT28 0x10000000 //!< Bit 28.
- #define BIT29 0x20000000 //!< Bit 29.
- #define BIT30 0x40000000 //!< Bit 30.
- #define BIT31 0x80000000 //!< Bit 31.
- #define BIT16IH 0x0001
- #define BIT17IH 0x0002
- #define BIT18IH 0x0004
- #define BIT19IH 0x0008
- #define BIT20IH 0x0010
- #define BIT21IH 0x0020
- #define BIT22IH 0x0040
- #define BIT23IH 0x0080
- #define BIT24IH 0x0100
- #define BIT25IH 0x0200
- #define BIT26IH 0x0400
- #define BIT27IH 0x0800
- #define BIT28IH 0x1000
- #define BIT29IH 0x2000
- #define BIT30IH 0x4000
- #define BIT31IH 0x8000
- #endif /* _GBITDEFS_H_ */
|