[RTEMS Project] #4828: Macro defined but magic number used instead
RTEMS trac
trac at rtems.org
Tue Jan 31 17:50:55 UTC 2023
#4828: Macro defined but magic number used instead
---------------------------+----------------------------
Reporter: Daniel Páscoa | Owner: Needs Funding
Type: defect | Status: assigned
Priority: normal | Milestone: 7.1
Component: admin | Version: 6
Severity: normal | Resolution:
Keywords: qualification | Blocked By:
Blocking: |
---------------------------+----------------------------
Comment (by Sebastian Huber):
The files are generated, so changing the format would be easy. Is this the
desired format?
{{{#!c
#define AHBSTAT_AHBS_HMASTER_SHIFT 3
#define AHBSTAT_AHBS_HMASTER_MASK 0x78U
#define AHBSTAT_AHBS_HMASTER_GET( _reg ) \
( ( ( _reg ) & AHBSTAT_AHBS_HMASTER_MASK ) >>
AHBSTAT_AHBS_HMASTER_SHIFT )
#define AHBSTAT_AHBS_HMASTER( _val ) ( ( _val ) <<
AHBSTAT_AHBS_HMASTER_SHIFT )
}}}
It makes the lines longer and the files larger.
--
Ticket URL: <http://devel.rtems.org/ticket/4828#comment:2>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list