RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Macros | Typedefs
xil-compat-common.h File Reference

This header file provides a minimal shim for Xilinx drivers. More...

#include <stdint.h>
#include <rtems/score/assert.h>
#include <stdio.h>
#include <string.h>
#include <rtems/rtems/cache.h>
#include <unistd.h>
#include <bspopts.h>

Go to the source code of this file.

Macros

#define INLINE   inline
 
#define XST_SUCCESS   0
 
#define XST_FAILURE   1
 
#define XST_DEVICE_IS_STARTED   5
 
#define XST_DEVICE_BUSY   21
 
#define XST_FLASH_TIMEOUT_ERROR   1134
 
#define XST_SPI_TRANSFER_DONE   1152
 
#define XST_SPI_COMMAND_ERROR   1162
 
#define XST_SPI_POLL_DONE   1163
 
#define Xil_AssertNonvoid(expr)   _Assert(expr);
 
#define Xil_AssertVoid(expr)   _Assert(expr);
 
#define Xil_AssertVoidAlways()   _Assert(false);
 
#define xil_printf(args...)   printf(args)
 
#define XIL_COMPONENT_IS_READY   0x1U
 
#define Xil_MemCpy(dest, src, count)   memcpy(dest, src, count)
 
#define Xil_DCacheInvalidateRange(addr, len)
 
#define Xil_DCacheFlushRange(addr, len)    rtems_cache_flush_multiple_data_lines((void*)addr, len)
 

Typedefs

typedef uint8_t u8
 
typedef int8_t s8
 
typedef uint16_t u16
 
typedef uint32_t u32
 
typedef int32_t s32
 
typedef uint64_t u64
 
typedef intptr_t INTPTR
 
typedef uintptr_t UINTPTR
 

Detailed Description

This header file provides a minimal shim for Xilinx drivers.

Macro Definition Documentation

◆ Xil_DCacheInvalidateRange

#define Xil_DCacheInvalidateRange (   addr,
  len 
)
Value:
rtems_cache_invalidate_multiple_data_lines((void*)addr, len)
void rtems_cache_flush_multiple_data_lines(const void *d_addr, size_t n_bytes)
Flushes the data cache lines covering the memory area.
Definition: cacheimpl.h:146