diff options
| author | Keith Packard <keithp@keithp.com> | 2013-01-13 20:48:47 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-01-13 20:54:14 -0800 |
| commit | 8d885616e2e522b8aea5e7d5398f16d330a0cffa (patch) | |
| tree | e3f40ac01c93c70f26d64604e4c97fbd7f32cdcd /src/megadongle-v0.1 | |
| parent | f2810aa33fc6fe254761a0044c62c7b23e59e6bc (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/megadongle-v0.1')
| -rw-r--r-- | src/megadongle-v0.1/ao_pins.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/megadongle-v0.1/ao_pins.h b/src/megadongle-v0.1/ao_pins.h index c766a48c..d460a490 100644 --- a/src/megadongle-v0.1/ao_pins.h +++ b/src/megadongle-v0.1/ao_pins.h @@ -78,6 +78,7 @@ #define HAS_SPI_2 1 #define SPI_2_PB13_PB14_PB15 1 /* Flash, Companion */ #define SPI_2_PD1_PD3_PD4 0 +#define SPI_2_OSPEEDR STM_OSPEEDR_10MHz #define SPI_2_PORT (&stm_gpiob) #define SPI_2_SCK_PIN 13 |
