19 lines
373 B
C
19 lines
373 B
C
#ifndef LOWLEVEL_H
|
|
#define LOWLEVEL_H
|
|
|
|
#include <avr/io.h>
|
|
|
|
/* Check for SPM Control Register in processor. */
|
|
#if defined (SPMCSR)
|
|
# define SPM_REG SPMCSR
|
|
#elif defined (SPMCR)
|
|
# define SPM_REG SPMCR
|
|
#else
|
|
# error AVR processor does not provide bootloader support!
|
|
#endif
|
|
|
|
unsigned int read_program_memory (unsigned int,unsigned char);
|
|
|
|
|
|
#endif
|