Nios® V Processor Software Developer Handbook

ID 743810
Date 10/06/2025
Public
Document Table of Contents

18.1.5.2. alt_ecc_exception_register()

Prototype

void alt_ecc_exception_register (alt_u32 handler)

Commonly Called By

C/C++ programs

Device drivers

Thread-safe

No.

Available from ISR

Yes.

Include

<sys/alt_ecc_exceptions.h>

Description

The HAL API function alt_ecc_exception_register() registers an ECC exception handler. The handler argument is a pointer to the ECC exception handler.

You can only use this API function if you have enabled the Enable Single Bit Correction in the Processor IP Parameter Editor.

A call to alt_ecc_exception_register() replaces the previously registered exception handler, if any. If handler is set to null, the ECC exception handler is removed.

Return

This function returns nothing.