Project

General

Profile

Statistics
| Revision:

root / trunk / cardbox / cardbox.h @ 280

History | View | Annotate | Download (449 Bytes)

1 280 kwoo
#ifndef __CARDBOX_H__
2
#define __CARDBOX_H__
3
4
#include <util/delay.h>
5
#include "rs485_int.h"
6
#include <avr/interrupt.h>
7
#include <avr/io.h>
8
9
#include <tooltron.h>
10
#include "timer.h"
11
#include "packet.h"
12
#include "cardreader.h"
13
14
/***** LED definitions *****/
15
#define LEDPORT     PORTC
16
#define LEDDDR      DDRC
17
#define LED_RED (_BV(PC5))
18
#define LED_YELLOW (_BV(PC4))
19
#define LED_GREEN (_BV(PC3))
20
21
void toggle_led(uint8_t which, uint8_t state);
22
23
#endif