# This may not look like it, but it's a -*- makefile -*-
#
# newboot - an AVR MMC/SD boot loader compatible with HolgerBootloader2
#
# Copyright (C) 2011  Ingo Korb <ingo@akana.de>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
#
# This file is included in the main newboot Makefile and also parsed
# into autoconf.h. The same config file that is used for compiling sd2iec
# can be used to compile a compatible version of newboot.

# MCU to compile for
CONFIG_MCU=atmega644p

# MCU frequency in Hz - the fastloader code is hardcoded for 8MHz
CONFIG_MCU_FREQ=8000000

# Select which hardware to compile for
# Valid values:
#   1 - custom configuration in config.h
#   2 - Shadowolf MMC2IEC PCBs version 1.x
#   3 - original MMC2IEC
#   4 - uIEC
#   5 - Shadowolf sd2iec PCBs version 1.x
#   6 - unused, was NKC-modified MMC2IEC
#   7 - uIEC/SD
CONFIG_HARDWARE_VARIANT=1

# Override automatic bootloader device ID
#CONFIG_BOOT_DEVID=0xdeadbeef

# Disable FAT12 support
#CONFIG_DISABLE_FAT12=y
