STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
GUI_pages.h
Go to the documentation of this file.
1 /*
2  * GUI_pages.h
3  *
4  * Created on: Jun 11, 2016
5  * Author: Torsten
6  */
7 
8 #ifndef GUI_PAGES_H_
9 #define GUI_PAGES_H_
10 
11 /*
12  * define how to access the GUI pages in QSPI flash with memory remapping
13  * a BMP file as real binary for LCD size 272 x 480 Pixel is stored in QSPI, we
14  * do not need anymore page_x.h for the C-Code, instead we had to use debugger ST-LINK
15  * flashing a BIN file with all the pages (see separate instruction how to do)
16  */
17 
18 #define QSPI_MEM_BASE 0x90000000
19 #define QSPI_SRVD_CONFIG 0x00001000 /* we reserve 4K at beginning of QSPI for config */
20 
21 /*
22  * Remark: we make sure to align the pages on a 4K boundary: so we could use sector erase,
23  * it waste a bit space in QSPI (holes)
24  * For the holes make sure to define as 0xFF in BIN file (so we could still override without to
25  * erase)
26  */
27 
28 #define BMP_FILE_SIZE 0x00120000 /* a bit more as real file size for 800x480, round up to next boundary */
29 
30 #define PAGE_SPLASH (QSPI_MEM_BASE + QSPI_SRVD_CONFIG) /* page0 - Splash screen */
31 #define PAGE_1 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 1 * BMP_FILE_SIZE) /* page1 - Main page */
32 #define PAGE_2 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 2 * BMP_FILE_SIZE) /* page2 - Config */
33 #define PAGE_3 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 3 * BMP_FILE_SIZE) /* page3 - Status */
34 #define PAGE_4 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 4 * BMP_FILE_SIZE) /* page4 - FFT */
35 #define PAGE_5 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 5 * BMP_FILE_SIZE) /* page5 - Filter (EQ) */
36 #define PAGE_6 (QSPI_MEM_BASE + QSPI_SRVD_CONFIG + 6 * BMP_FILE_SIZE) /* page6 - SDCard files */
37 
38 /*
39  * Remark: we have a total QSPI size of 512Mbit = 64MByte = 0x9000_0000 .. 0x9400_0000
40  */
41 
42 
43 #endif /* GUI_PAGES_H_ */