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

Fixed bit-field endian in header file generator.

parent d1748212
......@@ -214,9 +214,9 @@ class HeaderGenerator(LanBaseGenerator):
index = index + item.bitWidth
# 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):
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