aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/lib/ihex.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/zpu/lib/ihex.h')
-rw-r--r--firmware/zpu/lib/ihex.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/zpu/lib/ihex.h b/firmware/zpu/lib/ihex.h
new file mode 100644
index 000000000..9f471fbe2
--- /dev/null
+++ b/firmware/zpu/lib/ihex.h
@@ -0,0 +1,18 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2010 Ettus Research LLC
+ *
+ */
+
+#include <stdint.h>
+#include <stddef.h>
+
+typedef struct {
+ uint8_t type;
+ size_t length;
+ uint32_t addr;
+ uint8_t *data;
+} ihex_record_t;
+
+
+int ihex_parse(char input[], ihex_record_t *record);