Last active
August 19, 2022 18:29
-
-
Save ungeskriptet/8dbf4aa0f44e27e5cb35b8ffda391f33 to your computer and use it in GitHub Desktop.
Another very stupid tool to generate a pdc map for pinctrl from downstream.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | |
3 | |
4 | |
5 | |
6 | |
9 | |
10 | |
11 | |
22 | |
24 | |
26 | |
30 | |
31 | |
32 | |
33 | |
34 | |
36 | |
37 | |
38 | |
39 | |
41 | |
42 | |
43 | |
45 | |
47 | |
48 | |
49 | |
50 | |
52 | |
53 | |
55 | |
56 | |
57 | |
58 | |
59 | |
62 | |
64 | |
65 | |
66 | |
67 | |
68 | |
69 | |
70 | |
73 | |
74 | |
78 | |
82 | |
84 | |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |
95 | |
96 | |
98 | |
101 | |
104 | |
109 | |
110 | |
113 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
520 | |
530 | |
522 | |
550 | |
521 | |
537 | |
560 | |
531 | |
570 | |
541 | |
532 | |
536 | |
513 | |
561 | |
542 | |
523 | |
571 | |
533 | |
543 | |
552 | |
616 | |
515 | |
514 | |
553 | |
562 | |
516 | |
517 | |
518 | |
519 | |
617 | |
572 | |
525 | |
526 | |
563 | |
527 | |
528 | |
554 | |
524 | |
573 | |
529 | |
535 | |
512 | |
534 | |
544 | |
551 | |
511 | |
510 | |
538 | |
618 | |
539 | |
540 | |
545 | |
546 | |
547 | |
548 | |
549 | |
555 | |
564 | |
609 | |
556 | |
557 | |
558 | |
614 | |
619 | |
559 | |
565 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
map = open("map.txt", "r") | |
id = open("id.txt", "r") | |
while True: | |
var1 = id.readline() | |
var2 = map.readline() | |
if var2.startswith("5"): | |
var2 = int(var2) - 480 | |
elif var2.startswith("6"): | |
var2 = int(var2) - 515 | |
elif not var2: | |
break | |
print("{%s, %s}" %(str(var1).replace('\n',''), str(var2).replace('\n',''))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment