summaryrefslogtreecommitdiff
path: root/src/telemega-v2.0
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/telemega-v2.0
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/telemega-v2.0')
-rw-r--r--src/telemega-v2.0/ao_pins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/telemega-v2.0/ao_pins.h b/src/telemega-v2.0/ao_pins.h
index b1c472da..c7c8ad19 100644
--- a/src/telemega-v2.0/ao_pins.h
+++ b/src/telemega-v2.0/ao_pins.h
@@ -309,6 +309,7 @@ struct ao_adc {
#define AO_CC1200_SPI_CS_PIN 5
#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_gpioe)
#define AO_CC1200_INT_PIN 1