aboutsummaryrefslogtreecommitdiff
path: root/docs/j1demo/firmware/genoffsets.py
blob: 2ed279ef8037549dc3bd6d93084bfc3867fcbc55 (plain)
1
2
3
4
5
6
7
8
9
10
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)