XPm_AbortSuspend - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

This function is called by a CPU after a XPm_SelfSuspend call to notify the power management controller that CPU has aborted suspend or in response to an init suspend request when the PU refuses to suspend.

Note: Calling PU expects the PMU to abort the initiated suspend procedure. This is a non-blocking call without any acknowledge.

Prototype

XStatus XPm_AbortSuspend(const enum XPmAbortReason reason);

Parameters

The following table lists the XPm_AbortSuspend function arguments.

Table 1. XPm_AbortSuspend Arguments
Type Name Description
const enum XPmAbortReason reason Reason code why the suspend can not be performed or completed
  • ABORT_REASON_WKUP_EVENT : local wakeup-event received
  • ABORT_REASON_PU_BUSY : PU is busy
  • ABORT_REASON_NO_PWRDN : no external powerdown supported
  • ABORT_REASON_UNKNOWN : unknown error during suspend procedure

Returns

XST_SUCCESS if successful else XST_FAILURE or an error code or a reason code