36#ifndef LIBBSP_SHARED_XIL_COMPAT_COMMON_H
37#define LIBBSP_SHARED_XIL_COMPAT_COMMON_H
45typedef intptr_t INTPTR;
46typedef uintptr_t UINTPTR;
51#define XST_DEVICE_IS_STARTED 5
52#define XST_DEVICE_BUSY 21
53#define XST_FLASH_TIMEOUT_ERROR 1134
54#define XST_SPI_TRANSFER_DONE 1152
55#define XST_SPI_COMMAND_ERROR 1162
56#define XST_SPI_POLL_DONE 1163
59#define Xil_AssertNonvoid(expr) _Assert(expr);
60#define Xil_AssertVoid(expr) _Assert(expr);
61#define Xil_AssertVoidAlways() _Assert(false);
64#define xil_printf(args...) printf(args)
66#define XIL_COMPONENT_IS_READY 0x1U
69#define Xil_MemCpy(dest, src, count) memcpy(dest, src, count)
71static inline uint32_t Xil_In32(uintptr_t addr)
73 return *(
volatile uint32_t *) addr;
76static inline void Xil_Out32(uintptr_t addr, uint32_t value)
78 *(
volatile uint32_t *)addr = value;
82#define Xil_DCacheInvalidateRange(addr, len) \
83 rtems_cache_flush_multiple_data_lines((void*)addr, len); \
84 rtems_cache_invalidate_multiple_data_lines((void*)addr, len)
85#define Xil_DCacheFlushRange(addr, len) \
86 rtems_cache_flush_multiple_data_lines((void*)addr, len)
This header file provides the interfaces of the Assert Handler.
This header file defines the Cache Manager API.