Demo of low res colour vga video for stm32f3 discovery board

Dependencies:   STM32F3-Discovery-minimal

Fork of Space_Invaders_Demo by Martin Johnson

Revision:
16:915db2280bc4
Parent:
14:3035b3271395
--- a/video.c	Thu May 31 03:40:43 2018 +0000
+++ b/video.c	Mon Apr 01 02:30:54 2019 +0000
@@ -38,13 +38,13 @@
 
 __attribute__ ((aligned (4))) u8 volatile fba[VID_VSIZE*HTOTAL];	/* Frame buffer */
 
-__attribute__ ((section ("ccmram"))) u8 volatile *fb[VID_VSIZE];
+__attribute__ ((section ("ccmram_data"))) u8 volatile *fb[VID_VSIZE];
 
 int fboffset=0;
 
-__attribute__ ((section ("ccmram"))) static volatile u16 vline = 0;				/* The current line being drawn */
-__attribute__ ((section ("ccmram"))) static volatile u32 vflag = 0;				/* When 1, the DMA request can draw on the screen */
-__attribute__ ((section ("ccmram"))) static volatile u32 vdraw = 0;				/* Used to increment vline every 3 drawn lines */
+__attribute__ ((section ("ccmram_data"))) static volatile u16 vline = 0;				/* The current line being drawn */
+__attribute__ ((section ("ccmram_data"))) static volatile u32 vflag = 0;				/* When 1, the DMA request can draw on the screen */
+__attribute__ ((section ("ccmram_data"))) static volatile u32 vdraw = 0;				/* Used to increment vline every 3 drawn lines */
 
 #define GPIO_MODE_INPUT 0
 #define GPIO_MODE_OUTPUT 1
@@ -288,7 +288,7 @@
 }
 
 __attribute__ ((section ("ccmram"))) void waitForRefresh(void) {
-	while(vflag) __wfi();
+	while(vflag) __WFI();
 }
 
 void vidClearScreen(void) {