aboutsummaryrefslogtreecommitdiff
path: root/docs/j1demo/firmware/genoffsets.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/j1demo/firmware/genoffsets.py')
-rw-r--r--docs/j1demo/firmware/genoffsets.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/j1demo/firmware/genoffsets.py b/docs/j1demo/firmware/genoffsets.py
new file mode 100644
index 0000000..2ed279e
--- /dev/null
+++ b/docs/j1demo/firmware/genoffsets.py
@@ -0,0 +1,11 @@
+from defines_tcpip import offsets
+
+d = open("defines_tcpip.fs", "w")
+for nm,o in sorted(offsets.items()):
+ print >>d, "%d constant %s" % (o, nm)
+
+import defines_tcpip2
+
+d = open("defines_tcpip2.fs", "w")
+for nm,o in sorted(defines_tcpip2.offsets.items()):
+ print >>d, "%d constant %s" % (o, nm)