|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Test the RTC peripherial is functional. More...
#include <libents/util/time.h>#include <libtock-sync/peripherals/rtc.h>#include <libtock-sync/services/alarm.h>#include <stdio.h>#include <string.h>#include <unity.h>Go to the source code of this file.
Functions | |
| void | setUp (void) |
| Run at the start of every test. | |
| void | tearDown (void) |
| Run at the end of every test. | |
| void | test_rtc_exists (void) |
| void | test_set_date (void) |
| void | test_get_date (void) |
| void | test_get_date_delay (void) |
| void | test_time_epoch (void) |
| void | test_rtc_date_to_epoch (void) |
| void | test_epoch_to_rtc_date (void) |
| int | main (void) |
Test the RTC peripherial is functional.
Checks the following:
Copyright (c) 2026 jLab, UCSC
Definition in file main.c.
| int main | ( | void | ) |
Definition at line 138 of file main.c.
References test_epoch_to_rtc_date(), test_get_date(), test_get_date_delay(), test_rtc_date_to_epoch(), test_rtc_exists(), test_set_date(), and test_time_epoch().
| void test_epoch_to_rtc_date | ( | void | ) |
Definition at line 122 of file main.c.
References epoch(), and epoch_to_rtc_date().
Referenced by main().
| void test_rtc_date_to_epoch | ( | void | ) |
Definition at line 107 of file main.c.
References epoch(), and rtc_date_to_epoch().
Referenced by main().
| void test_time_epoch | ( | void | ) |