Hardware Libraries  20.1
Stratix 10 SoC Hardware Manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Reset Status

Description

This functional group provides information on various aspects of SoC reset status and timeout events.

Typedefs

typedef enum ALT_RESET_EVENT_e ALT_RESET_EVENT_t
 

ENUMS

enum  ALT_RESET_EVENT_e {
  ALT_RESET_EVENT_CSDAPRST = 0x1, ALT_RESET_EVENT_DEBUGRST = 0x2, ALT_RESET_EVENT_L4W3DRST = 0x4, ALT_RESET_EVENT_L4WD2RST = 0x8,
  ALT_RESET_EVENT_L4WD1RST = 0x10, ALT_RESET_EVENT_L4WD0RST = 0x20, ALT_RESET_EVENT_MPU3RST = 0x40, ALT_RESET_EVENT_MPU2RST = 0x80,
  ALT_RESET_EVENT_MPU1RST = 0x100, ALT_RESET_EVENT_MPU0RST = 0x200, ALT_RESET_EVENT_SDMLASTPORRST = 0x400, ALT_RESET_EVENT_SDMWARMRST = 0x800,
  ALT_RESET_EVENT_SDMCOLDRST = 0x1000, ALT_RESET_EVENT_CORE3IRQ = 0x2000, ALT_RESET_EVENT_CORE2IRQ = 0x4000, ALT_RESET_EVENT_CORE1IRQ = 0x8000,
  ALT_RESET_EVENT_CORE0IRQ = 0x10000, ALT_RESET_EVENT_CPUPOR3IRQ = 0x20000, ALT_RESET_EVENT_CPUPOR2IRQ = 0x40000, ALT_RESET_EVENT_CPUPOR1IRQ = 0x80000,
  ALT_RESET_EVENT_CPUPOR0IRQ = 0x100000
}
 

Functions

uint32_t alt_reset_event_get (void)
 
ALT_STATUS_CODE alt_reset_event_clear (uint32_t event_mask)
 

Typedef Documentation

This type definition enumerates the set of reset causes and timeout events. Note the values do not correspond to the actual bit locations.

Enumeration Type Documentation

This type definition enumerates the set of reset causes and timeout events. Note the values do not correspond to the actual bit locations.

Enumerator:
ALT_RESET_EVENT_CSDAPRST 

This bit indicates that CS DAP block has been reset. This bit is reset to its reset value on POR, not on warm or cold reset

ALT_RESET_EVENT_DEBUGRST 

indicates if the debug reset has been asserted. This bit is reset to its reset value on POR, not on warm or cold reset.

ALT_RESET_EVENT_L4W3DRST 

L4 Watchdog3 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_L4WD2RST 

L4 Watchdog2 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_L4WD1RST 

L4 Watchdog1 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_L4WD0RST 

L4 Watchdog0 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_MPU3RST 

MPU3 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_MPU2RST 

MPU2 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_MPU1RST 

MPU1 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_MPU0RST 

MPU0 triggered a hardware sequenced warm reset.

ALT_RESET_EVENT_SDMLASTPORRST 

SDM triggered last por reset. This bit is reset to its reset value on POR, not on warm or cold reset.

ALT_RESET_EVENT_SDMWARMRST 

SDM triggered warm reset.

ALT_RESET_EVENT_SDMCOLDRST 

SDM triggered cold reset. This bit is reset to its reset value on POR, not on warm or cold reset.

ALT_RESET_EVENT_CORE3IRQ 

This bit indicates SDM that MPU software has asserted reset to core3 by writing to "mpumodrst" register.

ALT_RESET_EVENT_CORE2IRQ 

This bit indicates SDM that MPU software has asserted reset to core2 by writing to "mpumodrst" register.

ALT_RESET_EVENT_CORE1IRQ 

This bit indicates SDM that MPU software has asserted reset to core1 by writing to "mpumodrst" register.

ALT_RESET_EVENT_CORE0IRQ 

This bit indicates SDM that MPU software has asserted reset to core0 by writing to "mpumodrst" register.

ALT_RESET_EVENT_CPUPOR3IRQ 

This bit indicates SDM that MPU software has asserted reset to CPU3 by writing to the 'cpupor3' bit of register "coldmodrst".

ALT_RESET_EVENT_CPUPOR2IRQ 

This bit indicates SDM that MPU software has asserted reset to CPU2 by writing to the 'cpupor2' bit of register "coldmodrst".

ALT_RESET_EVENT_CPUPOR1IRQ 

This bit indicates SDM that MPU software has asserted reset to CPU1 by writing to the 'cpupor1' bit of register "coldmodrst".

ALT_RESET_EVENT_CPUPOR0IRQ 

This bit indicates SDM that MPU software has asserted reset to CPU0 by writing to the 'cpupor0' bit of register "coldmodrst".

Function Documentation

uint32_t alt_reset_event_get ( void  )

Gets the reset and timeout events that caused the last reset.

The ALT_RESET_EVENT_t enumeration values should be used to selectively examine the returned reset cause(s).

Returns
A mask of the reset and/or timeout events that caused the last reset.
ALT_STATUS_CODE alt_reset_event_clear ( uint32_t  event_mask)

Clears the reset and timeout events that caused the last reset.

Parameters
event_maskA mask of the selected reset and timeout events to clear in the Reset Manager stat register. The mask selection must be formed using the ALT_RESET_EVENT_t enumeration values
Return values
ALT_E_SUCCESSThe operation was succesful.
ALT_E_ERRORThe operation failed.