Introduce new config header 'config-sim.h' that takes care of undefining things that shouldn't be defined for sims so that the target configs no longer need to have #ifndef SIMULATOR sections and to bring some consistency for what is and is not included for sims.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23547 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Nils Wallménius 2009-11-07 10:48:05 +00:00
parent 9b6d3d74b3
commit 109f182b0c
58 changed files with 87 additions and 236 deletions

View File

@ -95,8 +95,6 @@
/* define this if the unit should not shut down on low battery. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have a TCC770 */
#define CONFIG_CPU TCC770
@ -128,4 +126,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -149,9 +149,6 @@
#define CURRENT_BACKLIGHT 40 /* Screen is about 20, blue LEDs are another 20, so 40 if both */
#define CURRENT_RECORD 30 /* flash player, so this is just unboosted current*/
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5024 */
#define CONFIG_CPU PP5022
@ -204,8 +201,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23
#define DEFAULT_REC_LEFT_GAIN 23

View File

@ -137,9 +137,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5024 */
#define CONFIG_CPU AS3525
@ -189,8 +186,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/** Port-specific settings **/
/* Main LCD backlight brightness range and defaults */

View File

@ -140,9 +140,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a AMS AS3525 SoC */
#define CONFIG_CPU AS3525
@ -189,8 +186,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/** Port-specific settings **/
/* Main LCD backlight brightness range and defaults */

View File

@ -62,14 +62,10 @@
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
#ifndef SIMULATOR
#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
#define HAVE_MULTIDRIVE
#define HAVE_HOTSWAP
#define NUM_DRIVES 2
#else
#define CONFIG_STORAGE STORAGE_NAND
#endif
#define CONFIG_NAND NAND_TCC
@ -150,7 +146,6 @@
#define CURRENT_BACKLIGHT 30 /* TBD */
#define CURRENT_RECORD 0 /* no recording yet */
#ifndef SIMULATOR
/* Define this if you have a TCC7801 */
#define CONFIG_CPU TCC7801
@ -174,5 +169,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif /* SIMULATOR */

View File

@ -127,8 +127,6 @@
/* Hardware controlled charging with monitoring */
//#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if you have a TI TMS320DM320 */
#define CONFIG_CPU DM320
@ -144,9 +142,6 @@
/* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
/* Offset ( in the firmware file's header ) to the file CRC */
#define FIRMWARE_OFFSET_FILE_CRC 0
@ -167,4 +162,3 @@
#define USB_PRODUCT_ID 0x4133
#define USB_NUM_ENDPOINTS 7
#endif /* SIMULATOR */

View File

@ -128,8 +128,6 @@
/* Hardware controlled charging with monitoring */
//#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if you have a TI TMS320DM320 */
#define CONFIG_CPU DM320
@ -173,4 +171,3 @@
#define BUTTON_DEBUG
*/
#endif

View File

@ -127,8 +127,6 @@
/* Hardware controlled charging with monitoring */
//#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if you have a TI TMS320DM320 */
#define CONFIG_CPU DM320
@ -165,4 +163,3 @@
#define USB_PRODUCT_ID 0x4133
#define USB_NUM_ENDPOINTS 7
#endif /* SIMULATOR */

View File

@ -143,9 +143,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5024 */
#define CONFIG_CPU PP5024
@ -198,9 +195,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/** Port-specific settings **/
/* Main LCD backlight brightness range and defaults */

View File

@ -145,9 +145,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have an AMS AS3525*/
#define CONFIG_CPU AS3525
@ -206,8 +203,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/* Default recording levels */
#define DEFAULT_REC_MIC_GAIN 23
#define DEFAULT_REC_LEFT_GAIN 23

View File

@ -98,8 +98,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -134,8 +132,6 @@
#define BOOTFILE "ajbrec." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -150,9 +150,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have an AMS AS3525*/
#define CONFIG_CPU AS3525
@ -204,5 +201,3 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */

View File

