#ifndef TARGET_H_ #define TARGET_H_ /* *********************************************************************** */ #if defined(CONFIG_ispprog) /* * using ATmega16 @7.3728MHz: * Fuse H: 0xDA (512 words bootloader, jtag disabled) * Fuse L: 0xFF (ext. Crystal) */ #define F_CPU 7372800 #define BAUDRATE 115200 #define TIMER_RELOAD (0xFF - 72) /* 10ms @7.3728MHz */ #define ISP_RESET PORTB1 /* to target */ #define ISP_LED PORTB3 /* low active */ #define ISP_MOSI PORTB5 /* to target */ #define ISP_MISO PORTB6 /* to target */ #define ISP_SCK PORTB7 /* to target */ #define RESET_IN PORTD3 /* high active */ #define ISP_INACTIVE() { /* ISP_SCK, ISP_MOSI and ISP_RESET are inputs */ \ DDRB &= ~((1<