Merge branch 'master' of ssh://repo.or.cz/srv/git/ctl24
[ctl24.git] / avrusbboot.2006-06-25 / firmware / bootloaderconfig.h
blob631cdd4f188cb3506237e1548c060a99f42a3b58
1 /*
2 bootloaderconfig.h - part of AVRUSBBoot firmware
4 Thomas Fischl <tfischl@gmx.de>
6 License:
7 The project is built with AVR USB driver by Objective Development, which is
8 published under a proprietary Open Source license. To conform with this
9 license, USBasp is distributed under the same license conditions. See
10 documentation.
12 Creation Date..: 2006-03-18
13 Last change....: 2006-06-25
15 To adapt the bootloader to your hardware, you have to modify the following files:
16 - bootloaderconfig.h (this file):
17 Define the condition when the bootloader should be started and the initialisation of the
18 hardware
19 - usbconfig.h:
20 Define the used data line pins. You have to adapt USB_CFG_IOPORT, USB_CFG_DMINUS_BIT and
21 USB_CFG_DPLUS_BIT to your hardware. The rest should be left unchanged.
24 #ifndef __bootloaderconfig_h_included__
25 #define __bootloaderconfig_h_included__
27 #define BOOTLOADER_INIT \
28 PORTB = 0xff; \
29 DDRB = 0; \
30 PORTC = 0xff; \
31 DDRC = 0; \
32 PORTD = 0xfa; \
33 DDRD = 0x02;
35 #define BOOTLOADER_CONDITION ((PINC & (1 << PC2)) == 0)
37 #endif /* __bootloader_h_included__ */