# This file is a sample file in CVS repository firmware/doc 
# 1) copy it from the firmware/doc/ directory (up one level to firmware/)
# 2) change it to your taste.
# It is your personal configuration file in which eg. LCD display can be enabled
# 3) recompile the firmware
# 4) save it and publish together with your config and tables files. 
# Both are very important, should you need help.

# board type:
# MY_CONF += -D GENBOARD
MY_CONF += -D GENBOARDv3
# MY_CONF += -D AFRESHBOARD

# When you have MC33151 or MC34151 chips on v3 (now standard), you need FETDRIVER_INVERTING:
MY_CONF += -D FETDRIVER_INVERTING
# MY_CONF += -D FETDRIVER_NONINVERTING


# LCD display
# to enable
MY_CONF += -D LCD

# specify size
#MY_CONF += -D LCD_2x16
#MY_CONF += -D LCD_2x20
#MY_CONF += -D LCD_4x16
MY_CONF += -D LCD_4x20

# specify lcd offsets, most seem to use the default 
# MY_CONF += -D LCD_OFFS0=255
# MY_CONF += -D LCD_OFFS1=255
# MY_CONF += -D LCD_OFFS2=255
# MY_CONF += -D LCD_OFFS3=255

# specify character set
#MY_CONF += -D JAPANESE_LCD

# 4x3 Keyboard (almost useless)
#MY_CONF += -D KEYBOARD

# Software PWM idle valve (was: IDLE_PWM_SOFT) 
# control moved to config.iac_conf

# PS2 keyboard (very useful)
MY_CONF += -D PS2KEYBOARD

# Generate debug statistics
MY_CONF += -D BENCHMARK

# Display temperatures in Celcius
MY_CONF += -D CELSIUS

# Display high precision 16bit VE table after mct command
MY_CONF += -D VE_TABLE_FIX

# Disable all ignition related code, currently not supported:
#MY_CONF += -D NOIGN

# makes v2.x MISC output high after powerup (needed for bootloader)
#MY_CONF += -D IGN_OUT_INVERTED

# WBO2 related config: (you need a license to enable it, see Copyright in wbo2.c)
# WBO2 support on v2 (with helper circuit) will be gone soon
MY_CONF += -D WBO2
# MY_CONF += -D HEATER_INVERTED
# MY_CONF += -D HEATER_PORT=PORTB
# MY_CONF += -D HEATER=6

# Enable 12x12 table (15x15 or 16x14 would possibly work too)
MY_CONF += -D VE_SIZE_RPM=16
MY_CONF += -D VE_SIZE_KPA=14

# Other things ...
#MY_CONF += -D BUTTON
#MY_CONF += -D COMM_AUTO_DUMP
#MY_CONF += -D VAL_T_16BIT

# for v3 with lotsof free outputs, this is nice.
# set parameters in config (possible to disable in config as well!):
# MY_CONF += -D WOT_OUTPUT_TPS_THRESHOLD

# Programmable miscellaneous outputs (like the WOT above, but RPM, TPS and MAP can be used in conjunction)
# Possible usages: shift light, electronic boost control, N2O output, dummy secondary inj. enabling, etc.
MY_CONF += -D MISC1OUT
MY_CONF += -D MISC2OUT

# there are other things, which are only interesting for developers
# or serious (nonstandard) hacks: you can override almost anything. Eg LCD_MAPPING
# can select an AVR => LCD portmapping which is not standard for the given board type,
# and even the port used for DATA and the pin used for ENABLE can be chosen individually

# config.kpafac resolution. 2 is default, 4 (kPa) is possible. Only effects kpafac variable
# moved to config.kpa_conf[7:4], but can still be overridden here
# MY_CONF += -D KPAFAC_UNIT=2

# moved to config.kpa_conf[3:0], but can still be overridden here
# MY_CONF += -D KPA_CONFIG_RESOLUTION=1

MY_CONF += -D AUDITRIGGER

MY_CONF += -D BOOSTCONTROL_LINES=1

MY_CONF += -D ALS
# MY_CONF += -D SOFTWARNING
MY_CONF += -D SOFTRPM
MY_CONF += -D SOFTIDLE
MY_CONF += -D SOFTREDLINE
MY_CONF += -D SOFTLAUNCH

MY_CONF += -D ALLOW_SLOPPY_TOOTHWHEEL

# MY_CONF += -D LOWMAP_FUELCUT_HYSTERESIS=2

MY_CONF += -D ONLY_LAST_TOOTHTIME

# IGN_DUAL_OUT now obsolete (moved to config)
# MY_CONF += -D IGN_DUAL_OUT
