aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/tools/eeprom-dump.c
blob: 875523c20dbfe16600e7ecffcb1261c939140ce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//
// Copyright 2017 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0-or-later
//

#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;
}