📄 bootloaderconfig.h
字号:
/* bootloaderconfig.h - part of AVRUSBBoot firmware Thomas Fischl <tfischl@gmx.de> License: The project is built with AVR USB driver by Objective Development, which is published under a proprietary Open Source license. To conform with this license, USBasp is distributed under the same license conditions. See documentation. Creation Date..: 2006-03-18 Last change....: 2006-06-25 To adapt the bootloader to your hardware, you have to modify the following files: - bootloaderconfig.h (this file): Define the condition when the bootloader should be started and the initialisation of the hardware - usbconfig.h: Define the used data line pins. You have to adapt USB_CFG_IOPORT, USB_CFG_DMINUS_BIT and USB_CFG_DPLUS_BIT to your hardware. The rest should be left unchanged.*/#ifndef __bootloaderconfig_h_included__#define __bootloaderconfig_h_included__#define BOOTLOADER_INIT \ PORTB = 0xff; \ DDRB = 0; \ PORTC = 0xff; \ DDRC = 0; \ PORTD = 0xfa; \ DDRD = 0x02;#define BOOTLOADER_CONDITION ((PINC & (1 << PC2)) == 0)#endif /* __bootloader_h_included__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -