public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Steven Clugston <steven.clugston@newcastle.ac.uk>
To: "ecos-devel@ecos.sourceware.org" <ecos-devel@ecos.sourceware.org>
Subject: RE: Generic GPIO framework
Date: Fri, 28 May 2010 22:06:00 -0000	[thread overview]
Message-ID: <4DCF6DBD3535F742BB167C528BBEE9805F4C5F49C9@EXSAN01.campus.ncl.ac.uk> (raw)
In-Reply-To: <4BFFD7CC.4020204@intefo.ch>

I for one would like to see this included so I hope the maintainers see fit to do so.

This could be used to create drivers that are more generic for add-on devices (bit-bang buses/LCD screens) that otherwise sometimes find their way into HAL because pin platform specific pin macro definitions are needed somewhere to actually act on the hardware. A common GPIO interface could allow a driver to be written for a device without knowing or caring exactly what the pin assignment will be and what HAL macros are needed to change the pin states. Obviously this would need to be defined somewhere board specific instead but at least then the driver code will work for more than one board.

Might slight concern is that checking or changing a pin state often might incur an extra stack push/pop overhead (over the HAL macros) if the get/set functions are not inlined.

Steven

  reply	other threads:[~2010-05-28 22:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-28 14:49 Simon Kallweit
2010-05-28 22:06 ` Steven Clugston [this message]
2010-05-29  9:17 ` Christophe Coutand
2010-05-31  7:41   ` Sergei Gavrikov

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=4DCF6DBD3535F742BB167C528BBEE9805F4C5F49C9@EXSAN01.campus.ncl.ac.uk \
    --to=steven.clugston@newcastle.ac.uk \
    --cc=ecos-devel@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).