Commit 9ff1a38a authored by Andrey Filippov's avatar Andrey Filippov

Changed to anonymous union members

parent c4117740
/*******************************************************************************
* File: x393.c
* Date: 2016-03-28
* Date: 2016-03-29
* Author: auto-generated file, see x393_export_c.py
* Description: Functions definitions to access x393 hardware registers
*******************************************************************************/
......
/*******************************************************************************
* File: x393.h
* Date: 2016-03-28
* Date: 2016-03-29
* Author: auto-generated file, see x393_export_c.py
* Description: Constants definitions and functions declarations to access x393 hardware registers
*******************************************************************************/
#include "elphel/types.h"
#include "elphel/x393_types.h"
//#include "elphel/x393_defs.h // alternative variant"
......
/*******************************************************************************
* File: x393_defs.h
* Date: 2016-03-28
* Date: 2016-03-29
* Author: auto-generated file, see x393_export_c.py
* Description: Constants and hardware addresses definitions to access x393 hardware registers
*******************************************************************************/
......
/*******************************************************************************
* File: x393_map.h
* Date: 2016-03-28
* Date: 2016-03-29
* Author: auto-generated file, see x393_export_c.py
* Description: Sorted hardware addresses map
*******************************************************************************/
......
This diff is collapsed.
......@@ -60,7 +60,7 @@ class X393ExportC(object):
'macroNameLen': 48,
'showType': True,
'showRange': True,
'nameMembers': True, #name each struct in a union
'nameMembers': False, # True, #name each struct in a union
'data32': 'd32', #union branch that is always u32 ("" to disable)
# 'declare':(26,48,0, 80), #function name, arguments, (body), comments
# 'define': (26,48,72,106), #function name, arguments, body, comments
......@@ -124,7 +124,7 @@ class X393ExportC(object):
ld= self.define_macros()
ld+=self.define_other_macros()
# Includes section
txt = '\n#include "elphel/types.h"\n'
txt = '\n#include "elphel/x393_types.h"\n'
txt +='//#include "elphel/x393_defs.h // alternative variant"\n\n'
for d in ld:
fd=self.expand_define_maxi0(d, mode = "func_decl",frmt_spcs = None)
......
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