URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/eco32/trunk/tools
- from Rev 39 to Rev 40
- ↔ Reverse comparison
Rev 39 → Rev 40
/Makefile
4,7 → 4,7
|
BUILD = ../build |
|
DIRS = bin2exo bit2exo |
DIRS = bin2exo bin2mcs bit2exo |
|
.PHONY: all install clean |
|
/bin2mcs/intelhex.pdf
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
bin2mcs/intelhex.pdf
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: bin2mcs/Makefile
===================================================================
--- bin2mcs/Makefile (nonexistent)
+++ bin2mcs/Makefile (revision 40)
@@ -0,0 +1,19 @@
+#
+# Makefile for binary to Intel hex converter
+#
+
+BUILD = ../../build
+
+.PHONY: all install clean
+
+all: bin2mcs
+
+install: bin2mcs
+ mkdir -p $(BUILD)/bin
+ cp bin2mcs $(BUILD)/bin
+
+bin2mcs: bin2mcs.c
+ gcc -m32 -g -Wall -o bin2mcs bin2mcs.c
+
+clean:
+ rm -f *~ bin2mcs
Index: bin2mcs/bin2mcs.c
===================================================================
--- bin2mcs/bin2mcs.c (nonexistent)
+++ bin2mcs/bin2mcs.c (revision 40)
@@ -0,0 +1,87 @@
+/*
+ * bin2mcs.c -- convert binary data to Intel hex records
+ */
+
+
+#include
+#include
+#include
+#include
+
+
+void error(char *fmt, ...) {
+ va_list ap;
+
+ va_start(ap, fmt);
+ printf("Error: ");
+ vprintf(fmt, ap);
+ printf("\n");
+ va_end(ap);
+ exit(1);
+}
+
+
+int main(int argc, char *argv[]) {
+ char *endptr;
+ unsigned int loadAddr;
+ FILE *infile;
+ FILE *outfile;
+ int numBytes, i;
+ int c;
+ unsigned char lineData[16];
+ unsigned int chksum;
+
+ if (argc != 4) {
+ printf("Usage: %s