wip
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
#include "graphics.h"
|
#include "graphics.h"
|
||||||
|
#include "stm32f4xx_hal_ltdc.h"
|
||||||
|
|
||||||
__attribute__((section(".sdram")))
|
__attribute__((section(".sdram")))
|
||||||
volatile Pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH];
|
volatile Pixel_t framebuffer[DISPLAY_HEIGHT * DISPLAY_WIDTH];
|
||||||
@@ -16,4 +17,5 @@ void DisplayTest(uint16_t color)
|
|||||||
framebuffer[(h * DISPLAY_WIDTH) + w] = color;
|
framebuffer[(h * DISPLAY_WIDTH) + w] = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -19,6 +19,7 @@
|
|||||||
/* Includes ------------------------------------------------------------------*/
|
/* Includes ------------------------------------------------------------------*/
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "cmsis_os.h"
|
#include "cmsis_os.h"
|
||||||
|
#include "stm32f4xx_hal_ltdc.h"
|
||||||
#include "stm32f4xx_hal_sdram.h"
|
#include "stm32f4xx_hal_sdram.h"
|
||||||
#include "stm32f4xx_ll_fmc.h"
|
#include "stm32f4xx_ll_fmc.h"
|
||||||
#include "usb_host.h"
|
#include "usb_host.h"
|
||||||
@@ -700,8 +701,10 @@ void StartDefaultTask(void const * argument)
|
|||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
DisplayTest(0xffff);
|
DisplayTest(0xffff);
|
||||||
|
HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE);
|
||||||
osDelay(500);
|
osDelay(500);
|
||||||
DisplayTest(0x0000);
|
DisplayTest(0x0000);
|
||||||
|
HAL_LTDC_Reload(&hltdc, LTDC_RELOAD_IMMEDIATE);
|
||||||
osDelay(500);
|
osDelay(500);
|
||||||
}
|
}
|
||||||
/* USER CODE END 5 */
|
/* USER CODE END 5 */
|
||||||
|
|||||||
Reference in New Issue
Block a user