Nios® V Processor Software Developer Handbook

ID 743810
Date 10/12/2024
Public
Document Table of Contents

16.1.1.50. alt_timestamp_start()

Prototype

int alt_timestamp_start (void)

Commonly Called By

C/C++ programs

Thread-safe

See description.

Available from ISR

See description.

Include

<sys/alt_timestamp.h>

Description

The alt_timestamp_start() function starts the system timestamp counter.

For more information, refer to “Using Timer Devices” in the "Developing Programs Using the Hardware Abstraction Layer" chapter.

The implementation of this function is provided by the timestamp driver. Therefore, whether this function is thread-safe and or available at interrupt level depends on the underlying driver.

This function resets the counter to zero, and starts the counter running.

Return

The return value is zero on success and nonzero otherwise.