![]() |
mutex
Vitis Drivers API Documentation
|
The Xilinx Mutex driver. This driver supports the Xilinx Mutex Core. More detailed description of the driver operation can be found in the xmutex.c file.
Features
The Xilinx Mutex supports the following features:
This driver is intended to be RTOS and processor independent. Any needs for dynamic memory management, threads or thread mutual exclusion, virtual memory, or cache control must be satisfied by the layer above this driver. The effective address provided to the XMutex_CfgInitialize() function can be either the real, physical address or the remapped virtual address. The remapping of this address occurs above this driver, no remapping occurs within the driver itself.
Initialization & Configuration
The XMutex_Config structure is used by the driver to configure itself. This configuration structure is typically created by the tool-chain based on HW build properties.
To support multiple runtime loading and initialization strategies employed by various operating systems, the driver instance can be initialized in the following way:
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a va First release 1.00a ecm 06/01/07 Cleanup, new coding standard, check into XCS 1.00b ecm 06/01/07 fixed tcl error for number of mutex's, CR502416 2.00a hm 04/14/09 Fixed CR 466322, removed extra definitions Also fixed canonical definitions treating an interface as an device instance. 3.00a hbm 10/15/09 Migrated to HAL phase 1 to use xil_io, xil_types, and xil_assert. 3.01a sdm 05/06/10 New driver to support AXI version of the core and cleaned up for coding guidelines. 3.02a bss 01/31/13 Updated driver tcl to fix CR #679127 4.0 adk 19/12/13 Updated as per the New Tcl API's 4.00a bss 03/05/14 Modified XMutex_CfgInitialize to fix CR# 770096 4.1 sk 11/10/15 Used UINTPTR instead of u32 for Baseaddress CR# 867425. Changed the prototype of XMutex_CfgInitialize API. 4.2 mi 09/22/16 Fixed compilation warnings. ms 01/23/17 Modified xil_printf statement in main function for all examples to ensure that "Successfully ran" and "Failed" strings are available in all examples. This is a fix for CR-965028. ms 03/17/17 Added readme.txt file in examples folder for doxygen generation. 4.3 ms 04/18/17 Modified tcl file to add suffix U for all macros definitions of mutex in xparameters.h ms 08/07/17 Fixed compilation warnings in xmutex_sinit.c 4.4 adk 19/09/19 Updated tcl to generate proper canonical definitions when mutex is configured for more then one axi interface. 4.6 sd 02/09/20 Updated makefile for parallel execution. 4.7 ht 06/21/23 Added support for system device-tree flow.