Quelltext /~heha/mb-iwp/Antriebe/Schrittmotorsteuerung/Firmware.zip/Bootloader/defines.h

/* definitions generated by preprocessor, copy into defines.h */
#ifndef	PPINC
#define	_ATMEGA3290	// device select: _ATMEGAxxxx
#define	_B512		// boot size select: _Bxxxx (words), powers of two only
#include	<avr/io.h>

/* define pin for enter-self-prog-mode */
#define	PROGPIN		PINC
#define	PROG_NO		PC3

/* baud rate register value calculation */
#define	CPU_FREQ	8000000
#define	BAUD_RATE	9600
#define	BRREG_VALUE	51

/* definitions for SPM control */
#define	SPMCR_REG	SPMCSR
#define	PAGESIZE	64
#define	APP_END		0x1C00
//#define	LARGE_MEMORY

/* definitions for device recognition */
#define	PARTCODE		0x77
#define	SIGNATURE_BYTE_1	0x1E
#define	SIGNATURE_BYTE_2	0x93
#define	SIGNATURE_BYTE_3	0x07

/* indicate that preprocessor result is included */
#define	PPINC
#endif
Vorgefundene Kodierung: ASCII (7 bit)2