From 058a9ec9453fed05872d10c72913bbc7034d32d8 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 28 Mar 2021 12:07:30 -0400 Subject: Add M3K native to the simulator Change-Id: If3e877d2df189e44076631fd571cf6aa70ce6ca8 --- firmware/export/config/fiiom3k.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'firmware/export/config') 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 @@ /* CPU defines */ #define CONFIG_CPU X1000 #define X1000_EXCLK_FREQ 24000000 + +#ifndef SIMULATOR #define TIMER_FREQ X1000_EXCLK_FREQ +#endif + #define CPU_FREQ 1008000000 #define CPUFREQ_MAX CPU_FREQ /* TODO: figure out if this does in fact affect power consumption. */ @@ -88,11 +92,13 @@ /* TODO: implement HAVE_RTC_ALARM */ /* Power management */ +#ifndef SIMULATOR #define HAVE_AXP173 #define CONFIG_BATTERY_MEASURE VOLTAGE_MEASURE #define CONFIG_CHARGING CHARGING_MONITOR #define HAVE_SW_POWEROFF #define HAVE_POWEROFF_WHILE_CHARGING +#endif /* Only one battery type */ #define BATTERY_CAPACITY_DEFAULT 1100 @@ -102,7 +108,9 @@ #define BATTERY_TYPES_COUNT 1 /* USB is still TODO. */ +#ifndef SIMULATOR #define USB_NONE +#endif /* Rockbox capabilities */ #define HAVE_FAT16SUPPORT -- cgit v1.2.3