8,15 → 8,18 |
|
#if defined (__AVR_ATmega644__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
//#define SYSCLK 16000000L //Quarz Frequenz in Hz |
#endif |
|
#if defined (__AVR_ATmega644P__) |
#define SYSCLK 20000000L //Quarz Frequenz in Hz |
#endif |
|
// neue Hardware |
#define ROT_OFF {if(PlatinenVersion == 10) PORTB &=~0x01; else PORTB |= 0x01;} |
#define ROT_ON {if(PlatinenVersion == 10) PORTB |= 0x01; else PORTB &=~0x01;} |
#define ROT_FLASH PORTB ^= 0x01 |
#define GRN_OFF PORTB &=~0x02 |
#define GRN_ON PORTB |= 0x02 |
#define GRN_OFF PORTB &=~0x02 |
#define GRN_ON PORTB |= 0x02 |
#define GRN_FLASH PORTB ^= 0x02 |
|
|
51,7 → 54,7 |
#define CFG_LOOP_LINKS 0x04 |
#define CFG_LOOP_RECHTS 0x08 |
|
//#define SYSCLK |
//#define SYSCLK |
//extern unsigned long SYSCLK; |
extern volatile int i_Nick[20],i_Roll[20],DiffNick,DiffRoll; |
extern volatile unsigned char SenderOkay; |
77,7 → 80,9 |
#include "_Settings.h" |
#include "printf_P.h" |
#include "timer0.h" |
#include "timer2.h" |
#include "uart.h" |
#include "uart1.h" |
#include "analog.h" |
#include "twimaster.h" |
#include "menu.h" |
95,7 → 100,7 |
|
|
#define DELAY_US(x) ((unsigned int)( (x) * 1e-6 * F_CPU )) |
|
|
#endif //_MAIN_H |
|
|