Subversion Repositories group.NITPanels

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 24
Line 1... Line 1...
1
#ifndef _CONFIG_H_
1
#ifndef _CONFIG_HW02_H_
2
#define _CONFIG_H_
2
#define _CONFIG_HW02_H_
3
 
-
 
4
#define OSFRADIO
-
 
5
#define HW_VERSION 0x01
-
 
6
#define SW_VERSION 0x01
-
 
7
 
3
 
8
#define I2C_SLAVE_ADDR  0x26
4
#ifndef _CONFIG_H_
-
 
5
#error "Define config.h rather then this one"
-
 
6
#endif
9
 
7
 
10
#define DISPLAY_REFRESH 2
-
 
11
/*
8
/*
12
 * Setup for the shift register
9
 * Setup for the shift register
13
 */
10
 */
14
#define HC595_PORT		PORTA
11
#define HC595_PORT		PORTA
15
#define HC595_DDR		DDRA
12
#define HC595_DDR		DDRA
16
#define	HC595_DS_PIN	PA0
13
#define	HC595_DS_PIN	PA0
17
#define	HC595_STCP_PIN	PA1
14
#define	HC595_STCP_PIN	PA1
18
#define	HC595_SHCP_PIN	PA2
15
#define	HC595_SHCP_PIN	PA2
19
 
16
 
20
#define ROT_1_PIN		PINB
17
#define ROT_PIN		PINB
21
#define ROT_1A_PIN		PCINT8
18
#define ROT_1A_PIN		PCINT8
22
#define ROT_1B_PIN		PCINT9
19
#define ROT_1B_PIN		PCINT9
23
 
20
 
24
// Decimal point output pin
21
// Decimal point output pin
25
//  - for drawing the DP on 7 segment
22
//  - for drawing the DP on 7 segment
Line 35... Line 32...
35
#define SB_INPUT		PINB
32
#define SB_INPUT		PINB
36
#define SB_PIN			PB2
33
#define SB_PIN			PB2
37
#define FB_INPUT		PINA
34
#define FB_INPUT		PINA
38
#define FB_PIN			PA7
35
#define FB_PIN			PA7
39
 
36
 
-
 
37
 
-
 
38
 
40
#endif
39
#endif
41
 
40