This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1001388] Convenience macros for manipulating GPIO pins
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-patches at ecos dot sourceware dot org
- Date: Sat, 26 Nov 2011 10:57:22 +0000
- Subject: [Bug 1001388] Convenience macros for manipulating GPIO pins
- Auto-submitted: auto-generated
- References: <bug-1001388-104@http.bugs.ecos.sourceware.org/>
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.