Demo of low res colour vga video for stm32f3 discovery board
Dependencies: STM32F3-Discovery-minimal
Fork of Space_Invaders_Demo by
Diff: video.c
- Revision:
- 11:1b3dc5581b1b
- Parent:
- 10:8ffcefda667a
--- a/video.c Wed May 30 03:23:47 2018 +0000 +++ b/video.c Thu May 31 03:11:33 2018 +0000 @@ -212,7 +212,8 @@ RCC->AHBENR |= RCC_AHBENR_GPIOBEN | RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOEEN | RCC_AHBENR_GPIODEN; GPIOD->MODER = (GPIOD->MODER&0xffff0000) | 0x5555; // output mode for PD0-7 - GPIOD->PUPDR = (GPIOD->PUPDR & ~0xffff);//0xaaaa; // pull down (1010) + GPIOD->PUPDR = (GPIOD->PUPDR & ~0xffff);// | 0xaaaa; // pull down (1010) +// GPIOD->OTYPER |= 0x8; GPIOD->OSPEEDR = (GPIOD->OSPEEDR & ~0xffff) | 0xffff; RCC->AHBENR |= RCC_AHBENR_DMA2EN;