summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/app')
-rw-r--r--src/app/deflatetest/Makefile.inc2
-rw-r--r--src/app/deflatetest/main.cc11
2 files changed, 4 insertions, 9 deletions
diff --git a/src/app/deflatetest/Makefile.inc b/src/app/deflatetest/Makefile.inc
index 84a6aff..c70a04d 100644
--- a/src/app/deflatetest/Makefile.inc
+++ b/src/app/deflatetest/Makefile.inc
@@ -10,4 +10,4 @@ ifdef app
override arch_drivers += ,counter
endif
-CXX_TARGETS += src/lib/udeflate.cc
+CXX_TARGETS += src/lib/deflate.cc
diff --git a/src/app/deflatetest/main.cc b/src/app/deflatetest/main.cc
index 516a6a0..1fb394d 100644
--- a/src/app/deflatetest/main.cc
+++ b/src/app/deflatetest/main.cc
@@ -9,13 +9,8 @@
#include "driver/uptime.h"
#include "driver/counter.h"
-#include "lib/udeflate.h"
+#include "lib/deflate.h"
-#define UDEFLATE_ERR_LENGTH (-1)
-#define UDEFLATE_ERR_METHOD (-2)
-#define UDEFLATE_ERR_FDICT (-3)
-#define UDEFLATE_ERR_BLOCK (-4)
-#define UDEFLATE_ERR_CHECKSUM (-5)
/*
// bad apple 0042.png
@@ -56,9 +51,9 @@ int main(void)
for (uint8_t i = 0; i < 5; i++) {
counter.start();
- int8_t ret = udeflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output));
+ int8_t ret = deflate_zlib((unsigned char*)deflate_input, sizeof(deflate_input), deflate_output, sizeof(deflate_output));
counter.stop();
- kout << "udeflate returned " << ret << endl;
+ kout << "deflate returned " << ret << endl;
kout << "Output: " << (char*)deflate_output << endl;
kout << "took " << counter.value << "/" << counter.overflow << " cycles" << endl;
}