This is the mail archive of the ecos-patches@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 1001388] Convenience macros for manipulating GPIO pins


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

--- Comment #3 from Ilija Kocho <ilijak@siva.com.mk> 2011-11-26 10:57:18 GMT ---
Tomas

There's not much gain by abbreviation /*_PT?_P/ vs /*_PORT?_P/.
IMO, in general and when possible, it would be convenient if names resemble the
ones used in Kinetis RM: such as CLEAR (vs UNSET).

FYI, you can find some convenient general macros for bit manipulation and
masking in arch/current/include/hal/io /BIT_(), MASK_(), VALUE_()/

Having these macros, the set would be (more) complete with addition of macros
for configuring of port bits /pddr/.

For future (to do) we may consider complementary inline functions with pointer
to a port as first argument.

Ilija

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


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