|
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 | setUp (void) |
| void | tearDown (void) |
| void | test_fifo_put_ValidData (void) |
| void | test_fifo_put_Sequential (void) |
| void | test_fifo_put_Sequential_BufferFull (void) |
| void | test_fifo_BufferEmpty (void) |
| void | test_fifo_ValidData (void) |
| void | test_fifo_Sequential (void) |
| void | test_fifo_Sequential_BufferFull (void) |
| void | test_fifo_buffer_len (void) |
| void | test_fifo_buffer_clear (void) |
| void | test_fifo_wraparound (void) |
| void | test_fifo_load_buffer_state (void) |
| void | test_fifo_peek (void) |
| void | test_fifo_drop (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 368 of file main.c.
References test_fifo_buffer_clear(), test_fifo_buffer_len(), test_fifo_BufferEmpty(), test_fifo_drop(), test_fifo_load_buffer_state(), test_fifo_peek(), test_fifo_put_Sequential(), test_fifo_put_Sequential_BufferFull(), test_fifo_put_ValidData(), test_fifo_Sequential(), test_fifo_Sequential_BufferFull(), test_fifo_ValidData(), and test_fifo_wraparound().
| void setUp | ( | void | ) |
Definition at line 24 of file main.c.
References fifo_buffer_clear().
| void test_fifo_buffer_clear | ( | void | ) |
Definition at line 189 of file main.c.
References data, fifo_buffer_clear(), fifo_buffer_len(), fifo_put(), and FRAM_OK.
Referenced by main().
| void test_fifo_buffer_len | ( | void | ) |
Definition at line 177 of file main.c.
References data, fifo_buffer_len(), and fifo_put().
Referenced by main().
| void test_fifo_BufferEmpty | ( | void | ) |
Definition at line 71 of file main.c.
References data, data_len, fifo_get(), and FRAM_BUFFER_EMPTY.
Referenced by main().
| void test_fifo_drop | ( | void | ) |
Definition at line 333 of file main.c.
References fifo_buffer_clear(), fifo_buffer_len(), fifo_drop(), fifo_get(), fifo_put(), FRAM_BUFFER_EMPTY, FRAM_OK, and i.
Referenced by main().
| void test_fifo_load_buffer_state | ( | void | ) |
Definition at line 281 of file main.c.
References fifo_buffer_clear(), fifo_get(), fifo_load_buffer_state(), fifo_put(), FRAM_OK, and i.
Referenced by main().
| void test_fifo_peek | ( | void | ) |
Definition at line 308 of file main.c.
References fifo_buffer_clear(), fifo_buffer_len(), fifo_peek(), fifo_put(), FRAM_OK, and i.
Referenced by main().
| void test_fifo_put_Sequential | ( | void | ) |
| void test_fifo_put_Sequential_BufferFull | ( | void | ) |
Definition at line 55 of file main.c.
References data, fifo_put(), fifo_size(), FRAM_BUFFER_FULL, FRAM_OK, and i.
Referenced by main().
| void test_fifo_put_ValidData | ( | void | ) |
Definition at line 28 of file main.c.
References data, fifo_buffer_len(), fifo_put(), and FRAM_OK.
Referenced by main().
| void test_fifo_Sequential | ( | void | ) |
Definition at line 93 of file main.c.
References fifo_get(), fifo_put(), FRAM_OK, and i.
Referenced by main().
| void test_fifo_Sequential_BufferFull | ( | void | ) |
Definition at line 133 of file main.c.
References data, fifo_get(), fifo_put(), fifo_size(), FRAM_BUFFER_FULL, FRAM_OK, and i.
Referenced by main().
| void test_fifo_ValidData | ( | void | ) |
Definition at line 80 of file main.c.
References fifo_get(), fifo_put(), and FRAM_OK.
Referenced by main().
| void test_fifo_wraparound | ( | void | ) |
Definition at line 204 of file main.c.
References buffer, fifo_buffer_len(), fifo_get(), fifo_put(), fifo_size(), FRAM_BUFFER_END, FRAM_BUFFER_FULL, FRAM_OK, fram_read(), fram_write(), and i.
Referenced by main().