minimacplus/firmware/components/tme/tmeconfig.h

48 lines
896 B
C
Raw Normal View History

2017-03-23 12:47:28 +00:00
2017-09-03 08:02:16 +00:00
#include <sdkconfig.h>
2017-03-23 12:47:28 +00:00
#define TME_ROMSIZE (128*1024)
#ifdef CONFIG_SPIRAM_SUPPORT_MALLOC
2017-03-23 12:47:28 +00:00
2017-09-03 08:02:16 +00:00
#if 1
//Emulate an 4MiB MacPlus
#define TME_CACHESIZE (96*1024)
#define TME_RAMSIZE (4*1024*1024)
#define TME_SCREENBUF 0x3FA700
#define TME_SCREENBUF_ALT 0x3F2700
2017-03-23 12:47:28 +00:00
2017-09-03 08:02:16 +00:00
#else
//Emulate a 512K MacPlus
#define TME_RAMSIZE (512*1024)
#define TME_SCREENBUF 0x7A700
#define TME_SCREENBUF_ALT 0x72700
#endif
2017-03-23 12:47:28 +00:00
#else
2017-10-17 13:43:20 +00:00
#if defined(CONFIG_SPIRAM_USE_MEMMAP) || defined(HOSTBUILD)
#define TME_RAMSIZE (4*1024*1024)
#define TME_SCREENBUF 0x3FA700
#define TME_SCREENBUF_ALT 0x3F2700
2017-10-17 13:43:20 +00:00
#define TME_SNDBUF 0x3FFD00
#else
2017-09-03 08:02:16 +00:00
//Emulate a 128KiB MacPlus/Mac128K hybrid
#define TME_CACHESIZE 0
2017-03-23 12:47:28 +00:00
#define TME_RAMSIZE (128*1024)
#define TME_SCREENBUF 0x1A700
#define TME_SCREENBUF_ALT 0x12700
2017-10-22 13:20:04 +00:00
#define TME_SNDBUF 0x1FD00
#endif
#endif
//Source: Guide to the Macintosh family hardware
#define TME_SNDBUF_ALT (TME_SNDBUF-0x5C00)