From: Keith Packard Date: Sun, 9 Apr 2017 19:59:07 +0000 (-0700) Subject: cortexelf-v1: Bump SPI pin speed to 40MHz to for sdcard. Fix VGA DMA. X-Git-Tag: 1.7~43 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6efa53bafda18313742849a6c4992f09c3e403c3 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 --- 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