summaryrefslogtreecommitdiff
path: root/src/telefiretwo-v0.1
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-02-18 22:49:34 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commit1dc31a46f1d1adfdeab444664e581a780d995bf7 (patch)
tree9a7ca76456195963ddcf9c3316f891b47270a5d6 /src/telefiretwo-v0.1
parent0bf267a6e2d401c8bd6a06d995e3d000777d622a (diff)
altos: Require SPI speed to be declared for cc1200
The cc1200 can't run SPI faster than 10MHz, so make sure every device picks a SPI clock slower than that. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/telefiretwo-v0.1')
-rw-r--r--src/telefiretwo-v0.1/ao_pins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/telefiretwo-v0.1/ao_pins.h b/src/telefiretwo-v0.1/ao_pins.h
index f56061b2..1e5c0d09 100644
--- a/src/telefiretwo-v0.1/ao_pins.h
+++ b/src/telefiretwo-v0.1/ao_pins.h
@@ -110,6 +110,7 @@
#define AO_CC1200_SPI_CS_PIN 7
#define AO_CC1200_SPI_BUS AO_SPI_2_PB13_PB14_PB15
#define AO_CC1200_SPI stm_spi2
+#define AO_CC1200_SPI_SPEED AO_SPI_SPEED_FAST
#define AO_CC1200_INT_PORT (&stm_gpiob)
#define AO_CC1200_INT_PIN (11)