diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-09 12:59:07 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-09 12:59:07 -0700 |
commit | 6efa53bafda18313742849a6c4992f09c3e403c3 (patch) | |
tree | 3627b953ec3faf79e5f4558ea6a45fc58afe9e36 /src/cortexelf-v1 | |
parent | c97b4c65d66078a4e187b782669e6b36ee92d30c (diff) |
cortexelf-v1: Bump SPI pin speed to 40MHz to for sdcard. Fix VGA DMA.
Tell the DMA code to leave the DMA engine enabled so the VGA output
can use it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cortexelf-v1')
-rw-r--r-- | src/cortexelf-v1/ao_pins.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cortexelf-v1/ao_pins.h b/src/cortexelf-v1/ao_pins.h index 50add5d3..258ffe31 100644 --- a/src/cortexelf-v1/ao_pins.h +++ b/src/cortexelf-v1/ao_pins.h @@ -90,12 +90,12 @@ #define HAS_SPI_2 1 #define SPI_2_PB13_PB14_PB15 0 #define SPI_2_PD1_PD3_PD4 1 /* LED displays, microSD */ -#define SPI_2_OSPEEDR STM_OSPEEDR_10MHz +#define SPI_2_OSPEEDR STM_OSPEEDR_40MHz #define SPI_2_PORT (&stm_gpiod) -#define SPI_2_SCK_PIN 1 -#define SPI_2_MISO_PIN 3 -#define SPI_2_MOSI_PIN 4 +//#define SPI_2_SCK_PIN 1 +//#define SPI_2_MISO_PIN 3 +//#define SPI_2_MOSI_PIN 4 #define HAS_I2C_1 0 #define I2C_1_PB8_PB9 0 @@ -125,6 +125,8 @@ #define AO_SDCARD_SPI_MISO_PIN 3 #define AO_SDCARD_SPI_MOSI_PIN 4 +/* VGA */ +#define STM_DMA1_3_STOLEN 1 /* Buttons */ #define AO_EVENT 1 |