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
51a31706
Commit
51a31706
authored
Mar 30, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another correction
parent
8731fd2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
x393.c
py393/generated/x393.c
+1
-1
x393_export_c.py
py393/x393_export_c.py
+1
-1
No files found.
py393/generated/x393.c
View file @
51a31706
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include <linux/io.h>
#include <linux/io.h>
#include "x393.h"
#include "x393.h"
static
void
__iomem
mmio_ptr
;
static
void
__iomem
*
mmio_ptr
;
// init_mmio_ptr() should be called once before using any of the other defined functions
// init_mmio_ptr() should be called once before using any of the other defined functions
...
...
py393/x393_export_c.py
View file @
51a31706
...
@@ -149,7 +149,7 @@ class X393ExportC(object):
...
@@ -149,7 +149,7 @@ class X393ExportC(object):
# Includes section
# Includes section
txt
=
'
\n
#include <linux/io.h>
\n
'
txt
=
'
\n
#include <linux/io.h>
\n
'
txt
+=
'#include "x393.h"
\n\n
'
txt
+=
'#include "x393.h"
\n\n
'
txt
+=
'static void __iomem mmio_ptr;
\n\n
'
txt
+=
'static void __iomem
*
mmio_ptr;
\n\n
'
txt
+=
'// init_mmio_ptr() should be called once before using any of the other defined functions
\n\n
'
txt
+=
'// init_mmio_ptr() should be called once before using any of the other defined functions
\n\n
'
txt
+=
'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x
%08
x, 0x
%08
x); if (!mmio_ptr) return -1; else return 0;}
\n
'
%
(
self
.
MAXI0_BASE
,
self
.
MAXI0_RANGE
)
txt
+=
'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x
%08
x, 0x
%08
x); if (!mmio_ptr) return -1; else return 0;}
\n
'
%
(
self
.
MAXI0_BASE
,
self
.
MAXI0_RANGE
)
...
...
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