@ -128,11 +128,6 @@
#define HAVE_HEADPHONE_DETECTION
#endif /* BOOTLOADER */
#ifndef SIMULATOR
/* The LCD on a Gigabeat is 240x320 - it is portrait */
#define HAVE_PORTRAIT_LCD
#define CONFIG_CPU IMX31L
/* Define this if you want to use imx31l's i2c interface */
@ -221,4 +216,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif

View File

@ -59,9 +59,7 @@
#define HAVE_TOUCHPAD_SENSITIVITY_SETTING
#ifndef SIMULATOR
#define HAVE_HARDWARE_BEEP
#endif
#endif /* BOOTLOADER */
@ -140,11 +138,6 @@
* when running */
#define HAVE_BATTERY_SWITCH
#ifndef SIMULATOR
/* The LCD on a Gigabeat is 240x320 - it is portrait */
#define HAVE_PORTRAIT_LCD
#define HAVE_LCD_FLIP
/* Define this if your LCD can set contrast */
@ -190,4 +183,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif

View File

@ -127,8 +127,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -185,4 +183,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif

View File

@ -133,8 +133,6 @@
#define CURRENT_RECORD 105 /* additional current while recording */
#define CURRENT_REMOTE 8 /* additional current when remote connected */
#ifndef SIMULATOR
/* Define this if you have a Motorola SCF5249 */
#define CONFIG_CPU MCF5249
@ -183,8 +181,6 @@
/* Define this if the EEPROM chip is used */
#define HAVE_EEPROM_SETTINGS
#endif /* !SIMULATOR */
/* Define bitmask of input sources - recordable bitmask can be defined
explicitly if different */
#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN | \

View File

@ -139,8 +139,6 @@
* if USB/MAIN power is discernable and hardware doesn't compel charging */
#define HAVE_USB_CHARGING_ENABLE
#ifndef SIMULATOR
/* Define this if you have a Motorola SCF5249 */
#define CONFIG_CPU MCF5249
@ -181,8 +179,6 @@
/* Define this if there is an EEPROM chip */
#define HAVE_EEPROM
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -141,8 +141,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5022
@ -199,4 +197,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif

View File

@ -133,8 +133,6 @@
#define CONFIG_CHARGING CHARGING_SIMPLE
#ifndef SIMULATOR
/* Define this if you have a TCC770 */
#define CONFIG_CPU TCC770
@ -162,4 +160,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -117,8 +117,6 @@
/* define current usage levels */
#define CURRENT_REMOTE 8 /* additional current when remote connected */
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
#define HAVE_LCD_CONTRAST
@ -140,8 +138,8 @@
/* Define this if you have ATA power-off control */
#define HAVE_ATA_POWER_OFF
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL /* FIXME: implement hardware LED handling */
/* FIXME: implement hardware LED handling */
/* #define CONFIG_LED LED_REAL */
/* Offset ( in the firmware file's header ) to the file CRC */
#define FIRMWARE_OFFSET_FILE_CRC 0
@ -160,8 +158,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -136,8 +136,6 @@
/* define current usage levels */
#define CURRENT_REMOTE 8 /* additional current when remote connected */
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
#define HAVE_LCD_CONTRAST
@ -176,8 +174,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/** Port-specific settings **/
/* Main LCD contrast range and defaults */

View File

@ -139,8 +139,6 @@
/* define current usage levels */
#define CURRENT_REMOTE 8 /* additional current when remote connected */
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
#define HAVE_LCD_CONTRAST
@ -182,8 +180,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -76,8 +76,6 @@
/* define this if the unit should not shut down on low battery. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have a Philips PNX0101 */
#define CONFIG_CPU PNX0101
@ -127,4 +125,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif

View File

