bootloaderconfig.h

来自「USB Boot Loader for ATMega 8 编译器:GCCAVR」· C头文件 代码 · 共 38 行

H
38
字号
/*  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 + =
减小字号Ctrl + -
显示快捷键?