summaryrefslogtreecommitdiff
path: root/firmware/export/config/sansac100.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/config/sansac100.h')
-rw-r--r--firmware/export/config/sansac100.h131
1 files changed, 131 insertions, 0 deletions
diff --git a/firmware/export/config/sansac100.h b/firmware/export/config/sansac100.h
new file mode 100644
index 0000000000..5cc29e32f6
--- /dev/null
+++ b/firmware/export/config/sansac100.h
@@ -0,0 +1,131 @@
1/*
2 * This config file is for the Sansa C100 series
3 */
4#define TARGET_TREE /* this target is using the target tree system */
5
6#define MODEL_NAME "Sandisk Sansa c100 series"
7
8/* For Rolo and bootloader */
9#define MODEL_NUMBER 30
10
11/* define hardware samples rate caps mask */
12#define HW_SAMPR_CAPS (/*SAMPR_CAP_88 | */SAMPR_CAP_44/* | SAMPR_CAP_22 | SAMPR_CAP_11*/)
13
14/* define this if you have a bitmap LCD display */
15#define HAVE_LCD_BITMAP
16
17/* define this if you have a colour LCD */
18#define HAVE_LCD_COLOR
19
20/* define this if you can flip your LCD */
21/*#define HAVE_LCD_FLIP*/
22
23/* define this if you can invert the colours on your LCD */
24/*#define HAVE_LCD_INVERT*/
25
26/* define this if you have access to the quickscreen */
27#define HAVE_QUICKSCREEN
28
29/* define this if you have access to the pitchscreen */
30#define HAVE_PITCHSCREEN
31
32/* define this if you would like tagcache to build on this target */
33#define HAVE_TAGCACHE
34
35/* define this if you have a flash memory storage */
36#define HAVE_FLASH_STORAGE
37
38/* Only v1 */
39#define CONFIG_STORAGE STORAGE_NAND
40#define CONFIG_NAND NAND_TCC
41
42/* c100's with direct-to-NAND access are FAT16 */
43#define HAVE_FAT16SUPPORT
44
45/* LCD dimensions */
46#define LCD_WIDTH 128
47#define LCD_HEIGHT 64
48#define LCD_DEPTH 16 /* 65536 colours */
49#define LCD_PIXELFORMAT RGB565 /*rgb565*/
50
51/*#define LCD_PIXELFORMAT VERTICAL_PACKING*/
52
53/* define this to indicate your device's keypad */
54#define CONFIG_KEYPAD SANSA_C100_PAD
55
56/* define this if you have a real-time clock */
57#define CONFIG_RTC RTC_TCC77X
58
59/* define this if you have RTC RAM available for settings */
60//#define HAVE_RTC_RAM
61
62/* Define this if you have a software controlled poweroff */
63#define HAVE_SW_POWEROFF
64
65/* The number of bytes reserved for loadable codecs */
66#define CODEC_SIZE 0x50000
67
68/* The number of bytes reserved for loadable plugins */
69#define PLUGIN_BUFFER_SIZE 0x50000
70
71#define AB_REPEAT_ENABLE 1
72
73/* Define this if you do software codec */
74#define CONFIG_CODEC SWCODEC
75
76/* Define this if you have the TLV320 audio codec */
77#define HAVE_TLV320
78
79/*#define CONFIG_TUNER TEA5767*/
80
81/* TLV320 has no tone controls, so we use the software ones */
82#define HAVE_SW_TONE_CONTROLS
83
84/* Define this for LCD backlight available */
85#define HAVE_BACKLIGHT
86
87#define CONFIG_I2C I2C_TCC77X
88
89#define BATTERY_CAPACITY_DEFAULT 540 /* default battery capacity */
90#define BATTERY_CAPACITY_MIN 540 /* min. capacity selectable */
91#define BATTERY_CAPACITY_MAX 540 /* max. capacity selectable */
92#define BATTERY_CAPACITY_INC 50 /* capacity increment */
93#define BATTERY_TYPES_COUNT 1 /* only one type */
94
95/* define this if the unit should not shut down on low battery. */
96#define NO_LOW_BATTERY_SHUTDOWN
97
98#ifndef SIMULATOR
99
100/* Define this if you have a TCC770 */
101#define CONFIG_CPU TCC770
102
103/* Define this if you have ATA power-off control */
104#define HAVE_ATA_POWER_OFF
105
106/* Define this to the CPU frequency */
107#define CPU_FREQ 120000000
108
109/* Offset ( in the firmware file's header ) to the file CRC */
110#define FIRMWARE_OFFSET_FILE_CRC 0
111
112/* Offset ( in the firmware file's header ) to the real data */
113#define FIRMWARE_OFFSET_FILE_DATA 8
114
115/* The start address index for ROM builds */
116/* #define ROM_START 0x11010 for behind original Archos */
117#define ROM_START 0x7010 /* for behind BootBox */
118
119#define CONFIG_LCD LCD_S6B33B2
120
121#define BOOTFILE_EXT "c100"
122#define BOOTFILE "rockbox." BOOTFILE_EXT
123#define BOOTDIR "/.rockbox"
124
125#ifdef BOOTLOADER
126#define TCCBOOT
127#endif
128
129#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
130
131#endif /* SIMULATOR */