@ -120,8 +120,6 @@
/* FIXME: Don't shutdown on low battery until we have proper suspend. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5002 */
#define CONFIG_CPU PP5002
@ -168,4 +166,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -124,8 +124,6 @@
/* Hardware controlled charging? FIXME */
#define CONFIG_CHARGING CHARGING_SIMPLE
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5002 */
#define CONFIG_CPU PP5002
@ -172,4 +170,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -141,8 +141,6 @@
#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
#endif
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -185,9 +183,6 @@
#define USB_PRODUCT_ID 0x1203
#define HAVE_USB_HID_MOUSE
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
/* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ
@ -205,4 +200,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif

View File

@ -118,8 +118,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -177,4 +175,3 @@
#define IPOD_ACCESSORY_PROTOCOL
#define HAVE_SERIAL
#endif

View File

@ -137,8 +137,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -192,4 +190,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif

View File

@ -144,8 +144,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5022 */
#define CONFIG_CPU PP5022
@ -202,4 +200,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif

View File

@ -131,8 +131,6 @@
#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
#endif
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5022 */
#define CONFIG_CPU PP5022
@ -187,4 +185,3 @@
#define IPOD_ACCESSORY_PROTOCOL
#define HAVE_SERIAL
#endif

View File

@ -105,9 +105,7 @@
/* Define the type of audio codec */
#define HAVE_WM8975
#ifndef SIMULATOR
#define HAVE_PCM_DMA_ADDRESS
#endif
/* Define this for LCD backlight available */
#define HAVE_BACKLIGHT
@ -134,8 +132,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
//#define HAVE_LCD_CONTRAST
@ -184,8 +180,6 @@
#define FLASH_MAGIC 0xfbfbfbf1
#endif
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -152,8 +152,6 @@
#define CURRENT_RECORD 35 /* FIXME: this needs adjusting */
#endif
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5022 */
#define CONFIG_CPU PP5022
@ -196,9 +194,6 @@
#define USB_PRODUCT_ID 0x1209
#define HAVE_USB_HID_MOUSE
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
/* Define this if you have adjustable CPU frequency */
#define HAVE_ADJUSTABLE_CPU_FREQ
@ -222,4 +217,3 @@
#define IPOD_ACCESSORY_PROTOCOL
#define HAVE_SERIAL
#endif

View File

@ -103,8 +103,6 @@
/* define this if the unit should not shut down on low battery. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have a TCC773L */
#define CONFIG_CPU TCC773L
@ -147,4 +145,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -84,8 +84,6 @@
#define BATTERY_CAPACITY_INC 100 /* capacity increment */
#define BATTERY_TYPES_COUNT 1 /* only one type */
#ifndef SIMULATOR
#define CONFIG_CPU AT91SAM9260
/* Define this to the CPU frequency */
@ -103,4 +101,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif

View File

@ -98,8 +98,6 @@
/* define this if the unit should not shut down on low battery. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have a TCC770 */
#define CONFIG_CPU TCC770
@ -133,4 +131,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -111,8 +111,6 @@
/* define this if the unit should not shut down on low battery. */
#define NO_LOW_BATTERY_SHUTDOWN
#ifndef SIMULATOR
/* Define this if you have an AMS AS3525 */
#define CONFIG_CPU AS3525
@ -162,4 +160,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif /* SIMULATOR */

View File

@ -119,8 +119,6 @@
/* Hardware controlled charging, software can monitor plug and charge state */
#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
//#define HAVE_LCD_CONTRAST
@ -162,8 +160,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -119,8 +119,6 @@
/* Hardware controlled charging? FIXME */
#define CONFIG_CHARGING CHARGING_SIMPLE
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
//#define HAVE_LCD_CONTRAST
@ -162,8 +160,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -122,8 +122,6 @@
/* Hardware controlled charging? FIXME */
#define CONFIG_CHARGING CHARGING_SIMPLE
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
//#define HAVE_LCD_CONTRAST
@ -165,8 +163,6 @@
#define FLASH_ENTRYPOINT 0x00001000
#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -120,10 +120,6 @@
/* The number of bytes reserved for loadable plugins */
#define PLUGIN_BUFFER_SIZE 0x100000
/***************************************************************************/
#ifndef SIMULATOR
#define CONFIG_CPU S3C2440
/* Define this to the CPU frequency */
@ -158,5 +154,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif
/***************************************************************************/

View File

