Skip to content

Commit

Permalink
Fix struct reserved bitwidth spacing in c_template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Tridgell authored and esynr3z committed Mar 24, 2022
1 parent aa00c3e commit 287d32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corsair/templates/c_header.j2
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ typedef struct {
{% for bf in reg %}
{% if tmp.lsb != bf.lsb %}
{{ data_t() }} :{{ bf.lsb }}; // reserved
{% set tmp.lsb = bf.lsb %}
{% endif %}
{% set tmp.lsb = bf.lsb + bf.width %}
{{ data_t() }} {{ bf.name.upper() }} : {{ bf.width }}; // {{ bf.description }}
{% endfor %}
} {{ module_prefix()|lower }}{{ reg.name.lower() }}_t;
Expand Down Expand Up @@ -109,4 +109,4 @@ typedef struct {
}
#endif

#endif /* __{{ file_name.upper() }}_H */
#endif /* __{{ file_name.upper() }}_H */

0 comments on commit 287d32a

Please sign in to comment.