12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- /*********************************************************************
- * SEGGER MICROCONTROLLER GmbH & Co. KG *
- * Solutions for real time microcontroller applications *
- **********************************************************************
- * *
- * (c) 2015 - 2016 SEGGER Microcontroller GmbH & Co. KG *
- * *
- * www.segger.com Support: support@segger.com *
- * *
- **********************************************************************
- * *
- * SEGGER SystemView * Real-time application analysis *
- * *
- **********************************************************************
- * *
- * All rights reserved. *
- * *
- * * This software may in its unmodified form be freely redistributed *
- * in source form. *
- * * The source code may be modified, provided the source code *
- * retains the above copyright notice, this list of conditions and *
- * the following disclaimer. *
- * * Modified versions of this software in source or linkable form *
- * may not be distributed without prior consent of SEGGER. *
- * *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS "AS IS" AND *
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, *
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A *
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL *
- * SEGGER Microcontroller BE LIABLE FOR ANY DIRECT, INDIRECT, *
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS *
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS *
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, *
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING *
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS *
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *
- * *
- **********************************************************************
- * *
- * SystemView version: V2.40 *
- * *
- **********************************************************************
- ----------------------------------------------------------------------
- File : Global.h
- Purpose : Global types
- In case your application already has a Global.h, you should
- merge the files. In order to use Segger code, the types
- U8, U16, U32, I8, I16, I32 need to be defined in Global.h;
- additional definitions do not hurt.
- ---------------------------END-OF-HEADER------------------------------
- */
- #ifndef GLOBAL_H // Guard against multiple inclusion
- #define GLOBAL_H
- #define U8 unsigned char
- #define U16 unsigned short
- #define U32 unsigned long
- #define I8 signed char
- #define I16 signed short
- #define I32 signed long
- #ifdef _WIN32
- //
- // Microsoft VC6 compiler related
- //
- #define U64 unsigned __int64
- #define U128 unsigned __int128
- #define I64 __int64
- #define I128 __int128
- #if _MSC_VER <= 1200
- #define U64_C(x) x##UI64
- #else
- #define U64_C(x) x##ULL
- #endif
- #else
- //
- // C99 compliant compiler
- //
- #define U64 unsigned long long
- #define I64 signed long long
- #define U64_C(x) x##ULL
- #endif
- #endif // Avoid multiple inclusion
- /*************************** End of file ****************************/
|