|
ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
|
Test application for the MB85RC1MT FRAM driver on TockOS. More...
Go to the source code of this file.
Functions | |
| void | test_fram_size (void) |
| void | test_write_valid_data (void) |
| void | test_write_out_of_range (void) |
| void | test_write_zero_length (void) |
| void | test_read_valid_data (void) |
| void | test_read_out_of_range (void) |
| void | test_read_zero_length (void) |
| void | test_read_status (void) |
| void | test_write_read_multiple_addresses (void) |
| void | setUp (void) |
| void | tearDown (void) |
| int | main (void) |
Test application for the MB85RC1MT FRAM driver on TockOS.
Exercises basic FRAM read/write operations and boundary checks using the Unity testing framework.
Based on stm32/test/test_fram/test_fram.c from ENTS-node-firmware.
Copyright (c) 2026 jLab, UCSC
Definition in file main.c.
| int main | ( | void | ) |
Definition at line 133 of file main.c.
References test_fram_size(), test_read_out_of_range(), test_read_status(), test_read_valid_data(), test_read_zero_length(), test_write_out_of_range(), test_write_read_multiple_addresses(), test_write_valid_data(), and test_write_zero_length().
| void test_fram_size | ( | void | ) |
| void test_read_out_of_range | ( | void | ) |
Definition at line 83 of file main.c.
References data, FRAM_OUT_OF_RANGE, fram_read(), and fram_size().
Referenced by main().
| void test_read_status | ( | void | ) |
| void test_read_valid_data | ( | void | ) |
Definition at line 69 of file main.c.
References FRAM_OK, fram_read(), and fram_write().
Referenced by main().
| void test_read_zero_length | ( | void | ) |
| void test_write_out_of_range | ( | void | ) |
Definition at line 56 of file main.c.
References data, FRAM_OUT_OF_RANGE, fram_size(), and fram_write().
Referenced by main().
| void test_write_read_multiple_addresses | ( | void | ) |
Definition at line 102 of file main.c.
References FRAM_OK, fram_read(), and fram_write().
Referenced by main().
| void test_write_valid_data | ( | void | ) |