9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Krystian Lewandowski <krystian.lew@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] "gpio device" for Plan 9
Date: Sat,  1 Mar 2014 00:30:36 +0100	[thread overview]
Message-ID: <B53A2E0A-6C92-46E7-B921-965AE80C2A3C@gmail.com> (raw)
In-Reply-To: <ec4694428ac84952b33bbec78e4679ce@ladd.quanstro.net>

Hello again,
recently i made some changes, to the original idea, i’m happy with.

https://github.com/elewarr/plan9-bcm (Readme.md presents some samples)
https://github.com/elewarr/gpio_test

I have a plan to write some code for simple examples. And, i hope, something more.

This is based on Bell Labs Plan9. I managed to get RPi working via u9fs (thank you for the tip), works pretty well.

Cheers,
Krystian

Wiadomość napisana przez erik quanstrom <quanstro@quanstro.net> w dniu 1 sty 2014, o godz. 23:16:

> On Tue Dec 31 12:47:30 EST 2013, krystian.lew@gmail.com wrote:
>> Thank you for the feedback,
>> i think "ctl" file and numbering scheme selection could do the job. And maybe it could help to establish reasonable base for SPI and others.
>> 
>> Is it safe to just generate new dev tree - to return either BCM, WiringPi or board pin set - based on pin numbering scheme selection made by user? What will happen if a process would try o read/write from/to pin when numbering scheme is changed? I tried to look at devproc.c (what would happen when process dies and something is reading its /proc entries) but i can’t see any specific precautions there.
>> 
>> I’m trying to learn something - including BCM and Plan 9, i don’t feel very confident. But this Plan 9 BCM port really deserves more attention. :) I appreciate any help or feedback.
>> 
>> Regarding ISRs - this is not implemented yet. Polling at the moment is the only option. But maybe "events” file, with data populated by interrupt routine would be the answer. Is it correct Plan 9 way of doing things? QIO looks very suitable for this purpose.
>> 
>> I tried to look at 9front BCM tree, it seems to be a bit different (no fakertc device for example) from the one at Bell Labs, is it by purpose or just trees are not synched? I’m asking because i have 9front on my laptop and i’d like to build BCM kernel there, and so i thought maybe i could use 9pi from 9front image instead, but i’d like to know what is the status.
>> 
>> Thank you,
>> Krystian
>> 
>> Wiadomość napisana przez California Electric <californiaelectric@gmail.com> w dniu 30 gru 2013, o godz. 02:47:
> 
> the problem with the encoding of this email has been fixed.  iso-2022-jp-2 should
> now be properly recognized.  /n/atom/patch/tcs2022-jp-2
> 
> there are several further extensions which mostly embed multibyte characters, but 
> i'm ignoring them for now.
> 
> - erik
> 




      reply	other threads:[~2014-02-28 23:30 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-29 22:04 Krystian Lewandowski
2013-12-29 22:34 ` erik quanstrom
2013-12-30  7:32 ` Skip Tavakkolian
2013-12-30 22:38   ` Shane Morris
     [not found] ` <35A33F66-EF03-4659-ABA1-F25082DBFE41@gmail.com>
2013-12-31 17:46   ` Krystian Lewandowski
2013-12-31 19:18     ` erik quanstrom
2013-12-31 19:37       ` Shane Morris
2013-12-31 19:48         ` Skip Tavakkolian
2013-12-31 19:50         ` erik quanstrom
2013-12-31 20:45           ` Shane Morris
2013-12-31 22:03             ` erik quanstrom
2013-12-31 22:17               ` Shane Morris
2013-12-31 22:52                 ` erik quanstrom
2013-12-31 22:57           ` Krystian Lewandowski
2013-12-31 23:16             ` Shane Morris
2013-12-31 23:35               ` Shane Morris
2014-01-01  0:04               ` Krystian Lewandowski
2014-01-01  0:12                 ` Shane Morris
2014-01-01  1:12     ` Matthew Veety
2014-01-01 11:38     ` Richard Miller
2014-01-01 22:16     ` erik quanstrom
2014-02-28 23:30       ` Krystian Lewandowski [this message]

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=B53A2E0A-6C92-46E7-B921-965AE80C2A3C@gmail.com \
    --to=krystian.lew@gmail.com \
    --cc=9fans@9fans.net \
    /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 NNTP newsgroup(s).