summaryrefslogtreecommitdiff
path: root/src/stm-demo/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-01-13 20:48:47 -0800
committerKeith Packard <keithp@keithp.com>2013-01-13 20:54:14 -0800
commit8d885616e2e522b8aea5e7d5398f16d330a0cffa (patch)
treee3f40ac01c93c70f26d64604e4c97fbd7f32cdcd /src/stm-demo/ao_pins.h
parentf2810aa33fc6fe254761a0044c62c7b23e59e6bc (diff)
altos: Set STM GPIO output speed for SPI pins correctly
The GPIO pin settings affect the output impedence, and hence the maximum speed for SPI. Cranking these to suitable values allows SPI to run at full speed. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm-demo/ao_pins.h')
-rw-r--r--src/stm-demo/ao_pins.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stm-demo/ao_pins.h b/src/stm-demo/ao_pins.h
index c9c7446e..07b4a19d 100644
--- a/src/stm-demo/ao_pins.h
+++ b/src/stm-demo/ao_pins.h
@@ -60,6 +60,7 @@
#define HAS_SPI_1 1
#define SPI_1_PB3_PB4_PB5 1
+#define SPI_1_OSPEEDR STM_OSPEEDR_10MHz
#define HAS_SPI_2 0