UBB pattern generator

Werner Almesberger werner at almesberger.net
Sat Jan 19 12:35:13 EST 2013


Paul Boddie wrote:
> Is there any way of selecting [SPI mode of MMC] in the NanoNote,

The hardware of the MMC controller doesn't provide a SPI mode.
However, you can just do it with GPIOs. For example, here's a
SPI implementation in user space (pre-libubb, so it bangs the
registers directly):

http://projects.qi-hardware.com/index.php/p/ben-wpan/source/tree/master/tools/lib/atben.c

> and are there any drivers 
> or subsystems for Linux that use SPI communication?

You mean for the Ben ? Here's an efficient one that implements
an SPI host using GPIOs:

http://projects.qi-hardware.com/index.php/p/qi-kernel/source/tree/ben-wpan/drivers/ieee802154/spi_atben.c

A generic version would look like this:

http://projects.qi-hardware.com/index.php/p/qi-kernel/source/tree/ben-wpan/drivers/spi/spi_gpio.c

Looking for SPI users ? Here's one that does MMC on top of SPI:

http://projects.qi-hardware.com/index.php/p/qi-kernel/source/tree/ben-wpan/drivers/mmc/host/mmc_spi.c

- Werner



More information about the discussion mailing list


interactive