STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
board_time.h File Reference
#include <stdbool.h>
#include <stdint.h>
Include dependency graph for board_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  board_pps_t

Functions

bool board_time_start (void)
uint32_t board_time_us (void)
board_pps_t board_time_last_pps (void)

Function Documentation

◆ board_time_last_pps()

board_pps_t board_time_last_pps ( void )

Definition at line 38 of file board_time.c.

References board_pps_t::count, count(), board_pps_t::edge_us, pps_count, and pps_edge_us.

Referenced by gnss_task().

◆ board_time_start()

bool board_time_start ( void )

Definition at line 27 of file board_time.c.

References HAL_OK, HAL_TIM_IC_Start_IT(), htim2, tim2_kernel_hz(), and TIM_CHANNEL_4.

Referenced by board_bringup_power_up().

◆ board_time_us()

uint32_t board_time_us ( void )

Definition at line 34 of file board_time.c.

References htim2.

Referenced by gnss_task(), HAL_GPIO_EXTI_Callback(), measure_lsi(), and sensors_task().