RTEMS  5.1
Functions

Functions

ALT_STATUS_CODE alt_clk_irq_disable (ALT_CLK_PLL_LOCK_STATUS_t lock_stat_mask)
 
ALT_STATUS_CODE alt_clk_irq_enable (ALT_CLK_PLL_LOCK_STATUS_t lock_stat_mask)
 

Detailed Description

The functions in this group provide management of interrupts originating from the Clock Manager.

The following interrupt request (IRQ) signals are sourced from the Clock Manager:

NOTE: mpuwakeup_IRQ appears to be an Altera private interrupt and may not be part of the public API although clearly it has important utility in implementing safe changes to PLL settings and transitions into and out of bypass mode.

Function Documentation

◆ alt_clk_irq_disable()

ALT_STATUS_CODE alt_clk_irq_disable ( ALT_CLK_PLL_LOCK_STATUS_t  lock_stat_mask)

Disable the clkmgr_IRQ interrupt signal source lock status condition(s).

This function disables one or more of the lock status conditions as contributors to the clkmgr_IRQ interrupt signal state.

NOTE: A set bit for a PLL lock status condition in the mask value does not have the effect of enabling it as a contributor to the clkmgr_IRQ interrupt signal state. The function alt_clk_irq_enable is used to enable PLL lock status source condition(s).

Parameters
lock_stat_maskSpecifies the PLL lock status conditions to disable as interrupt source contributors. lock_stat_mask is a mask of logically OR'ed ALT_CLK_PLL_LOCK_STATUS_t values that designate the PLL lock conditions to disable.
Return values
ALT_E_SUCCESSSuccessful status.
ALT_E_BAD_ARGThe lock_stat_mask argument contains an unknown condition value.

◆ alt_clk_irq_enable()

ALT_STATUS_CODE alt_clk_irq_enable ( ALT_CLK_PLL_LOCK_STATUS_t  lock_stat_mask)

Enable the clkmgr_IRQ interrupt signal source lock status condition(s).

This function enables one or more of the lock status conditions as contributors to the clkmgr_IRQ interrupt signal state.

NOTE: A cleared bit for any PLL lock status condition in the mask value does not have the effect of disabling it as a contributor to the clkmgr_IRQ interrupt signal state. The function alt_clk_irq_disable is used to disable PLL lock status source condition(s).

Parameters
lock_stat_maskSpecifies the PLL lock status conditions to enable as interrupt source contributors. lock_stat_mask is a mask of logically OR'ed ALT_CLK_PLL_LOCK_STATUS_t values that designate the PLL lock conditions to enable.
Return values
ALT_E_SUCCESSSuccessful status.
ALT_E_BAD_ARGThe lock_stat_mask argument contains an unknown condition value.