diff options
Diffstat (limited to 'mpm/tools/eeprom-dump.c')
-rw-r--r-- | mpm/tools/eeprom-dump.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mpm/tools/eeprom-dump.c b/mpm/tools/eeprom-dump.c new file mode 100644 index 000000000..08c2c4208 --- /dev/null +++ b/mpm/tools/eeprom-dump.c @@ -0,0 +1,21 @@ +// +// Copyright 2017 Ettus Research, a National Instruments Company +// +// SPDX-License-Identifier: GPL-3.0 +// + +#include "eeprom.h" +#include <stdlib.h> + +int main(int argc, char *argv[]) +{ + struct usrp_sulfur_eeprom *ep; + + ep = usrp_sulfur_eeprom_from_file(NVMEM_PATH_MB); + if (!ep) + return EXIT_FAILURE; + usrp_sulfur_eeprom_print(ep); + free(ep); + + return 0; +} |