Project

General

Profile

Statistics
| Revision:

root / trunk / common / toolbox_pindefs.h @ 201

History | View | Annotate | Download (463 Bytes)

1
#ifndef _TOOLBOX_PIN_DEFS_H_
2
#define _TOOLBOX_PIN_DEFS_H_
3

    
4
#include <avr/io.h>
5

    
6
// Relay
7
#define RELAY_PORT  PORTD
8
#define RELAY       _BV(PORTD4)
9

    
10
// AC Voltage Sense
11
#define VAC_PORT    PORTD
12
#define VAC_SENSE   _BV(PIND3)
13

    
14
// Buttons
15
#define BUT_PORT    PINB
16
#define BUT_RED     _BV(PINB4)
17
#define BUT_BLACK   _BV(PINB3)
18

    
19
// LEDs
20
#define LED_PORT    PORTB
21
#define LED_GREEN   _BV(PORTB2)
22
#define LED_YELLOW  _BV(PORTB1)
23
#define LED_RED     _BV(PORTB0)
24

    
25
#endif