Commit f0a2d8d4 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Fixed bit-field endian in header file generator.

parent d1748212
......@@ -214,9 +214,9 @@ class HeaderGenerator(LanBaseGenerator):
index = index + item.bitWidth
tmp.remove(tmp[-1])
# Write the bitfield values
# Write bitfield values
if (len(tmp) > 1):
self.__wr_line("#ifdef __BIG_ENDIAN_BITFIELD\n")
self.__wr_line("#ifdef __LITTLE_ENDIAN_BITFIELD\n")
for decl in sorted(tmp , key=lambda a: a.bitIndex):
self.write_decl(decl)
if (len(tmp) > 1):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment