Core
Loading...
Searching...
No Matches
timestamp.h File Reference

Core timestamp library. More...

#include <stdint.h>

Go to the source code of this file.

Functions

void core_timestamp_init ()
 Initialize the timestamp timers.
 
void core_timestamp_read_separate (uint16_t *lsb, uint32_t *msb)
 Read the LSB and the MSB into two separate variables.
 
uint64_t core_timestamp_get_tick ()
 Read the LSB and MSB and return the full timestamp as a 64 bit integer.
 

Detailed Description

Core timestamp library.

This core library component is used to initialize the hardware timestamp counters. The timestamp counter consists of a 16 bit counter (TIM3) which increments every microsecond, and a 32 bit counter which increments whenever the lower 16 bits overflow.