diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config/fiiom3k.h | 8 | ||||
-rw-r--r-- | firmware/target/hosted/sdl/sim-ui-defines.h | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/firmware/export/config/fiiom3k.h b/firmware/export/config/fiiom3k.h index 68186d7aaf..1afdbdaa36 100644 --- a/firmware/export/config/fiiom3k.h +++ b/firmware/export/config/fiiom3k.h | |||
@@ -10,7 +10,11 @@ | |||
10 | /* CPU defines */ | 10 | /* CPU defines */ |
11 | #define CONFIG_CPU X1000 | 11 | #define CONFIG_CPU X1000 |
12 | #define X1000_EXCLK_FREQ 24000000 | 12 | #define X1000_EXCLK_FREQ 24000000 |
13 | |||
14 | #ifndef SIMULATOR | ||
13 | #define TIMER_FREQ X1000_EXCLK_FREQ | 15 | #define TIMER_FREQ X1000_EXCLK_FREQ |
16 | #endif | ||
17 | |||
14 | #define CPU_FREQ 1008000000 | 18 | #define CPU_FREQ 1008000000 |
15 | #define CPUFREQ_MAX CPU_FREQ | 19 | #define CPUFREQ_MAX CPU_FREQ |
16 | /* TODO: figure out if this does in fact affect power consumption. */ | 20 | /* TODO: figure out if this does in fact affect power consumption. */ |
@@ -88,11 +92,13 @@ | |||
88 | /* TODO: implement HAVE_RTC_ALARM */ | 92 | /* TODO: implement HAVE_RTC_ALARM */ |
89 | 93 | ||
90 | /* Power management */ | 94 | /* Power management */ |
95 | #ifndef SIMULATOR | ||
91 | #define HAVE_AXP173 | 96 | #define HAVE_AXP173 |
92 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE | 97 | #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE |
93 | #define CONFIG_CHARGING CHARGING_MONITOR | 98 | #define CONFIG_CHARGING CHARGING_MONITOR |
94 | #define HAVE_SW_POWEROFF | 99 | #define HAVE_SW_POWEROFF |
95 | #define HAVE_POWEROFF_WHILE_CHARGING | 100 | #define HAVE_POWEROFF_WHILE_CHARGING |
101 | #endif | ||
96 | 102 | ||
97 | /* Only one battery type */ | 103 | /* Only one battery type */ |
98 | #define BATTERY_CAPACITY_DEFAULT 1100 | 104 | #define BATTERY_CAPACITY_DEFAULT 1100 |
@@ -102,7 +108,9 @@ | |||
102 | #define BATTERY_TYPES_COUNT 1 | 108 | #define BATTERY_TYPES_COUNT 1 |
103 | 109 | ||
104 | /* USB is still TODO. */ | 110 | /* USB is still TODO. */ |
111 | #ifndef SIMULATOR | ||
105 | #define USB_NONE | 112 | #define USB_NONE |
113 | #endif | ||
106 | 114 | ||
107 | /* Rockbox capabilities */ | 115 | /* Rockbox capabilities */ |
108 | #define HAVE_FAT16SUPPORT | 116 | #define HAVE_FAT16SUPPORT |
diff --git a/firmware/target/hosted/sdl/sim-ui-defines.h b/firmware/target/hosted/sdl/sim-ui-defines.h index 55ef96b984..c3ae7c0551 100644 --- a/firmware/target/hosted/sdl/sim-ui-defines.h +++ b/firmware/target/hosted/sdl/sim-ui-defines.h | |||
@@ -535,6 +535,14 @@ | |||
535 | #define UI_LCD_POSX 45 | 535 | #define UI_LCD_POSX 45 |
536 | #define UI_LCD_POSY 50 | 536 | #define UI_LCD_POSY 50 |
537 | 537 | ||
538 | #elif defined(FIIO_M3K) || defined(FIIO_M3K_LINUX) | ||
539 | #define UI_TITLE "FiiO M3K" | ||
540 | #define UI_WIDTH 287 /* width of GUI window */ | ||
541 | #define UI_HEIGHT 589 /* height of GUI window */ | ||
542 | #define UI_LCD_POSX 25 | ||
543 | #define UI_LCD_POSY 15 | ||
544 | |||
545 | |||
538 | #elif defined(SIMULATOR) | 546 | #elif defined(SIMULATOR) |
539 | #error no UI defines | 547 | #error no UI defines |
540 | #endif | 548 | #endif |