00001 /* 00002 bootloaderconfig.h - part of AVRUSBBoot firmware 00003 00004 Thomas Fischl <tfischl@gmx.de> 00005 00006 License: 00007 The project is built with AVR USB driver by Objective Development, which is 00008 published under a proprietary Open Source license. To conform with this 00009 license, USBasp is distributed under the same license conditions. See 00010 documentation. 00011 00012 Creation Date..: 2006-03-18 00013 Last change....: 2006-06-25 00014 00015 To adapt the bootloader to your hardware, you have to modify the following files: 00016 - bootloaderconfig.h (this file): 00017 Define the condition when the bootloader should be started and the initialisation of the 00018 hardware 00019 - usbconfig.h: 00020 Define the used data line pins. You have to adapt USB_CFG_IOPORT, USB_CFG_DMINUS_BIT and 00021 USB_CFG_DPLUS_BIT to your hardware. The rest should be left unchanged. 00022 */ 00023 00024 #ifndef __bootloaderconfig_h_included__ 00025 #define __bootloaderconfig_h_included__ 00026 00027 #define BOOTLOADER_INIT \ 00028 PORTB = 0xff; \ 00029 DDRB = 0; \ 00030 PORTC = 0xff; \ 00031 DDRC = _BV(PC5); \ 00032 PORTD = 0xfa; \ 00033 DDRD = 0x02; 00034 00035 #define BOOTLOADER_CONDITION (bit_is_clear(PINC,4)) 00036 00037 #endif /* __bootloader_h_included__ */