summaryrefslogtreecommitdiffstats
path: root/firmware/microblaze/lib/ihex.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/microblaze/lib/ihex.h')
-rw-r--r--firmware/microblaze/lib/ihex.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/microblaze/lib/ihex.h b/firmware/microblaze/lib/ihex.h
new file mode 100644
index 000000000..9f471fbe2
--- /dev/null
+++ b/firmware/microblaze/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);