Compiled ATmega16 port example project with IAR Embedded workbench.

This commit is contained in:
skarg
2008-01-07 21:41:15 +00:00
parent 9f1dc8223f
commit a8e679f8d7
10 changed files with 2381 additions and 24 deletions
+12 -9
View File
@@ -25,16 +25,19 @@
#ifndef HARDWARE_H
#define HARDWARE_H
/* The processor clock frequency */
#define F_CPU (7372800)
#if !defined(F_CPU)
/* The processor clock frequency */
#define F_CPU (7372800)
#endif
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#if defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ASM__)
#include <iom168.h>
#else
#if !defined(__AVR_ATmega168__)
#error Firmware is configured for ATmega168 only (-mmcu=atmega168)
#endif
#endif
#include "iar2gcc.h"
#include "avr035.h"
#if !defined(__AVR_ATmega168__)
#error Firmware is configured for ATmega168 only.
#endif
#endif