Xil_GetMPUFreeRegMask - 2020.2 English

OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2020-11-24
Version
2020.2 English

Returns the total number of free MPU regions available in the form of a mask.

A bit of 1 in the returned 16 bit value represents the corresponding region number to be available. For example, if this function returns 0xC0000, this would mean, the regions 14 and 15 are available to users.

Prototype

u16 Xil_GetMPUFreeRegMask(void);

Parameters

The following table lists the Xil_GetMPUFreeRegMask function arguments.

Table 1. Xil_GetMPUFreeRegMask Arguments
Name Description
none

Returns

The free region mask as a 16 bit value