Commit a273d678 authored by Federico Vaga's avatar Federico Vaga

sw:head: safer macros add parenthesis

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent b1983fce
...@@ -37,17 +37,17 @@ ...@@ -37,17 +37,17 @@
/** /**
* It gives a nice pointer to the given register in the dedicated peripheral * 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 * 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__ */ #endif /* __TRTL_FIRMWARE__ */
......
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