Subversion Repositories group.NITPanels

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
24 pfowler 1
#ifndef _CONFIG_HW02_H_
2
#define _CONFIG_HW02_H_
3
 
4
#ifndef _CONFIG_H_
5
#error "Define config.h rather then this one"
6
#endif
7
 
8
/*
9
 * Setup for the shift register
10
 */
11
#define HC595_PORT		PORTD
12
#define HC595_DDR		DDRD
13
#define	HC595_DS_PIN	PD2
14
#define	HC595_STCP_PIN	PD4
15
#define	HC595_SHCP_PIN	PD3
16
 
17
#define ROT_PIN			PINB
18
#define ROT_1A_PIN		PCINT3		// Outer
19
#define ROT_1B_PIN		PCINT2
20
#define ROT_2A_PIN		PCINT1		// Inner
21
#define ROT_2B_PIN		PCINT0
22
 
23
// Decimal point output pin
24
//  - for drawing the DP on 7 segment
25
#define DP_PORT			PORTD
26
#define DP_PIN			PD0
27
 
28
// Blank output pin
29
//  - for blanking the 4511 during update
30
#define BL_PORT			PORTD
31
#define BL_PIN			PD1
32
 
33
// Flip & Swap buttons
34
#define SB_INPUT		PINB
35
#define SB_PIN			PB4
36
#define FB_INPUT		PINB
37
#define FB_PIN			PB6
38
 
39
// i2c addr set
40
#define I2CADDR_PIN		PINA
41
#define I2CADDR_0		PA0
42
#define I2CADDR_1		PA1
43
 
44
// Config set
45
#define CONFSW_PIN		PIND
46
#define CONFSW_0		PD5
47
#define CONFSW_1		PD6
48
 
49
 
50
#endif
51