STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
test_sleep_math.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "sleep_math.h"
Include dependency graph for test_sleep_math.c:

Go to the source code of this file.

Macros

#define CHECK(c)

Functions

static void test_wut_reload (void)
static void test_rtc_steps_count_down_subseconds (void)
static void test_elapsed (void)
static void test_lsi_measurement (void)
int main (void)

Macro Definition Documentation

◆ CHECK

#define CHECK ( c)
Value:
do { \
if (!(c)) { \
fprintf(stderr, "%s:%d: %s\n", __FILE__, __LINE__, #c); \
exit(1); \
} \
} while (0)

Definition at line 9 of file test_sleep_math.c.

Referenced by test_elapsed(), test_lsi_measurement(), test_rtc_steps_count_down_subseconds(), and test_wut_reload().

Function Documentation

◆ main()

◆ test_elapsed()

void test_elapsed ( void )
static

Definition at line 36 of file test_sleep_math.c.

References a, b, CHECK, sleep_elapsed_ms(), and sleep_rtc_steps().

Referenced by main().

◆ test_lsi_measurement()

void test_lsi_measurement ( void )
static

Definition at line 52 of file test_sleep_math.c.

References CHECK, and sleep_lsi_hz().

Referenced by main().

◆ test_rtc_steps_count_down_subseconds()

void test_rtc_steps_count_down_subseconds ( void )
static

Definition at line 28 of file test_sleep_math.c.

References CHECK, and sleep_rtc_steps().

Referenced by main().

◆ test_wut_reload()

void test_wut_reload ( void )
static

Definition at line 17 of file test_sleep_math.c.

References CHECK, and sleep_wut_reload().

Referenced by main().