@ -123,8 +123,6 @@
#define BATTERY_CAPACITY_DEFAULT 720 /* default battery capacity */
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -199,4 +197,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif

View File

@ -199,8 +199,6 @@
/* Define this if you have a Texas Instruments TSC2100 touch screen */
#define HAVE_TSC2100
#if !defined(SIMULATOR)
/* M66591 register base */
#define M66591_BASE 0x60000000
@ -252,4 +250,3 @@
#define IRAM_LCDFRAMEBUFFER IBSS_ATTR /* put the lcd frame buffer in IRAM */
#endif

View File

@ -140,9 +140,7 @@
#define HAVE_SW_TONE_CONTROLS
/* has no volume control, so we use the software ones */
#ifndef SIMULATOR
#define HAVE_SW_VOLUME_CONTROL
#endif
/* software controlled volume ranges from -73 -> 0 dB, other than that
is controlled by hardware */
@ -169,8 +167,6 @@
#define CFG_EXTAL 12000000 /* EXT clock: 12 Mhz */
#ifndef SIMULATOR
#define CONFIG_STORAGE (STORAGE_NAND | STORAGE_SD)
#define NUM_DRIVES 2
@ -217,4 +213,3 @@
#define USB_VENDOR_ID 0x07C4
#define USB_PRODUCT_ID 0xA4A5
#endif

View File

@ -133,8 +133,6 @@
/* Hardware controlled charging with monitoring */
//#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if you have a Ingenic JZ4740 */
#define CONFIG_CPU JZ4732
@ -167,4 +165,3 @@
#define USB_VENDOR_ID 0x07C4
#define USB_PRODUCT_ID 0xA4A5
#endif

View File

@ -79,8 +79,6 @@
#define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */
#define CURRENT_BACKLIGHT 0 /* no backlight */
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -134,8 +132,6 @@
#define BOOTFILE "ajbrec." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -66,8 +66,6 @@
#define CURRENT_USB 1 /* host powered in USB mode; avoid zero-div */
#define CURRENT_BACKLIGHT 0 /* no backlight */
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -118,8 +116,6 @@
#define BOOTFILE "ajbrec." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -58,8 +58,6 @@
/* Hardware controlled charging */
#define CONFIG_CHARGING CHARGING_SIMPLE
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -97,8 +95,6 @@
#define BOOTFILE "archos." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -87,8 +87,6 @@
/* Software controlled charging */
#define CONFIG_CHARGING CHARGING_TARGET
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -123,8 +121,6 @@
#define BOOTFILE "ajbrec." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -93,8 +93,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a SH7034 */
#define CONFIG_CPU SH7034
@ -134,8 +132,6 @@
#define BOOTFILE "ajbrec." BOOTFILE_EXT
#define BOOTDIR "/"
#endif /* SIMULATOR */
#define HAVE_LCD_CONTRAST
#define MIN_CONTRAST_SETTING 5

View File

@ -134,9 +134,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5024 */
#define CONFIG_CPU PP5024
@ -194,4 +191,3 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */

View File

@ -0,0 +1,80 @@
/* This config file is for all simulators, and is used in addition to the
target specific configs */
#undef CONFIG_CPU
#undef HAVE_FMADC
#undef NEED_ATA_POWER_BATT_MEASURE
#undef CONFIG_I2C
#undef HAVE_PCM_DMA_ADDRESS
#undef FLASH_SIZE
#undef CPU_FREQ
#undef HAVE_ATA_POWER_OFF
#undef CONFIG_LCD
#undef CONFIG_LED
#undef ROM_START
#undef FIRMWARE_OFFSET_FILE_LENGTH
#undef FIRMWARE_OFFSET_FILE_CRC
#undef FIRMWARE_OFFSET_FILE_DATA
#undef AMS_OF_SIZE
#undef HAVE_MULTIDRIVE
#undef NUM_DRIVES
#undef HAVE_HOTSWAP
#undef CONFIG_STORAGE
#undef CONFIG_USBOTG
#undef USB_HANDLED_BY_OF
#undef HAVE_USBSTACK
#undef USE_ROCKBOX_USB
#undef USB_VENDOR_ID
#undef USB_PRODUCT_ID
#undef USB_NUM_ENDPOINTS
#undef HAVE_USB_HID_MOUSE
#undef HAVE_ADJUSTABLE_CPU_FREQ
#undef MI4_FORMAT
#undef BOOTFILE_EXT
#undef BOOTFILE
#undef BOOTDIR
#undef BOOTLOADER_ENTRYPOINT
#undef FLASH_ENTRYPOINT
#undef FLASH_MAGIC
#undef HAVE_EEPROM
#undef HAVE_EEPROM_SETTINGS
#undef HAVE_HARDWARE_BEEP
#undef HAVE_POWEROFF_WHILE_CHARGING
#undef INCLUDE_TIMEOUT_API
#undef HAVE_FLASHED_ROCKBOX
#undef IPOD_ACCESSORY_PROTOCOL
#undef HAVE_WHEEL_POSITION
#undef HAVE_LCD_MODES
#undef HAVE_SPEAKER

