summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-18 21:25:34 -0700
committerKeith Packard <keithp@keithp.com>2012-08-18 21:25:34 -0700
commit8457ca81adc9d62a7ffe56a7c0c36f2fcadaa682 (patch)
tree8592ba6e2ec5c745d09ecb94b0ab44fbbc16138e
parentf46d94ca5c969c88dd307d1b684d6fafa2157020 (diff)
altos/cc1111: Document SPI bus pin options
Just a comment in the source code about which pins each option selects. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/cc1111/ao_spi.c23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/cc1111/ao_spi.c b/src/cc1111/ao_spi.c
index 88cff9dd..52087fb4 100644
--- a/src/cc1111/ao_spi.c
+++ b/src/cc1111/ao_spi.c
@@ -118,13 +118,34 @@ ao_spi_recv_bus(void __xdata *block, uint16_t len) __reentrant
}
/*
- * Initialize USART0 for SPI using config alt 2
+ * USART0 SPI config alt 2 (using this one)
*
* MO P1_5
* MI P1_4
* CLK P1_3
* CSS P1_2
*
+ * USART0 SPI config alt 1
+ *
+ * MO P0_3
+ * MI P0_2
+ * CLK P0_5
+ * SS P0_4
+ *
+ * USART1 SPI config alt 2
+ *
+ * MO P1_6
+ * MI P1_7
+ * CLK P1_5
+ * SS P1_4
+ *
+ * USART1 SPI config alt 1
+ *
+ * MO P0_4
+ * MI P0_5
+ * CLK P0_3
+ * SS P0_2
+ *
* Chip select is the responsibility of the caller in master mode
*/