aboutsummaryrefslogtreecommitdiffstats
path: root/source/spi.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-04-28 13:52:58 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-04-28 14:23:30 -0400
commitf99f3935e31be17ec425540756d6e5e7deda4dd0 (patch)
tree16a888a0ecbebf446a5fca8c6975dd3c3f3eed01 /source/spi.rst
parent763e7ffaea9fabf3de0245e9fd0280aa1c8dcbd3 (diff)
downloadlibrambutan-f99f3935e31be17ec425540756d6e5e7deda4dd0.tar.gz
librambutan-f99f3935e31be17ec425540756d6e5e7deda4dd0.zip
SPI refactor.
Still a polling driver, but the libmaple proper interface exposes enough that users enable the various interrupts and define their own IRQ handlers if they feel like it. Wirish HardwareSPI interface was largely redone; it's more like the Arduino implementation now, although there are some differences when I didn't like their API. The old methods are still there, but are deprecated and slated for deletion in 0.1.0. New board-specific values: BOARD_NR_SPI, BOARD_SPIx_NSS_PIN, BOARD_SPIx_MOSI_PIN, BOARD_SPIx_MISO_PIN, and BOARD_SPIx_SCK_PIN, for x from 1 to BOARD_NR_SPI. Documentation was updated appropriately.
Diffstat (limited to 'source/spi.rst')
-rw-r--r--source/spi.rst6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/spi.rst b/source/spi.rst
index 2da4bf8..dd9f1f5 100644
--- a/source/spi.rst
+++ b/source/spi.rst
@@ -8,12 +8,8 @@ The Serial Peripheral Interface Bus (SPI) is a serial data transfer
protocol useful for interacting with a wide variety of hardware
peripherals.
-The Maple has two SPI ports. The first has NSS on D10, MOSI on
-D11, MISO on D12, and SCK on D13. The second has NSS on D31, SCK on
-D32, MISO on D33, and MOSI on D34.
-
The public libmaple API for managing the SPI ports is the
-:ref:`HardwareSpi <lang-hardwarespi>` class.
+:ref:`HardwareSPI <lang-hardwarespi>` class.
Recommended Reading
-------------------