View File

@ -88,8 +88,6 @@
/* define this if the unit can be powered or charged via USB */
/*#define HAVE_USB_POWER*/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -139,4 +137,3 @@
#define BOOTFILE "rockbox." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"
#endif

View File

@ -135,9 +135,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
/** Non-simulator section **/
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5024 */
#define CONFIG_CPU PP6100
@ -190,8 +187,6 @@
#define INCLUDE_TIMEOUT_API
#endif /* SIMULATOR */
/** Port-specific settings **/
/* Main LCD backlight brightness range and defaults */

View File

@ -106,9 +106,7 @@
#define CONFIG_STORAGE STORAGE_ATA
/* We're able to shut off power to the HDD */
#ifndef SIMULATOR
/* todo #define HAVE_ATA_POWER_OFF */
#endif
/* Define this if you have a software controlled poweroff */
#define HAVE_SW_POWEROFF
@ -139,8 +137,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -185,4 +181,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif /* !SIMULATOR */

View File

@ -113,9 +113,7 @@
#define CONFIG_STORAGE STORAGE_ATA
/* We're able to shut off power to the HDD */
#ifndef SIMULATOR
/* todo #define HAVE_ATA_POWER_OFF */
#endif
/* Define this if you have a software controlled poweroff */
#define HAVE_SW_POWEROFF
@ -146,8 +144,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -191,4 +187,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif /* !SIMULATOR */

View File

@ -110,9 +110,7 @@
#define CONFIG_STORAGE STORAGE_ATA
/* We're able to shut off power to the HDD */
#ifndef SIMULATOR
/* todo #define HAVE_ATA_POWER_OFF */
#endif
/* Define this if you have a software controlled poweroff */
#define HAVE_SW_POWEROFF
@ -143,8 +141,6 @@
/* define this if the unit can be powered or charged via USB */
#define HAVE_USB_POWER
#ifndef SIMULATOR
/* Define this if you have a PortalPlayer PP5020 */
#define CONFIG_CPU PP5020
@ -189,4 +185,3 @@
#define ICODE_ATTR_TREMOR_NOT_MDCT
#endif /* !SIMULATOR */

View File

@ -121,8 +121,6 @@
/* Hardware controlled charging, software can monitor plug and charge state */
#define CONFIG_CHARGING CHARGING_MONITOR
#ifndef SIMULATOR
/* Define this if your LCD can set contrast */
//#define HAVE_LCD_CONTRAST
@ -167,8 +165,6 @@
//#define FLASH_ENTRYPOINT 0x00001000
//#define FLASH_MAGIC 0xfbfbfbf1
#endif /* SIMULATOR */
/* Define this for FM radio input available */
#define HAVE_FMRADIO_IN

View File

@ -403,6 +403,11 @@ Lyre prototype 1 */
/* no known platform */
#endif
/* keep this include after the target configs */
#ifdef SIMULATOR
#include "config-sim.h"
#endif
/* setup basic macros from capability masks */
#include "config_caps.h"