mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-10 05:35:20 -05:00
Replace hard coded memory size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4eafd23f42
commit
f27b135219
1 changed files with 4 additions and 2 deletions
|
|
@ -24,9 +24,11 @@
|
||||||
#define LCD_BUFFER_SIZE (320*240*2)
|
#define LCD_BUFFER_SIZE (320*240*2)
|
||||||
#define TTB_SIZE (0x4000)
|
#define TTB_SIZE (0x4000)
|
||||||
/* must be 16Kb (0x4000) aligned */
|
/* must be 16Kb (0x4000) aligned */
|
||||||
#define TTB_BASE_ADDR (0x30000000 + (32*1024*1024) - TTB_SIZE)
|
#define TTB_BASE_ADDR (0x30000000 + (MEMORYSIZE*1024*1024) - TTB_SIZE)
|
||||||
|
#define LCD_FRAME_ADDR (TTB_BASE_ADDR - LCD_BUFFER_SIZE)
|
||||||
|
|
||||||
#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */
|
#define TTB_BASE ((unsigned long *)TTB_BASE_ADDR) /* End of memory */
|
||||||
#define FRAME ((unsigned short *)(TTB_BASE_ADDR - LCD_BUFFER_SIZE)) /* Right before TTB */
|
#define FRAME ((unsigned short *)LCD_FRAME_ADDR) /* Right before TTB */
|
||||||
|
|
||||||
/* Memory Controllers */
|
/* Memory Controllers */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue