From 891ba007a455590ac544bbebd270ebe8d3417f2c Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Thu, 31 Dec 2015 13:43:51 +0000 Subject: Add eeprom dump test --- test/.gitignore | 2 ++ test/dump_eeprom.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 test/dump_eeprom.c (limited to 'test') diff --git a/test/.gitignore b/test/.gitignore index 7bd96c4..a37bb52 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -8,3 +8,5 @@ ui_gl_filter sdr_fm div20 *.o +dump0 +dump_eeprom diff --git a/test/dump_eeprom.c b/test/dump_eeprom.c new file mode 100644 index 0000000..b32e74e --- /dev/null +++ b/test/dump_eeprom.c @@ -0,0 +1,74 @@ +#include +#include +#include + +//rtlsdr +#include +#include +#include +#include + +int print_dump( uint8_t *data, uint16_t size ) +{ + int i; + const int line_sz = 32; + for (i=0; i