-
Notifications
You must be signed in to change notification settings - Fork 0
/
hal.xml
91 lines (81 loc) · 2.33 KB
/
hal.xml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0" encoding="utf-8" ?>
<HAL>
<templates>
<template name="led">
<pin type="output" initialvalue="inactive" />
<activelow />
</template>
<template name="relais">
<pin type="output" initialvalue="inactive" />
</template>
<template name="diginput">
<pin type="input" initialpullup="active" />
</template>
<template name="diginputinv">
<pin type="input" initialpullup="active" />
<activelow />
</template>
<template name="digswitchinput">
<pin type="input" initialpullup="active" />
<activelow />
</template>
<template name="digoutput">
<pin type="output" initialvalue="inactive" />
</template>
<template name="digoutputinv">
<pin type="output" initialvalue="inactive" />
<activelow />
</template>
<template name="digio">
<pin type="io" initialstate="input" initialpullup="inactive" />
</template>
</templates>
<portpin name="PD0" template="digoutput">
<description value="Digit4" />
</portpin>
<portpin name="PD1" template="digoutputinv">
<description value="SegmentD" />
</portpin>
<portpin name="PD2" template="digoutputinv">
<description value="SegmentC" />
</portpin>
<portpin name="PC1" template="digoutput">
<description value="Digit3" />
</portpin>
<portpin name="PD4" template="digoutput">
<description value="Digit2" />
</portpin>
<portpin name="PD7" template="digoutput">
<description value="Digit1" />
</portpin>
<portpin name="PB0" template="digoutputinv">
<description value="SegmentE" />
</portpin>
<portpin name="PD6" template="digoutputinv">
<description value="SegmentG" />
</portpin>
<portpin name="PD5" template="digoutputinv">
<description value="SegmentF" />
</portpin>
<portpin name="PB1" template="digoutputinv">
<description value="SegmentDot" />
</portpin>
<portpin name="PB2" template="digoutputinv">
<description value="SegmentA" />
</portpin>
<portpin name="PC0" template="digoutputinv">
<description value="SegmentB" />
</portpin>
<portpin name="PC5" template="digswitchinput">
<description value="SwitchOuter" />
</portpin>
<portpin name="PC4" template="digswitchinput">
<description value="SwitchInner" />
</portpin>
<portpin name="PC3" template="digswitchinput">
<description value="SwitchExternal" />
</portpin>
<portpin name="PD3" template="digio">
<description value="Buzzer" />
</portpin>
</HAL>