This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001442] New: LPC17XX bit band macro proposal


Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001442

           Summary: LPC17XX bit band macro proposal
           Product: eCos
           Version: CVS
          Platform: Other (please specify)
        OS/Version: Cortex-M
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: low
         Component: HAL
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: bernard.fouche@kuantic.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


If ever bit band macros can make it into eCos, here is a proposal.

Beside the gain in speed, IMHO the real advantage is to avoid race conditions
that can occur in a memory/register area that concerns more than one
peripheral.

For instance:

- peripheral power control register.
- ADC channel selection register (see for instance bug #1001437)

For GPIO bit band avoids having to select FIOSET or FIOCLR according to the bit
value to write.

(Maybe the proposed macro names are ugly, not located in the correct file,
etc...)

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]