Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mock-turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
mock-turtle
Commits
a273d678
Commit
a273d678
authored
Jul 25, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:head: safer macros add parenthesis
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
b1983fce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mockturtle_addresses.h
software/include/hw/mockturtle_addresses.h
+3
-3
No files found.
software/include/hw/mockturtle_addresses.h
View file @
a273d678
...
...
@@ -37,17 +37,17 @@
/**
* It gives a nice pointer to the given register in the dedicated peripheral
*/
#define TRTL_ADDR_DP(_offset) ((void *)(TRTL_ADDR_DP_BASE +
_offset
))
#define TRTL_ADDR_DP(_offset) ((void *)(TRTL_ADDR_DP_BASE +
(_offset)
))
/**
* It gives a nice pointer to the given register in the local register area
*/
#define TRTL_ADDR_LR(_offset) ((void *)(TRTL_ADDR_LR_BASE +
_offset
))
#define TRTL_ADDR_LR(_offset) ((void *)(TRTL_ADDR_LR_BASE +
(_offset)
))
/**
*
*/
#define TRTL_ADDR_SI(_offset) ((void *)(TRTL_ADDR_SI_BASE +
_offset
))
#define TRTL_ADDR_SI(_offset) ((void *)(TRTL_ADDR_SI_BASE +
(_offset)
))
#endif
/* __TRTL_FIRMWARE__ */
...
...
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