Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
9ff1a38a
Commit
9ff1a38a
authored
Mar 29, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to anonymous union members
parent
c4117740
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
204 additions
and
204 deletions
+204
-204
x393.c
py393/generated/x393.c
+16
-16
x393.h
py393/generated/x393.h
+2
-2
x393_defs.h
py393/generated/x393_defs.h
+1
-1
x393_map.h
py393/generated/x393_map.h
+1
-1
x393_types.h
py393/generated/x393_types.h
+182
-182
x393_export_c.py
py393/x393_export_c.py
+2
-2
No files found.
py393/generated/x393.c
View file @
9ff1a38a
/*******************************************************************************
/*******************************************************************************
* File: x393.c
* File: x393.c
* Date: 2016-03-2
8
* Date: 2016-03-2
9
* Author: auto-generated file, see x393_export_c.py
* Author: auto-generated file, see x393_export_c.py
* Description: Functions definitions to access x393 hardware registers
* Description: Functions definitions to access x393 hardware registers
*******************************************************************************/
*******************************************************************************/
...
...
py393/generated/x393.h
View file @
9ff1a38a
/*******************************************************************************
/*******************************************************************************
* File: x393.h
* File: x393.h
* Date: 2016-03-2
8
* Date: 2016-03-2
9
* Author: auto-generated file, see x393_export_c.py
* Author: auto-generated file, see x393_export_c.py
* Description: Constants definitions and functions declarations to access x393 hardware registers
* 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"
//#include "elphel/x393_defs.h // alternative variant"
...
...
py393/generated/x393_defs.h
View file @
9ff1a38a
/*******************************************************************************
/*******************************************************************************
* File: x393_defs.h
* File: x393_defs.h
* Date: 2016-03-2
8
* Date: 2016-03-2
9
* Author: auto-generated file, see x393_export_c.py
* Author: auto-generated file, see x393_export_c.py
* Description: Constants and hardware addresses definitions to access x393 hardware registers
* Description: Constants and hardware addresses definitions to access x393 hardware registers
*******************************************************************************/
*******************************************************************************/
...
...
py393/generated/x393_map.h
View file @
9ff1a38a
/*******************************************************************************
/*******************************************************************************
* File: x393_map.h
* File: x393_map.h
* Date: 2016-03-2
8
* Date: 2016-03-2
9
* Author: auto-generated file, see x393_export_c.py
* Author: auto-generated file, see x393_export_c.py
* Description: Sorted hardware addresses map
* Description: Sorted hardware addresses map
*******************************************************************************/
*******************************************************************************/
...
...
py393/generated/x393_types.h
View file @
9ff1a38a
This diff is collapsed.
Click to expand it.
py393/x393_export_c.py
View file @
9ff1a38a
...
@@ -60,7 +60,7 @@ class X393ExportC(object):
...
@@ -60,7 +60,7 @@ class X393ExportC(object):
'macroNameLen'
:
48
,
'macroNameLen'
:
48
,
'showType'
:
True
,
'showType'
:
True
,
'showRange'
:
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)
'data32'
:
'd32'
,
#union branch that is always u32 ("" to disable)
# 'declare':(26,48,0, 80), #function name, arguments, (body), comments
# 'declare':(26,48,0, 80), #function name, arguments, (body), comments
# 'define': (26,48,72,106), #function name, arguments, body, comments
# 'define': (26,48,72,106), #function name, arguments, body, comments
...
@@ -124,7 +124,7 @@ class X393ExportC(object):
...
@@ -124,7 +124,7 @@ class X393ExportC(object):
ld
=
self
.
define_macros
()
ld
=
self
.
define_macros
()
ld
+=
self
.
define_other_macros
()
ld
+=
self
.
define_other_macros
()
# Includes section
# 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
'
txt
+=
'//#include "elphel/x393_defs.h // alternative variant"
\n\n
'
for
d
in
ld
:
for
d
in
ld
:
fd
=
self
.
expand_define_maxi0
(
d
,
mode
=
"func_decl"
,
frmt_spcs
=
None
)
fd
=
self
.
expand_define_maxi0
(
d
,
mode
=
"func_decl"
,
frmt_spcs
=
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment