summaryrefslogtreecommitdiff
path: root/src/pin.h
blob: d8a17ee878c79156026f3967497f6a6b0f60df05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef PIN_H_
#define PIN_H_

//  ЗАДАЕМ ИСПОЛЬЗУЕМЫЕ ПИНы:
// СЕГМЕНТЫ:
#define SEG_A PB7
#define DDR_A DDRB
#define PORT_A PORTB
#define SEG_B PB6
#define DDR_B DDRB
#define PORT_B PORTB
#define SEG_C PB5
#define DDR_C DDRB
#define PORT_C PORTB
#define SEG_D PB4
#define DDR_D DDRB
#define PORT_D PORTB
#define SEG_E PB3
#define DDR_E DDRB
#define PORT_E PORTB
#define SEG_F PB2
#define DDR_F DDRB
#define PORT_F PORTB
#define SEG_G PB1
#define DDR_G DDRB
#define PORT_G PORTB
#define SEG_H PB0
#define DDR_H DDRB
#define PORT_H PORTB
// РАЗРЯДЫ:
#define RAZ_1 PD2
#define DDR_RAZ1 DDRD
#define PORT_RAZ1 PORTD
#define RAZ_2 PD3
#define DDR_RAZ2 DDRD
#define PORT_RAZ2 PORTD
#define RAZ_3 PD4
#define DDR_RAZ3 DDRD
#define PORT_RAZ3 PORTD
#define RAZ_4 PD5
#define DDR_RAZ4 DDRD
#define PORT_RAZ4 PORTD
#define RAZ_5 PD6
#define DDR_RAZ5 DDRD
#define PORT_RAZ5 PORTD

//-----------------------------------
//  Инициализация PIN:
void init_pin(void);

#endif