// **************************************************************************
// * Header:   LLICHT.H                                                     *
// **************************************************************************
// * Funktion: Definitionen für LLICHT.C                                    *
// **************************************************************************
// * Autor:    Pramberger Peter                                             *
// **************************************************************************

// ——————- Definitionen ——————-
#define ulong unsigned long
#define uword unsigned int
#define ubyte unsigned char
#define bool bit

#define EXTERNAL_INT2  CC10IE
#define EXTERNAL_INT3  CC11IE
#define TIMER3_INT     T3IE
#define TIMER_3        T3

#define CC10INT  0x1A
#define CC11INT  0x1B
#define T3INT    0x23

// ———————— Makros ————————
#define GT1_LoadTmr(TimerNr,Value)  TimerNr = Value
#define INT_EnableInterrupt(IntName)  IntName = 1
#define INT_DisableInterrupt(IntName)  IntName = 0
#define IO_WritePort(Port,Data)  Port = Data

// ——————— Prototypen ———————
void GT1_Init (void);
void INT_Init (void);
void IO_Init (void);

// —————- Projekt-Includes —————-
#include <reg161.h>
#include <intrins.h>