usbps
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Macros Groups Pages
xusbps_intr_example.c File Reference

Overview

This file contains an example of how to use the USB driver with the USB controller in DEVICE mode.

  MODIFICATION HISTORY:
  Ver   Who     Date     Changes


1.00a wgr/nm 10/09/10 First release 1.01a nm 03/05/10 Included xpseudo_asm.h instead of xpseudo_asm_gcc.h 1.04a nm 02/05/13 Fixed CR# 696550. Added template code for Vendor request. 1.06a kpc 11/11/13 Fixed CR#759458, cacheInvalidate size should be ailgned to cache line size. 2.1 kpc 04/28/14 Cleanup and removed unused functions 2.4 vak 04/01/19 Fixed IAR data_alignment warnings 2.8 pm 07/07/23 Added support for system device-tree flow 2.10 ka 21/08/25 Fix GCC warnings 2.11 bdk 12/08/25 Updated comments to support SDT flow for Doxygen documentation. *

#include "xparameters.h"
#include "xusbps.h"
#include "xusbps_ch9.h"
#include "xusbps_class_storage.h"
#include "xil_exception.h"
#include "xpseudo_asm.h"
#include "xreg_cortexa9.h"
#include "xil_cache.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "xinterrupt_wrap.h"

Functions

int main (void)
 Main function to call the USB interrupt example. More...
 

Function Documentation

int main ( void  )

Main function to call the USB interrupt example.

Parameters
None
Returns
  • XST_SUCCESS if successful
  • XST_FAILURE on error