RTEMS 6.1-rc1
xbasic_types.h
Go to the documentation of this file.
1/******************************************************************************
2* Copyright (c) 2010 - 2021 Xilinx, Inc. All rights reserved.
3* SPDX-License-Identifier: MIT
4******************************************************************************/
5
6/*****************************************************************************/
32#ifndef XBASIC_TYPES_H /* prevent circular inclusions */
33#define XBASIC_TYPES_H /* by using protection macros */
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#include <stdint.h>
40#include <stddef.h>
41
46typedef uint8_t Xuint8;
47typedef char Xint8;
48typedef uint16_t Xuint16;
49typedef short Xint16;
50typedef uint32_t Xuint32;
51typedef long Xint32;
52typedef float Xfloat32;
53typedef double Xfloat64;
54typedef unsigned long Xboolean;
56#if !defined __XUINT64__
57typedef struct
58{
59 Xuint32 Upper;
60 Xuint32 Lower;
61} Xuint64;
62#endif
63
68#ifndef __KERNEL__
69#ifndef XIL_TYPES_H
70typedef Xuint32 u32;
71typedef Xuint16 u16;
72typedef Xuint8 u8;
73#endif
74#else
75#include <linux/types.h>
76#endif
77
78#ifndef TRUE
79# define TRUE 1U
80#endif
81
82#ifndef FALSE
83# define FALSE 0U
84#endif
85
86#ifndef NULL
87#define NULL 0U
88#endif
89
90/*
91 * Xilinx NULL, TRUE and FALSE legacy support. Deprecated.
92 * Please use NULL, TRUE and FALSE
93 */
94#define XNULL NULL
95#define XTRUE TRUE
96#define XFALSE FALSE
97
98/*
99 * This file is deprecated and users
100 * should use xil_types.h and xil_assert.h\n\r
101 */
102#warning The xbasics_type.h file is deprecated and users should use xil_types.h and xil_assert.
103#warning Please refer the Standalone BSP UG647 for further details
104
105#ifdef __cplusplus
106}
107#endif
108
109#endif /* end of protection macro */
110
Definition: xil_types.h:81