-
Notifications
You must be signed in to change notification settings - Fork 1
/
versions.py
61 lines (39 loc) · 1015 Bytes
/
versions.py
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
from codegen import proto
def make_definitions():
yield "f302", make_f302()
yield "f303", make_f303()
yield "f303e", make_f303e()
yield "f333", make_f333()
yield "f373", make_f373()
def make_f302():
gpio = proto.gpio_prototypes()
del gpio["E"]
del gpio["G"]
del gpio["H"]
return gpio
def make_f303():
gpio = proto.gpio_prototypes()
del gpio["C"].registers["lckr"]
del gpio["E"].registers["lckr"]
del gpio["F"].registers["lckr"]
del gpio["F"].registers["moder"].fields["moder5"]
del gpio["G"]
del gpio["H"]
return gpio
def make_f303e():
gpio = proto.gpio_prototypes()
return gpio
def make_f333():
gpio = proto.gpio_prototypes()
del gpio["E"]
del gpio["G"]
del gpio["H"]
return gpio
def make_f373():
gpio = proto.gpio_prototypes()
del gpio["C"].registers["lckr"]
del gpio["E"].registers["lckr"]
del gpio["F"].registers["lckr"]
del gpio["G"]
del gpio["H"]
return gpio