Subversion Repositories group.NITPanels

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
24 pfowler 1
#ifndef _CONFIG_HW02_H_
2
#define _CONFIG_HW02_H_
3
 
2 pfowler 4
#ifndef _CONFIG_H_
24 pfowler 5
#error "Define config.h rather then this one"
6
#endif
2 pfowler 7
 
8
/*
9
 * Setup for the shift register
10
 */
11
#define HC595_PORT		PORTA
12
#define HC595_DDR		DDRA
13
#define	HC595_DS_PIN	PA0
14
#define	HC595_STCP_PIN	PA1
15
#define	HC595_SHCP_PIN	PA2
16
 
24 pfowler 17
#define ROT_PIN		PINB
2 pfowler 18
#define ROT_1A_PIN		PCINT8
19
#define ROT_1B_PIN		PCINT9
20
 
21
// Decimal point output pin
22
//  - for drawing the DP on 7 segment
23
#define DP_PORT			PORTA
24
#define DP_PIN			PA5
25
 
26
// Blank output pin
27
//  - for blanking the 4511 during update
28
#define BL_PORT			PORTA
29
#define BL_PIN			PA3
30
 
31
// Flip & Swap buttons
32
#define SB_INPUT		PINB
33
#define SB_PIN			PB2
34
#define FB_INPUT		PINA
35
#define FB_PIN			PA7
36
 
24 pfowler 37
 
38
 
2 pfowler 39
#endif
40