-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
51 lines (42 loc) · 1.36 KB
/
Copy pathmain.c
File metadata and controls
51 lines (42 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*---------------------------------------------------------------------------*/
// Sub-Etha Software's TLV Parser (test main)
// By Allen C. Huffman
// www.subethasoftware.com
//
// This is a simple TLV (Type-Length-Value) parser that can be used to read
// and write TLV data to and from buffers.
//
// FILE HISTORY:
//
// 2026-05-08 allenh - Added this header.
//
// TODO:
//
// TOFIX:
//
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
// Include Files
/*---------------------------------------------------------------------------*/
// Compiler headers.
#include <stdio.h>
// Other headers.
#include "eeprom/eeprom_sim.h"
#include "tests/ptr_table_tests.h"
#include "tests/struct_table_tests.h"
/*---------------------------------------------------------------------------*/
// Functions
/*---------------------------------------------------------------------------*/
int main (void)
{
printf ("TLV Parser test.\n");
run_ptr_table_tests ();
run_struct_table_tests ();
// Usage simulation:
// size_t eeprom_size = eeprom_get_size ();
// printf ("EEPROM size: %zu bytes\n", eeprom_size);
// eeprom_erase (0, eeprom_size);
// eeprom_dump (0, 32); // Dump the first 32 bytes of the EEPROM after erasing.
return 0;
}
// End of main.c