From: bugzilla-daemon@bugs.ecos.sourceware.org
To: ecos-patches@ecos.sourceware.org
Subject: [Bug 1001428] Hal bits for Kinetis K40 SLCD controller
Date: Wed, 21 Dec 2011 12:05:00 -0000 [thread overview]
Message-ID: <20111221120538.357DF2F78005@mail.ecoscentric.com> (raw)
In-Reply-To: <bug-1001428-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=1001428
--- Comment #2 from Tomas Frydrych <tf+bugs.ecos@r-finger.com> 2011-12-21 12:05:36 GMT ---
(In reply to comment #1)
Thanks Ilija,
> Regarding device drivers and HAL: In eCos terms, "HAL" refers to software
> associated with CPU and hardware close to it. Therefore devices are not
> considered part of HAL.
Sure, but I thought the patches I have submitted maintain that distinction. Are
you saying the on-chip SLCD controller should be treated as a device rather
than part of the MCU? (Which I can do, of course.)
> I am trying to make drivers as much as possible independent of Kinetis HAL and
> one aspect is name space. Namely, for device naming I have used FREESCALE stem
> rather than KINETIS, DEV or IO instead of HAL. Also instead of using
> /devs/<xxx>/cortexm I have used/crated /devs/<xxx>/freescale directories.
> I would invite you to keep this conventions with hope that in future someone
> may (wish to) use the drivers on Coldfire+ or PX.
I did that for the MMA7660 patch (bug 1001419), for exactly the reasons you
state; for the i2c driver I followed the conventions used by the driver I based
it on.
> Regarding register macros such as:
> #define CYG_HAL_KINETIS_LCD_GCR \
> ((cyghwr_hal_kinetis_lcd_t*)CYG_HAL_KINETIS_LCD_B)->gcr
>
> IMO such macros tend to produce sub-optimal code and I wouldn't accept them.
> Commonly, you need same pointer more than once within a function (to access
> same or different structure member(s)) and it is more effective to declare a
> pointer and (re)use it.
OK, I can remove these.
--
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.
next prev parent reply other threads:[~2011-12-21 12:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-21 9:38 [Bug 1001428] New: " bugzilla-daemon
2011-12-21 11:03 ` [Bug 1001428] " bugzilla-daemon
2011-12-21 12:05 ` bugzilla-daemon [this message]
2011-12-21 17:55 ` bugzilla-daemon
2011-12-21 18:33 ` bugzilla-daemon
2011-12-22 8:01 ` bugzilla-daemon
2011-12-22 10:03 ` bugzilla-daemon
2011-12-23 8:08 ` bugzilla-daemon
2011-12-23 8:31 ` bugzilla-daemon
2011-12-23 9:23 ` bugzilla-daemon
2011-12-23 10:19 ` bugzilla-daemon
2012-01-11 11:25 ` bugzilla-daemon
2012-01-11 11:28 ` bugzilla-daemon
2012-01-11 11:33 ` bugzilla-daemon
2012-01-11 11:43 ` bugzilla-daemon
2012-01-11 11:44 ` bugzilla-daemon
2012-01-11 11:45 ` bugzilla-daemon
2012-03-26 16:10 ` bugzilla-daemon
2012-03-26 16:22 ` bugzilla-daemon
2012-03-30 15:02 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111221120538.357DF2F78005@mail.ecoscentric.com \
--to=bugzilla-daemon@bugs.ecos.sourceware.org \
--cc=ecos-patches@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).