summaryrefslogtreecommitdiff
path: root/include/dt-bindings/pinctrl/stm32h7-pinfunc.h
blob: cb673b5e8e1ef9fbdc310ca12faff7c1d7e909d5 (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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
#ifndef _DT_BINDINGS_STM32H7_PINFUNC_H
#define _DT_BINDINGS_STM32H7_PINFUNC_H

#define STM32H7_PA0_FUNC_GPIO 0x0
#define STM32H7_PA0_FUNC_TIM2_CH1_TIM2_ETR 0x2
#define STM32H7_PA0_FUNC_TIM5_CH1 0x3
#define STM32H7_PA0_FUNC_TIM8_ETR 0x4
#define STM32H7_PA0_FUNC_TIM15_BKIN 0x5
#define STM32H7_PA0_FUNC_USART2_CTS_NSS 0x8
#define STM32H7_PA0_FUNC_UART4_TX 0x9
#define STM32H7_PA0_FUNC_SDMMC2_CMD 0xa
#define STM32H7_PA0_FUNC_SAI2_SD_B 0xb
#define STM32H7_PA0_FUNC_ETH_MII_CRS 0xc
#define STM32H7_PA0_FUNC_EVENTOUT 0x10
#define STM32H7_PA0_FUNC_ANALOG 0x11

#define STM32H7_PA1_FUNC_GPIO 0x100
#define STM32H7_PA1_FUNC_TIM2_CH2 0x102
#define STM32H7_PA1_FUNC_TIM5_CH2 0x103
#define STM32H7_PA1_FUNC_LPTIM3_OUT 0x104
#define STM32H7_PA1_FUNC_TIM15_CH1N 0x105
#define STM32H7_PA1_FUNC_USART2_RTS 0x108
#define STM32H7_PA1_FUNC_UART4_RX 0x109
#define STM32H7_PA1_FUNC_QUADSPI_BK1_IO3 0x10a
#define STM32H7_PA1_FUNC_SAI2_MCK_B 0x10b
#define STM32H7_PA1_FUNC_ETH_MII_RX_CLK_ETH_RMII_REF_CLK 0x10c
#define STM32H7_PA1_FUNC_LCD_R2 0x10f
#define STM32H7_PA1_FUNC_EVENTOUT 0x110
#define STM32H7_PA1_FUNC_ANALOG 0x111

#define STM32H7_PA2_FUNC_GPIO 0x200
#define STM32H7_PA2_FUNC_TIM2_CH3 0x202
#define STM32H7_PA2_FUNC_TIM5_CH3 0x203
#define STM32H7_PA2_FUNC_LPTIM4_OUT 0x204
#define STM32H7_PA2_FUNC_TIM15_CH1 0x205
#define STM32H7_PA2_FUNC_USART2_TX 0x208
#define STM32H7_PA2_FUNC_SAI2_SCK_B 0x209
#define STM32H7_PA2_FUNC_ETH_MDIO 0x20c
#define STM32H7_PA2_FUNC_MDIOS_MDIO 0x20d
#define STM32H7_PA2_FUNC_LCD_R1 0x20f
#define STM32H7_PA2_FUNC_EVENTOUT 0x210
#define STM32H7_PA2_FUNC_ANALOG 0x211

#define STM32H7_PA3_FUNC_GPIO 0x300
#define STM32H7_PA3_FUNC_TIM2_CH4 0x302
#define STM32H7_PA3_FUNC_TIM5_CH4 0x303
#define STM32H7_PA3_FUNC_LPTIM5_OUT 0x304
#define STM32H7_PA3_FUNC_TIM15_CH2 0x305
#define STM32H7_PA3_FUNC_USART2_RX 0x308
#define STM32H7_PA3_FUNC_LCD_B2 0x30a
#define STM32H7_PA3_FUNC_OTG_HS_ULPI_D0 0x30b
#define STM32H7_PA3_FUNC_ETH_MII_COL 0x30c
#define STM32H7_PA3_FUNC_LCD_B5 0x30f
#define STM32H7_PA3_FUNC_EVENTOUT 0x310
#define STM32H7_PA3_FUNC_ANALOG 0x311

#define STM32H7_PA4_FUNC_GPIO 0x400
#define STM32H7_PA4_FUNC_TIM5_ETR 0x403
#define STM32H7_PA4_FUNC_SPI1_NSS_I2S1_WS 0x406
#define STM32H7_PA4_FUNC_SPI3_NSS_I2S3_WS 0x407
#define STM32H7_PA4_FUNC_USART2_CK 0x408
#define STM32H7_PA4_FUNC_SPI6_NSS 0x409
#define STM32H7_PA4_FUNC_OTG_HS_SOF 0x40d
#define STM32H7_PA4_FUNC_DCMI_HSYNC 0x40e
#define STM32H7_PA4_FUNC_LCD_VSYNC 0x40f
#define STM32H7_PA4_FUNC_EVENTOUT 0x410
#define STM32H7_PA4_FUNC_ANALOG 0x411

#define STM32H7_PA5_FUNC_GPIO 0x500
#define STM32H7_PA5_FUNC_TIM2_CH1_TIM2_ETR 0x502
#define STM32H7_PA5_FUNC_TIM8_CH1N 0x504
#define STM32H7_PA5_FUNC_SPI1_SCK_I2S1_CK 0x506
#define STM32H7_PA5_FUNC_SPI6_SCK 0x509
#define STM32H7_PA5_FUNC_OTG_HS_ULPI_CK 0x50b
#define STM32H7_PA5_FUNC_LCD_R4 0x50f
#define STM32H7_PA5_FUNC_EVENTOUT 0x510
#define STM32H7_PA5_FUNC_ANALOG 0x511

#define STM32H7_PA6_FUNC_GPIO 0x600
#define STM32H7_PA6_FUNC_TIM1_BKIN 0x602
#define STM32H7_PA6_FUNC_TIM3_CH1 0x603
#define STM32H7_PA6_FUNC_TIM8_BKIN 0x604
#define STM32H7_PA6_FUNC_SPI1_MISO_I2S1_SDI 0x606
#define STM32H7_PA6_FUNC_SPI6_MISO 0x609
#define STM32H7_PA6_FUNC_TIM13_CH1 0x60a
#define STM32H7_PA6_FUNC_TIM8_BKIN_COMP12 0x60b
#define STM32H7_PA6_FUNC_MDIOS_MDC 0x60c
#define STM32H7_PA6_FUNC_TIM1_BKIN_COMP12 0x60d
#define STM32H7_PA6_FUNC_DCMI_PIXCLK 0x60e
#define STM32H7_PA6_FUNC_LCD_G2 0x60f
#define STM32H7_PA6_FUNC_EVENTOUT 0x610
#define STM32H7_PA6_FUNC_ANALOG 0x611

#define STM32H7_PA7_FUNC_GPIO 0x700
#define STM32H7_PA7_FUNC_TIM1_CH1N 0x702
#define STM32H7_PA7_FUNC_TIM3_CH2 0x703
#define STM32H7_PA7_FUNC_TIM8_CH1N 0x704
#define STM32H7_PA7_FUNC_SPI1_MOSI_I2S1_SDO 0x706
#define STM32H7_PA7_FUNC_SPI6_MOSI 0x709
#define STM32H7_PA7_FUNC_TIM14_CH1 0x70a
#define STM32H7_PA7_FUNC_ETH_MII_RX_DV_ETH_RMII_CRS_DV 0x70c
#define STM32H7_PA7_FUNC_FMC_SDNWE 0x70d
#define STM32H7_PA7_FUNC_EVENTOUT 0x710
#define STM32H7_PA7_FUNC_ANALOG 0x711

#define STM32H7_PA8_FUNC_GPIO 0x800
#define STM32H7_PA8_FUNC_MCO1 0x801
#define STM32H7_PA8_FUNC_TIM1_CH1 0x802
#define STM32H7_PA8_FUNC_HRTIM_CHB2 0x803
#define STM32H7_PA8_FUNC_TIM8_BKIN2 0x804
#define STM32H7_PA8_FUNC_I2C3_SCL 0x805
#define STM32H7_PA8_FUNC_USART1_CK 0x808
#define STM32H7_PA8_FUNC_OTG_FS_SOF 0x80b
#define STM32H7_PA8_FUNC_UART7_RX 0x80c
#define STM32H7_PA8_FUNC_TIM8_BKIN2_COMP12 0x80d
#define STM32H7_PA8_FUNC_LCD_B3 0x80e
#define STM32H7_PA8_FUNC_LCD_R6 0x80f
#define STM32H7_PA8_FUNC_EVENTOUT 0x810
#define STM32H7_PA8_FUNC_ANALOG 0x811

#define STM32H7_PA9_FUNC_GPIO 0x900
#define STM32H7_PA9_FUNC_TIM1_CH2 0x902
#define STM32H7_PA9_FUNC_HRTIM_CHC1 0x903
#define STM32H7_PA9_FUNC_LPUART1_TX 0x904
#define STM32H7_PA9_FUNC_I2C3_SMBA 0x905
#define STM32H7_PA9_FUNC_SPI2_SCK_I2S2_CK 0x906
#define STM32H7_PA9_FUNC_USART1_TX 0x908
#define STM32H7_PA9_FUNC_CAN1_RXFD 0x90a
#define STM32H7_PA9_FUNC_ETH_TX_ER 0x90c
#define STM32H7_PA9_FUNC_DCMI_D0 0x90e
#define STM32H7_PA9_FUNC_LCD_R5 0x90f
#define STM32H7_PA9_FUNC_EVENTOUT 0x910
#define STM32H7_PA9_FUNC_ANALOG 0x911

#define STM32H7_PA10_FUNC_GPIO 0xa00
#define STM32H7_PA10_FUNC_TIM1_CH3 0xa02
#define STM32H7_PA10_FUNC_HRTIM_CHC2 0xa03
#define STM32H7_PA10_FUNC_LPUART1_RX 0xa04
#define STM32H7_PA10_FUNC_USART1_RX 0xa08
#define STM32H7_PA10_FUNC_CAN1_TXFD 0xa0a
#define STM32H7_PA10_FUNC_OTG_FS_ID 0xa0b
#define STM32H7_PA10_FUNC_MDIOS_MDIO 0xa0c
#define STM32H7_PA10_FUNC_LCD_B4 0xa0d
#define STM32H7_PA10_FUNC_DCMI_D1 0xa0e
#define STM32H7_PA10_FUNC_LCD_B1 0xa0f
#define STM32H7_PA10_FUNC_EVENTOUT 0xa10
#define STM32H7_PA10_FUNC_ANALOG 0xa11

#define STM32H7_PA11_FUNC_GPIO 0xb00
#define STM32H7_PA11_FUNC_TIM1_CH4 0xb02
#define STM32H7_PA11_FUNC_HRTIM_CHD1 0xb03
#define STM32H7_PA11_FUNC_LPUART1_CTS 0xb04
#define STM32H7_PA11_FUNC_SPI2_NSS_I2S2_WS 0xb06
#define STM32H7_PA11_FUNC_UART4_RX 0xb07
#define STM32H7_PA11_FUNC_USART1_CTS_NSS 0xb08
#define STM32H7_PA11_FUNC_CAN1_RX 0xb0a
#define STM32H7_PA11_FUNC_OTG_FS_DM 0xb0b
#define STM32H7_PA11_FUNC_LCD_R4 0xb0f
#define STM32H7_PA11_FUNC_EVENTOUT 0xb10
#define STM32H7_PA11_FUNC_ANALOG 0xb11

#define STM32H7_PA12_FUNC_GPIO 0xc00
#define STM32H7_PA12_FUNC_TIM1_ETR 0xc02
#define STM32H7_PA12_FUNC_HRTIM_CHD2 0xc03
#define STM32H7_PA12_FUNC_LPUART1_RTS 0xc04
#define STM32H7_PA12_FUNC_SPI2_SCK_I2S2_CK 0xc06
#define STM32H7_PA12_FUNC_UART4_TX 0xc07
#define STM32H7_PA12_FUNC_USART1_RTS 0xc08
#define STM32H7_PA12_FUNC_SAI2_FS_B 0xc09
#define STM32H7_PA12_FUNC_CAN1_TX 0xc0a
#define STM32H7_PA12_FUNC_OTG_FS_DP 0xc0b
#define STM32H7_PA12_FUNC_LCD_R5 0xc0f
#define STM32H7_PA12_FUNC_EVENTOUT 0xc10
#define STM32H7_PA12_FUNC_ANALOG 0xc11

#define STM32H7_PA13_FUNC_GPIO 0xd00
#define STM32H7_PA13_FUNC_JTMS_SWDIO 0xd01
#define STM32H7_PA13_FUNC_EVENTOUT 0xd10
#define STM32H7_PA13_FUNC_ANALOG 0xd11

#define STM32H7_PA14_FUNC_GPIO 0xe00
#define STM32H7_PA14_FUNC_JTCK_SWCLK 0xe01
#define STM32H7_PA14_FUNC_EVENTOUT 0xe10
#define STM32H7_PA14_FUNC_ANALOG 0xe11

#define STM32H7_PA15_FUNC_GPIO 0xf00
#define STM32H7_PA15_FUNC_JTDI 0xf01
#define STM32H7_PA15_FUNC_TIM2_CH1_TIM2_ETR 0xf02
#define STM32H7_PA15_FUNC_HRTIM_FLT1 0xf03
#define STM32H7_PA15_FUNC_HDMI_CEC 0xf05
#define STM32H7_PA15_FUNC_SPI1_NSS_I2S1_WS 0xf06
#define STM32H7_PA15_FUNC_SPI3_NSS_I2S3_WS 0xf07
#define STM32H7_PA15_FUNC_SPI6_NSS 0xf08
#define STM32H7_PA15_FUNC_UART4_RTS 0xf09
#define STM32H7_PA15_FUNC_UART7_TX 0xf0c
#define STM32H7_PA15_FUNC_DSI_TE 0xf0e
#define STM32H7_PA15_FUNC_EVENTOUT 0xf10
#define STM32H7_PA15_FUNC_ANALOG 0xf11

#define STM32H7_PB0_FUNC_GPIO 0x1000
#define STM32H7_PB0_FUNC_TIM1_CH2N 0x1002
#define STM32H7_PB0_FUNC_TIM3_CH3 0x1003
#define STM32H7_PB0_FUNC_TIM8_CH2N 0x1004
#define STM32H7_PB0_FUNC_DFSDM_CKOUT 0x1007
#define STM32H7_PB0_FUNC_UART4_CTS 0x1009
#define STM32H7_PB0_FUNC_LCD_R3 0x100a
#define STM32H7_PB0_FUNC_OTG_HS_ULPI_D1 0x100b
#define STM32H7_PB0_FUNC_ETH_MII_RXD2 0x100c
#define STM32H7_PB0_FUNC_LCD_G1 0x100f
#define STM32H7_PB0_FUNC_EVENTOUT 0x1010
#define STM32H7_PB0_FUNC_ANALOG 0x1011

#define STM32H7_PB1_FUNC_GPIO 0x1100
#define STM32H7_PB1_FUNC_TIM1_CH3N 0x1102
#define STM32H7_PB1_FUNC_TIM3_CH4 0x1103
#define STM32H7_PB1_FUNC_TIM8_CH3N 0x1104
#define STM32H7_PB1_FUNC_DFSDM_DATIN1 0x1107
#define STM32H7_PB1_FUNC_LCD_R6 0x110a
#define STM32H7_PB1_FUNC_OTG_HS_ULPI_D2 0x110b
#define STM32H7_PB1_FUNC_ETH_MII_RXD3 0x110c
#define STM32H7_PB1_FUNC_LCD_G0 0x110f
#define STM32H7_PB1_FUNC_EVENTOUT 0x1110
#define STM32H7_PB1_FUNC_ANALOG 0x1111

#define STM32H7_PB2_FUNC_GPIO 0x1200
#define STM32H7_PB2_FUNC_SAI1_D1 0x1203
#define STM32H7_PB2_FUNC_DFSDM_CKIN1 0x1205
#define STM32H7_PB2_FUNC_SAI1_SD_A 0x1207
#define STM32H7_PB2_FUNC_SPI3_MOSI_I2S3_SDO 0x1208
#define STM32H7_PB2_FUNC_SAI4_SD_A 0x1209
#define STM32H7_PB2_FUNC_QUADSPI_CLK 0x120a
#define STM32H7_PB2_FUNC_SAI4_D1 0x120b
#define STM32H7_PB2_FUNC_ETH_TX_ER 0x120c
#define STM32H7_PB2_FUNC_EVENTOUT 0x1210
#define STM32H7_PB2_FUNC_ANALOG 0x1211

#define STM32H7_PB3_FUNC_GPIO 0x1300
#define STM32H7_PB3_FUNC_JTDO_TRACESWO 0x1301
#define STM32H7_PB3_FUNC_TIM2_CH2 0x1302
#define STM32H7_PB3_FUNC_HRTIM_FLT4 0x1303
#define STM32H7_PB3_FUNC_SPI1_SCK_I2S1_CK 0x1306
#define STM32H7_PB3_FUNC_SPI3_SCK_I2S3_CK 0x1307
#define STM32H7_PB3_FUNC_SPI6_SCK 0x1309
#define STM32H7_PB3_FUNC_SDMMC2_D2 0x130a
#define STM32H7_PB3_FUNC_UART7_RX 0x130c
#define STM32H7_PB3_FUNC_EVENTOUT 0x1310
#define STM32H7_PB3_FUNC_ANALOG 0x1311

#define STM32H7_PB4_FUNC_GPIO 0x1400
#define STM32H7_PB4_FUNC_NJTRST 0x1401
#define STM32H7_PB4_FUNC_TIM16_BKIN 0x1402
#define STM32H7_PB4_FUNC_TIM3_CH1 0x1403
#define STM32H7_PB4_FUNC_HRTIM_EEV6 0x1404
#define STM32H7_PB4_FUNC_SPI1_MISO_I2S1_SDI 0x1406
#define STM32H7_PB4_FUNC_SPI3_MISO_I2S3_SDI 0x1407
#define STM32H7_PB4_FUNC_SPI2_NSS_I2S2_WS 0x1408
#define STM32H7_PB4_FUNC_SPI6_MISO 0x1409
#define STM32H7_PB4_FUNC_SDMMC2_D3 0x140a
#define STM32H7_PB4_FUNC_UART7_TX 0x140c
#define STM32H7_PB4_FUNC_EVENTOUT 0x1410
#define STM32H7_PB4_FUNC_ANALOG 0x1411

#define STM32H7_PB5_FUNC_GPIO 0x1500
#define STM32H7_PB5_FUNC_TIM17_BKIN 0x1502
#define STM32H7_PB5_FUNC_TIM3_CH2 0x1503
#define STM32H7_PB5_FUNC_HRTIM_EEV7 0x1504
#define STM32H7_PB5_FUNC_I2C1_SMBA 0x1505
#define STM32H7_PB5_FUNC_SPI1_MOSI_I2S1_SDO 0x1506
#define STM32H7_PB5_FUNC_I2C4_SMBA 0x1507
#define STM32H7_PB5_FUNC_SPI3_MOSI_I2S3_SDO 0x1508
#define STM32H7_PB5_FUNC_SPI6_MOSI 0x1509
#define STM32H7_PB5_FUNC_CAN2_RX 0x150a
#define STM32H7_PB5_FUNC_OTG_HS_ULPI_D7 0x150b
#define STM32H7_PB5_FUNC_ETH_PPS_OUT 0x150c
#define STM32H7_PB5_FUNC_FMC_SDCKE1 0x150d
#define STM32H7_PB5_FUNC_DCMI_D10 0x150e
#define STM32H7_PB5_FUNC_UART5_RX 0x150f
#define STM32H7_PB5_FUNC_EVENTOUT 0x1510
#define STM32H7_PB5_FUNC_ANALOG 0x1511

#define STM32H7_PB6_FUNC_GPIO 0x1600
#define STM32H7_PB6_FUNC_TIM16_CH1N 0x1602
#define STM32H7_PB6_FUNC_TIM4_CH1 0x1603
#define STM32H7_PB6_FUNC_HRTIM_EEV8 0x1604
#define STM32H7_PB6_FUNC_I2C1_SCL 0x1605
#define STM32H7_PB6_FUNC_HDMI_CEC 0x1606
#define STM32H7_PB6_FUNC_I2C4_SCL 0x1607
#define STM32H7_PB6_FUNC_USART1_TX 0x1608
#define STM32H7_PB6_FUNC_LPUART1_TX 0x1609
#define STM32H7_PB6_FUNC_CAN2_TX 0x160a
#define STM32H7_PB6_FUNC_QUADSPI_BK1_NCS 0x160b
#define STM32H7_PB6_FUNC_DFSDM_DATIN5 0x160c
#define STM32H7_PB6_FUNC_FMC_SDNE1 0x160d
#define STM32H7_PB6_FUNC_DCMI_D5 0x160e
#define STM32H7_PB6_FUNC_UART5_TX 0x160f
#define STM32H7_PB6_FUNC_EVENTOUT 0x1610
#define STM32H7_PB6_FUNC_ANALOG 0x1611

#define STM32H7_PB7_FUNC_GPIO 0x1700
#define STM32H7_PB7_FUNC_TIM17_CH1N 0x1702
#define STM32H7_PB7_FUNC_TIM4_CH2 0x1703
#define STM32H7_PB7_FUNC_HRTIM_EEV9 0x1704
#define STM32H7_PB7_FUNC_I2C1_SDA 0x1705
#define STM32H7_PB7_FUNC_I2C4_SDA 0x1707
#define STM32H7_PB7_FUNC_USART1_RX 0x1708
#define STM32H7_PB7_FUNC_LPUART1_RX 0x1709
#define STM32H7_PB7_FUNC_CAN2_TXFD 0x170a
#define STM32H7_PB7_FUNC_DFSDM_CKIN5 0x170c
#define STM32H7_PB7_FUNC_FMC_NL 0x170d
#define STM32H7_PB7_FUNC_DCMI_VSYNC 0x170e
#define STM32H7_PB7_FUNC_EVENTOUT 0x1710
#define STM32H7_PB7_FUNC_ANALOG 0x1711

#define STM32H7_PB8_FUNC_GPIO 0x1800
#define STM32H7_PB8_FUNC_TIM16_CH1 0x1802
#define STM32H7_PB8_FUNC_TIM4_CH3 0x1803
#define STM32H7_PB8_FUNC_DFSDM_CKIN7 0x1804
#define STM32H7_PB8_FUNC_I2C1_SCL 0x1805
#define STM32H7_PB8_FUNC_I2C4_SCL 0x1807
#define STM32H7_PB8_FUNC_SDMMC1_CKIN 0x1808
#define STM32H7_PB8_FUNC_UART4_RX 0x1809
#define STM32H7_PB8_FUNC_CAN1_RX 0x180a
#define STM32H7_PB8_FUNC_SDMMC2_D4 0x180b
#define STM32H7_PB8_FUNC_ETH_MII_TXD3 0x180c
#define STM32H7_PB8_FUNC_SDMMC1_D4 0x180d
#define STM32H7_PB8_FUNC_DCMI_D6 0x180e
#define STM32H7_PB8_FUNC_LCD_B6 0x180f
#define STM32H7_PB8_FUNC_EVENTOUT 0x1810
#define STM32H7_PB8_FUNC_ANALOG 0x1811

#define STM32H7_PB9_FUNC_GPIO 0x1900
#define STM32H7_PB9_FUNC_TIM17_CH1 0x1902
#define STM32H7_PB9_FUNC_TIM4_CH4 0x1903
#define STM32H7_PB9_FUNC_DFSDM_DATIN7 0x1904
#define STM32H7_PB9_FUNC_I2C1_SDA 0x1905
#define STM32H7_PB9_FUNC_SPI2_NSS_I2S2_WS 0x1906
#define STM32H7_PB9_FUNC_I2C4_SDA 0x1907
#define STM32H7_PB9_FUNC_SDMMC1_CDIR 0x1908
#define STM32H7_PB9_FUNC_UART4_TX 0x1909
#define STM32H7_PB9_FUNC_CAN1_TX 0x190a
#define STM32H7_PB9_FUNC_SDMMC2_D5 0x190b
#define STM32H7_PB9_FUNC_I2C4_SMBA 0x190c
#define STM32H7_PB9_FUNC_SDMMC1_D5 0x190d
#define STM32H7_PB9_FUNC_DCMI_D7 0x190e
#define STM32H7_PB9_FUNC_LCD_B7 0x190f
#define STM32H7_PB9_FUNC_EVENTOUT 0x1910
#define STM32H7_PB9_FUNC_ANALOG 0x1911

#define STM32H7_PB10_FUNC_GPIO 0x1a00
#define STM32H7_PB10_FUNC_TIM2_CH3 0x1a02
#define STM32H7_PB10_FUNC_HRTIM_SCOUT 0x1a03
#define STM32H7_PB10_FUNC_LPTIM2_IN1 0x1a04
#define STM32H7_PB10_FUNC_I2C2_SCL 0x1a05
#define STM32H7_PB10_FUNC_SPI2_SCK_I2S2_CK 0x1a06
#define STM32H7_PB10_FUNC_DFSDM_DATIN7 0x1a07
#define STM32H7_PB10_FUNC_USART3_TX 0x1a08
#define STM32H7_PB10_FUNC_QUADSPI_BK1_NCS 0x1a0a
#define STM32H7_PB10_FUNC_OTG_HS_ULPI_D3 0x1a0b
#define STM32H7_PB10_FUNC_ETH_MII_RX_ER 0x1a0c
#define STM32H7_PB10_FUNC_LCD_G4 0x1a0f
#define STM32H7_PB10_FUNC_EVENTOUT 0x1a10
#define STM32H7_PB10_FUNC_ANALOG 0x1a11

#define STM32H7_PB11_FUNC_GPIO 0x1b00
#define STM32H7_PB11_FUNC_TIM2_CH4 0x1b02
#define STM32H7_PB11_FUNC_HRTIM_SCIN 0x1b03
#define STM32H7_PB11_FUNC_LPTIM2_ETR 0x1b04
#define STM32H7_PB11_FUNC_I2C2_SDA 0x1b05
#define STM32H7_PB11_FUNC_DFSDM_CKIN7 0x1b07
#define STM32H7_PB11_FUNC_USART3_RX 0x1b08
#define STM32H7_PB11_FUNC_OTG_HS_ULPI_D4 0x1b0b
#define STM32H7_PB11_FUNC_ETH_MII_TX_EN_ETH_RMII_TX_EN 0x1b0c
#define STM32H7_PB11_FUNC_DSI_TE 0x1b0e
#define STM32H7_PB11_FUNC_LCD_G5 0x1b0f
#define STM32H7_PB11_FUNC_EVENTOUT 0x1b10
#define STM32H7_PB11_FUNC_ANALOG 0x1b11

#define STM32H7_PB12_FUNC_GPIO 0x1c00
#define STM32H7_PB12_FUNC_TIM1_BKIN 0x1c02
#define STM32H7_PB12_FUNC_I2C2_SMBA 0x1c05
#define STM32H7_PB12_FUNC_SPI2_NSS_I2S2_WS 0x1c06
#define STM32H7_PB12_FUNC_DFSDM_DATIN1 0x1c07
#define STM32H7_PB12_FUNC_USART3_CK 0x1c08
#define STM32H7_PB12_FUNC_CAN2_RX 0x1c0a
#define STM32H7_PB12_FUNC_OTG_HS_ULPI_D5 0x1c0b
#define STM32H7_PB12_FUNC_ETH_MII_TXD0_ETH_RMII_TXD0 0x1c0c
#define STM32H7_PB12_FUNC_OTG_HS_ID 0x1c0d
#define STM32H7_PB12_FUNC_TIM1_BKIN_COMP12 0x1c0e
#define STM32H7_PB12_FUNC_UART5_RX 0x1c0f
#define STM32H7_PB12_FUNC_EVENTOUT 0x1c10
#define STM32H7_PB12_FUNC_ANALOG 0x1c11

#define STM32H7_PB13_FUNC_GPIO 0x1d00
#define STM32H7_PB13_FUNC_TIM1_CH1N 0x1d02
#define STM32H7_PB13_FUNC_LPTIM2_OUT 0x1d04
#define STM32H7_PB13_FUNC_SPI2_SCK_I2S2_CK 0x1d06
#define STM32H7_PB13_FUNC_DFSDM_CKIN1 0x1d07
#define STM32H7_PB13_FUNC_USART3_CTS_NSS 0x1d08
#define STM32H7_PB13_FUNC_CAN2_TX 0x1d0a
#define STM32H7_PB13_FUNC_OTG_HS_ULPI_D6 0x1d0b
#define STM32H7_PB13_FUNC_ETH_MII_TXD1_ETH_RMII_TXD1 0x1d0c
#define STM32H7_PB13_FUNC_UART5_TX 0x1d0f
#define STM32H7_PB13_FUNC_EVENTOUT 0x1d10
#define STM32H7_PB13_FUNC_ANALOG 0x1d11

#define STM32H7_PB14_FUNC_GPIO 0x1e00
#define STM32H7_PB14_FUNC_TIM1_CH2N 0x1e02
#define STM32H7_PB14_FUNC_TIM8_CH2N 0x1e04
#define STM32H7_PB14_FUNC_USART1_TX 0x1e05
#define STM32H7_PB14_FUNC_SPI2_MISO_I2S2_SDI 0x1e06
#define STM32H7_PB14_FUNC_DFSDM_DATIN2 0x1e07
#define STM32H7_PB14_FUNC_USART3_RTS 0x1e08
#define STM32H7_PB14_FUNC_UART4_RTS 0x1e09
#define STM32H7_PB14_FUNC_SDMMC2_D0 0x1e0a
#define STM32H7_PB14_FUNC_OTG_HS_DM 0x1e0d
#define STM32H7_PB14_FUNC_EVENTOUT 0x1e10
#define STM32H7_PB14_FUNC_ANALOG 0x1e11

#define STM32H7_PB15_FUNC_GPIO 0x1f00
#define STM32H7_PB15_FUNC_RTC_REFIN 0x1f01
#define STM32H7_PB15_FUNC_TIM1_CH3N 0x1f02
#define STM32H7_PB15_FUNC_TIM8_CH3N 0x1f04
#define STM32H7_PB15_FUNC_USART1_RX 0x1f05
#define STM32H7_PB15_FUNC_SPI2_MOSI_I2S2_SDO 0x1f06
#define STM32H7_PB15_FUNC_DFSDM_CKIN2 0x1f07
#define STM32H7_PB15_FUNC_UART4_CTS 0x1f09
#define STM32H7_PB15_FUNC_SDMMC2_D1 0x1f0a
#define STM32H7_PB15_FUNC_OTG_HS_DP 0x1f0d
#define STM32H7_PB15_FUNC_EVENTOUT 0x1f10
#define STM32H7_PB15_FUNC_ANALOG 0x1f11

#define STM32H7_PC0_FUNC_GPIO 0x2000
#define STM32H7_PC0_FUNC_DFSDM_CKIN0 0x2004
#define STM32H7_PC0_FUNC_DFSDM_DATIN4 0x2007
#define STM32H7_PC0_FUNC_SAI2_FS_B 0x2009
#define STM32H7_PC0_FUNC_OTG_HS_ULPI_STP 0x200b
#define STM32H7_PC0_FUNC_FMC_SDNWE 0x200d
#define STM32H7_PC0_FUNC_LCD_R5 0x200f
#define STM32H7_PC0_FUNC_EVENTOUT 0x2010
#define STM32H7_PC0_FUNC_ANALOG 0x2011

#define STM32H7_PC1_FUNC_GPIO 0x2100
#define STM32H7_PC1_FUNC_TRACED0 0x2101
#define STM32H7_PC1_FUNC_SAI1_D1 0x2103
#define STM32H7_PC1_FUNC_DFSDM_DATIN0 0x2104
#define STM32H7_PC1_FUNC_DFSDM_CKIN4 0x2105
#define STM32H7_PC1_FUNC_SPI2_MOSI_I2S2_SDO 0x2106
#define STM32H7_PC1_FUNC_SAI1_SD_A 0x2107
#define STM32H7_PC1_FUNC_SAI4_SD_A 0x2109
#define STM32H7_PC1_FUNC_SDMMC2_CK 0x210a
#define STM32H7_PC1_FUNC_SAI4_D1 0x210b
#define STM32H7_PC1_FUNC_ETH_MDC 0x210c
#define STM32H7_PC1_FUNC_MDIOS_MDC 0x210d
#define STM32H7_PC1_FUNC_EVENTOUT 0x2110
#define STM32H7_PC1_FUNC_ANALOG 0x2111

#define STM32H7_PC2_FUNC_GPIO 0x2200
#define STM32H7_PC2_FUNC_DFSDM_CKIN1 0x2204
#define STM32H7_PC2_FUNC_SPI2_MISO_I2S2_SDI 0x2206
#define STM32H7_PC2_FUNC_DFSDM_CKOUT 0x2207
#define STM32H7_PC2_FUNC_OTG_HS_ULPI_DIR 0x220b
#define STM32H7_PC2_FUNC_ETH_MII_TXD2 0x220c
#define STM32H7_PC2_FUNC_FMC_SDNE0 0x220d
#define STM32H7_PC2_FUNC_EVENTOUT 0x2210
#define STM32H7_PC2_FUNC_ANALOG 0x2211

#define STM32H7_PC3_FUNC_GPIO 0x2300
#define STM32H7_PC3_FUNC_DFSDM_DATIN1 0x2304
#define STM32H7_PC3_FUNC_SPI2_MOSI_I2S2_SDO 0x2306
#define STM32H7_PC3_FUNC_OTG_HS_ULPI_NXT 0x230b
#define STM32H7_PC3_FUNC_ETH_MII_TX_CLK 0x230c
#define STM32H7_PC3_FUNC_FMC_SDCKE0 0x230d
#define STM32H7_PC3_FUNC_EVENTOUT 0x2310
#define STM32H7_PC3_FUNC_ANALOG 0x2311

#define STM32H7_PC4_FUNC_GPIO 0x2400
#define STM32H7_PC4_FUNC_DFSDM_CKIN2 0x2404
#define STM32H7_PC4_FUNC_I2S1_MCK 0x2406
#define STM32H7_PC4_FUNC_SPDIFRX_IN2 0x240a
#define STM32H7_PC4_FUNC_ETH_MII_RXD0_ETH_RMII_RXD0 0x240c
#define STM32H7_PC4_FUNC_FMC_SDNE0 0x240d
#define STM32H7_PC4_FUNC_EVENTOUT 0x2410
#define STM32H7_PC4_FUNC_ANALOG 0x2411

#define STM32H7_PC5_FUNC_GPIO 0x2500
#define STM32H7_PC5_FUNC_SAI1_D3 0x2503
#define STM32H7_PC5_FUNC_DFSDM_DATIN2 0x2504
#define STM32H7_PC5_FUNC_SPDIFRX_IN3 0x250a
#define STM32H7_PC5_FUNC_SAI4_D3 0x250b
#define STM32H7_PC5_FUNC_ETH_MII_RXD1_ETH_RMII_RXD1 0x250c
#define STM32H7_PC5_FUNC_FMC_SDCKE0 0x250d
#define STM32H7_PC5_FUNC_COMP_1_OUT 0x250e
#define STM32H7_PC5_FUNC_EVENTOUT 0x2510
#define STM32H7_PC5_FUNC_ANALOG 0x2511

#define STM32H7_PC6_FUNC_GPIO 0x2600
#define STM32H7_PC6_FUNC_HRTIM_CHA1 0x2602
#define STM32H7_PC6_FUNC_TIM3_CH1 0x2603
#define STM32H7_PC6_FUNC_TIM8_CH1 0x2604
#define STM32H7_PC6_FUNC_DFSDM_CKIN3 0x2605
#define STM32H7_PC6_FUNC_I2S2_MCK 0x2606
#define STM32H7_PC6_FUNC_USART6_TX 0x2608
#define STM32H7_PC6_FUNC_SDMMC1_D0DIR 0x2609
#define STM32H7_PC6_FUNC_FMC_NWAIT 0x260a
#define STM32H7_PC6_FUNC_SDMMC2_D6 0x260b
#define STM32H7_PC6_FUNC_SDMMC1_D6 0x260d
#define STM32H7_PC6_FUNC_DCMI_D0 0x260e
#define STM32H7_PC6_FUNC_LCD_HSYNC 0x260f
#define STM32H7_PC6_FUNC_EVENTOUT 0x2610
#define STM32H7_PC6_FUNC_ANALOG 0x2611

#define STM32H7_PC7_FUNC_GPIO 0x2700
#define STM32H7_PC7_FUNC_TRGIO 0x2701
#define STM32H7_PC7_FUNC_HRTIM_CHA2 0x2702
#define STM32H7_PC7_FUNC_TIM3_CH2 0x2703
#define STM32H7_PC7_FUNC_TIM8_CH2 0x2704
#define STM32H7_PC7_FUNC_DFSDM_DATIN3 0x2705
#define STM32H7_PC7_FUNC_I2S3_MCK 0x2707
#define STM32H7_PC7_FUNC_USART6_RX 0x2708
#define STM32H7_PC7_FUNC_SDMMC1_D123DIR 0x2709
#define STM32H7_PC7_FUNC_FMC_NE1 0x270a
#define STM32H7_PC7_FUNC_SDMMC2_D7 0x270b
#define STM32H7_PC7_FUNC_SWPMI_TX 0x270c
#define STM32H7_PC7_FUNC_SDMMC1_D7 0x270d
#define STM32H7_PC7_FUNC_DCMI_D1 0x270e
#define STM32H7_PC7_FUNC_LCD_G6 0x270f
#define STM32H7_PC7_FUNC_EVENTOUT 0x2710
#define STM32H7_PC7_FUNC_ANALOG 0x2711

#define STM32H7_PC8_FUNC_GPIO 0x2800
#define STM32H7_PC8_FUNC_TRACED1 0x2801
#define STM32H7_PC8_FUNC_HRTIM_CHB1 0x2802
#define STM32H7_PC8_FUNC_TIM3_CH3 0x2803
#define STM32H7_PC8_FUNC_TIM8_CH3 0x2804
#define STM32H7_PC8_FUNC_USART6_CK 0x2808
#define STM32H7_PC8_FUNC_UART5_RTS 0x2809
#define STM32H7_PC8_FUNC_FMC_NE2_FMC_NCE 0x280a
#define STM32H7_PC8_FUNC_SWPMI_RX 0x280c
#define STM32H7_PC8_FUNC_SDMMC1_D0 0x280d
#define STM32H7_PC8_FUNC_DCMI_D2 0x280e
#define STM32H7_PC8_FUNC_EVENTOUT 0x2810
#define STM32H7_PC8_FUNC_ANALOG 0x2811

#define STM32H7_PC9_FUNC_GPIO 0x2900
#define STM32H7_PC9_FUNC_MCO2 0x2901
#define STM32H7_PC9_FUNC_TIM3_CH4 0x2903
#define STM32H7_PC9_FUNC_TIM8_CH4 0x2904
#define STM32H7_PC9_FUNC_I2C3_SDA 0x2905
#define STM32H7_PC9_FUNC_I2S_CKIN 0x2906
#define STM32H7_PC9_FUNC_UART5_CTS 0x2909
#define STM32H7_PC9_FUNC_QUADSPI_BK1_IO0 0x290a
#define STM32H7_PC9_FUNC_LCD_G3 0x290b
#define STM32H7_PC9_FUNC_SWPMI_SUSPEND 0x290c
#define STM32H7_PC9_FUNC_SDMMC1_D1 0x290d
#define STM32H7_PC9_FUNC_DCMI_D3 0x290e
#define STM32H7_PC9_FUNC_LCD_B2 0x290f
#define STM32H7_PC9_FUNC_EVENTOUT 0x2910
#define STM32H7_PC9_FUNC_ANALOG 0x2911

#define STM32H7_PC10_FUNC_GPIO 0x2a00
#define STM32H7_PC10_FUNC_HRTIM_EEV1 0x2a03
#define STM32H7_PC10_FUNC_DFSDM_CKIN5 0x2a04
#define STM32H7_PC10_FUNC_SPI3_SCK_I2S3_CK 0x2a07
#define STM32H7_PC10_FUNC_USART3_TX 0x2a08
#define STM32H7_PC10_FUNC_UART4_TX 0x2a09
#define STM32H7_PC10_FUNC_QUADSPI_BK1_IO1 0x2a0a
#define STM32H7_PC10_FUNC_SDMMC1_D2 0x2a0d
#define STM32H7_PC10_FUNC_DCMI_D8 0x2a0e
#define STM32H7_PC10_FUNC_LCD_R2 0x2a0f
#define STM32H7_PC10_FUNC_EVENTOUT 0x2a10
#define STM32H7_PC10_FUNC_ANALOG 0x2a11

#define STM32H7_PC11_FUNC_GPIO 0x2b00
#define STM32H7_PC11_FUNC_HRTIM_FLT2 0x2b03
#define STM32H7_PC11_FUNC_DFSDM_DATIN5 0x2b04
#define STM32H7_PC11_FUNC_SPI3_MISO_I2S3_SDI 0x2b07
#define STM32H7_PC11_FUNC_USART3_RX 0x2b08
#define STM32H7_PC11_FUNC_UART4_RX 0x2b09
#define STM32H7_PC11_FUNC_QUADSPI_BK2_NCS 0x2b0a
#define STM32H7_PC11_FUNC_SDMMC1_D3 0x2b0d
#define STM32H7_PC11_FUNC_DCMI_D4 0x2b0e
#define STM32H7_PC11_FUNC_EVENTOUT 0x2b10
#define STM32H7_PC11_FUNC_ANALOG 0x2b11

#define STM32H7_PC12_FUNC_GPIO 0x2c00
#define STM32H7_PC12_FUNC_TRACED3 0x2c01
#define STM32H7_PC12_FUNC_HRTIM_EEV2 0x2c03
#define STM32H7_PC12_FUNC_SPI3_MOSI_I2S3_SDO 0x2c07
#define STM32H7_PC12_FUNC_USART3_CK 0x2c08
#define STM32H7_PC12_FUNC_UART5_TX 0x2c09
#define STM32H7_PC12_FUNC_SDMMC1_CK 0x2c0d
#define STM32H7_PC12_FUNC_DCMI_D9 0x2c0e
#define STM32H7_PC12_FUNC_EVENTOUT 0x2c10
#define STM32H7_PC12_FUNC_ANALOG 0x2c11

#define STM32H7_PC13_FUNC_GPIO 0x2d00
#define STM32H7_PC13_FUNC_EVENTOUT 0x2d10
#define STM32H7_PC13_FUNC_ANALOG 0x2d11

#define STM32H7_PC14_FUNC_GPIO 0x2e00
#define STM32H7_PC14_FUNC_EVENTOUT 0x2e10
#define STM32H7_PC14_FUNC_ANALOG 0x2e11

#define STM32H7_PC15_FUNC_GPIO 0x2f00
#define STM32H7_PC15_FUNC_EVENTOUT 0x2f10
#define STM32H7_PC15_FUNC_ANALOG 0x2f11

#define STM32H7_PD0_FUNC_GPIO 0x3000
#define STM32H7_PD0_FUNC_DFSDM_CKIN6 0x3004
#define STM32H7_PD0_FUNC_SAI3_SCK_A 0x3007
#define STM32H7_PD0_FUNC_UART4_RX 0x3009
#define STM32H7_PD0_FUNC_CAN1_RX 0x300a
#define STM32H7_PD0_FUNC_FMC_D2_FMC_DA2 0x300d
#define STM32H7_PD0_FUNC_EVENTOUT 0x3010
#define STM32H7_PD0_FUNC_ANALOG 0x3011

#define STM32H7_PD1_FUNC_GPIO 0x3100
#define STM32H7_PD1_FUNC_DFSDM_DATIN6 0x3104
#define STM32H7_PD1_FUNC_SAI3_SD_A 0x3107
#define STM32H7_PD1_FUNC_UART4_TX 0x3109
#define STM32H7_PD1_FUNC_CAN1_TX 0x310a
#define STM32H7_PD1_FUNC_FMC_D3_FMC_DA3 0x310d
#define STM32H7_PD1_FUNC_EVENTOUT 0x3110
#define STM32H7_PD1_FUNC_ANALOG 0x3111

#define STM32H7_PD2_FUNC_GPIO 0x3200
#define STM32H7_PD2_FUNC_TRACED2 0x3201
#define STM32H7_PD2_FUNC_TIM3_ETR 0x3203
#define STM32H7_PD2_FUNC_UART5_RX 0x3209
#define STM32H7_PD2_FUNC_SDMMC1_CMD 0x320d
#define STM32H7_PD2_FUNC_DCMI_D11 0x320e
#define STM32H7_PD2_FUNC_EVENTOUT 0x3210
#define STM32H7_PD2_FUNC_ANALOG 0x3211

#define STM32H7_PD3_FUNC_GPIO 0x3300
#define STM32H7_PD3_FUNC_DFSDM_CKOUT 0x3304
#define STM32H7_PD3_FUNC_SPI2_SCK_I2S2_CK 0x3306
#define STM32H7_PD3_FUNC_USART2_CTS_NSS 0x3308
#define STM32H7_PD3_FUNC_FMC_CLK 0x330d
#define STM32H7_PD3_FUNC_DCMI_D5 0x330e
#define STM32H7_PD3_FUNC_LCD_G7 0x330f
#define STM32H7_PD3_FUNC_EVENTOUT 0x3310
#define STM32H7_PD3_FUNC_ANALOG 0x3311

#define STM32H7_PD4_FUNC_GPIO 0x3400
#define STM32H7_PD4_FUNC_HRTIM_FLT3 0x3403
#define STM32H7_PD4_FUNC_SAI3_FS_A 0x3407
#define STM32H7_PD4_FUNC_USART2_RTS 0x3408
#define STM32H7_PD4_FUNC_CAN1_RXFD 0x340a
#define STM32H7_PD4_FUNC_FMC_NOE 0x340d
#define STM32H7_PD4_FUNC_EVENTOUT 0x3410
#define STM32H7_PD4_FUNC_ANALOG 0x3411

#define STM32H7_PD5_FUNC_GPIO 0x3500
#define STM32H7_PD5_FUNC_HRTIM_EEV3 0x3503
#define STM32H7_PD5_FUNC_USART2_TX 0x3508
#define STM32H7_PD5_FUNC_CAN1_TXFD 0x350a
#define STM32H7_PD5_FUNC_FMC_NWE 0x350d
#define STM32H7_PD5_FUNC_EVENTOUT 0x3510
#define STM32H7_PD5_FUNC_ANALOG 0x3511

#define STM32H7_PD6_FUNC_GPIO 0x3600
#define STM32H7_PD6_FUNC_SAI1_D1 0x3603
#define STM32H7_PD6_FUNC_DFSDM_CKIN4 0x3604
#define STM32H7_PD6_FUNC_DFSDM_DATIN1 0x3605
#define STM32H7_PD6_FUNC_SPI3_MOSI_I2S3_SDO 0x3606
#define STM32H7_PD6_FUNC_SAI1_SD_A 0x3607
#define STM32H7_PD6_FUNC_USART2_RX 0x3608
#define STM32H7_PD6_FUNC_SAI4_SD_A 0x3609
#define STM32H7_PD6_FUNC_CAN2_RXFD 0x360a
#define STM32H7_PD6_FUNC_SAI4_D1 0x360b
#define STM32H7_PD6_FUNC_SDMMC2_CK 0x360c
#define STM32H7_PD6_FUNC_FMC_NWAIT 0x360d
#define STM32H7_PD6_FUNC_DCMI_D10 0x360e
#define STM32H7_PD6_FUNC_LCD_B2 0x360f
#define STM32H7_PD6_FUNC_EVENTOUT 0x3610
#define STM32H7_PD6_FUNC_ANALOG 0x3611

#define STM32H7_PD7_FUNC_GPIO 0x3700
#define STM32H7_PD7_FUNC_DFSDM_DATIN4 0x3704
#define STM32H7_PD7_FUNC_SPI1_MOSI_I2S1_SDO 0x3706
#define STM32H7_PD7_FUNC_DFSDM_CKIN1 0x3707
#define STM32H7_PD7_FUNC_USART2_CK 0x3708
#define STM32H7_PD7_FUNC_SPDIFRX_IN0 0x370a
#define STM32H7_PD7_FUNC_SDMMC2_CMD 0x370c
#define STM32H7_PD7_FUNC_FMC_NE1 0x370d
#define STM32H7_PD7_FUNC_EVENTOUT 0x3710
#define STM32H7_PD7_FUNC_ANALOG 0x3711

#define STM32H7_PD8_FUNC_GPIO 0x3800
#define STM32H7_PD8_FUNC_DFSDM_CKIN3 0x3804
#define STM32H7_PD8_FUNC_SAI3_SCK_B 0x3807
#define STM32H7_PD8_FUNC_USART3_TX 0x3808
#define STM32H7_PD8_FUNC_SPDIFRX_IN1 0x380a
#define STM32H7_PD8_FUNC_FMC_D13_FMC_DA13 0x380d
#define STM32H7_PD8_FUNC_EVENTOUT 0x3810
#define STM32H7_PD8_FUNC_ANALOG 0x3811

#define STM32H7_PD9_FUNC_GPIO 0x3900
#define STM32H7_PD9_FUNC_DFSDM_DATIN3 0x3904
#define STM32H7_PD9_FUNC_SAI3_SD_B 0x3907
#define STM32H7_PD9_FUNC_USART3_RX 0x3908
#define STM32H7_PD9_FUNC_CAN2_RXFD 0x390a
#define STM32H7_PD9_FUNC_FMC_D14_FMC_DA14 0x390d
#define STM32H7_PD9_FUNC_EVENTOUT 0x3910
#define STM32H7_PD9_FUNC_ANALOG 0x3911

#define STM32H7_PD10_FUNC_GPIO 0x3a00
#define STM32H7_PD10_FUNC_DFSDM_CKOUT 0x3a04
#define STM32H7_PD10_FUNC_SAI3_FS_B 0x3a07
#define STM32H7_PD10_FUNC_USART3_CK 0x3a08
#define STM32H7_PD10_FUNC_CAN2_TXFD 0x3a0a
#define STM32H7_PD10_FUNC_FMC_D15_FMC_DA15 0x3a0d
#define STM32H7_PD10_FUNC_LCD_B3 0x3a0f
#define STM32H7_PD10_FUNC_EVENTOUT 0x3a10
#define STM32H7_PD10_FUNC_ANALOG 0x3a11

#define STM32H7_PD11_FUNC_GPIO 0x3b00
#define STM32H7_PD11_FUNC_LPTIM2_IN2 0x3b04
#define STM32H7_PD11_FUNC_I2C4_SMBA 0x3b05
#define STM32H7_PD11_FUNC_USART3_CTS_NSS 0x3b08
#define STM32H7_PD11_FUNC_QUADSPI_BK1_IO0 0x3b0a
#define STM32H7_PD11_FUNC_SAI2_SD_A 0x3b0b
#define STM32H7_PD11_FUNC_FMC_A16 0x3b0d
#define STM32H7_PD11_FUNC_EVENTOUT 0x3b10
#define STM32H7_PD11_FUNC_ANALOG 0x3b11

#define STM32H7_PD12_FUNC_GPIO 0x3c00
#define STM32H7_PD12_FUNC_LPTIM1_IN1 0x3c02
#define STM32H7_PD12_FUNC_TIM4_CH1 0x3c03
#define STM32H7_PD12_FUNC_LPTIM2_IN1 0x3c04
#define STM32H7_PD12_FUNC_I2C4_SCL 0x3c05
#define STM32H7_PD12_FUNC_USART3_RTS 0x3c08
#define STM32H7_PD12_FUNC_QUADSPI_BK1_IO1 0x3c0a
#define STM32H7_PD12_FUNC_SAI2_FS_A 0x3c0b
#define STM32H7_PD12_FUNC_FMC_A17 0x3c0d
#define STM32H7_PD12_FUNC_EVENTOUT 0x3c10
#define STM32H7_PD12_FUNC_ANALOG 0x3c11

#define STM32H7_PD13_FUNC_GPIO 0x3d00
#define STM32H7_PD13_FUNC_LPTIM1_OUT 0x3d02
#define STM32H7_PD13_FUNC_TIM4_CH2 0x3d03
#define STM32H7_PD13_FUNC_I2C4_SDA 0x3d05
#define STM32H7_PD13_FUNC_QUADSPI_BK1_IO3 0x3d0a
#define STM32H7_PD13_FUNC_SAI2_SCK_A 0x3d0b
#define STM32H7_PD13_FUNC_FMC_A18 0x3d0d
#define STM32H7_PD13_FUNC_EVENTOUT 0x3d10
#define STM32H7_PD13_FUNC_ANALOG 0x3d11

#define STM32H7_PD14_FUNC_GPIO 0x3e00
#define STM32H7_PD14_FUNC_TIM4_CH3 0x3e03
#define STM32H7_PD14_FUNC_SAI3_MCLK_B 0x3e07
#define STM32H7_PD14_FUNC_UART8_CTS 0x3e09
#define STM32H7_PD14_FUNC_FMC_D0_FMC_DA0 0x3e0d
#define STM32H7_PD14_FUNC_EVENTOUT 0x3e10
#define STM32H7_PD14_FUNC_ANALOG 0x3e11

#define STM32H7_PD15_FUNC_GPIO 0x3f00
#define STM32H7_PD15_FUNC_TIM4_CH4 0x3f03
#define STM32H7_PD15_FUNC_SAI3_MCLK_A 0x3f07
#define STM32H7_PD15_FUNC_UART8_RTS 0x3f09
#define STM32H7_PD15_FUNC_FMC_D1_FMC_DA1 0x3f0d
#define STM32H7_PD15_FUNC_EVENTOUT 0x3f10
#define STM32H7_PD15_FUNC_ANALOG 0x3f11

#define STM32H7_PE0_FUNC_GPIO 0x4000
#define STM32H7_PE0_FUNC_LPTIM1_ETR 0x4002
#define STM32H7_PE0_FUNC_TIM4_ETR 0x4003
#define STM32H7_PE0_FUNC_HRTIM_SCIN 0x4004
#define STM32H7_PE0_FUNC_LPTIM2_ETR 0x4005
#define STM32H7_PE0_FUNC_UART8_RX 0x4009
#define STM32H7_PE0_FUNC_CAN1_RXFD 0x400a
#define STM32H7_PE0_FUNC_SAI2_MCK_A 0x400b
#define STM32H7_PE0_FUNC_FMC_NBL0 0x400d
#define STM32H7_PE0_FUNC_DCMI_D2 0x400e
#define STM32H7_PE0_FUNC_EVENTOUT 0x4010
#define STM32H7_PE0_FUNC_ANALOG 0x4011

#define STM32H7_PE1_FUNC_GPIO 0x4100
#define STM32H7_PE1_FUNC_LPTIM1_IN2 0x4102
#define STM32H7_PE1_FUNC_HRTIM_SCOUT 0x4104
#define STM32H7_PE1_FUNC_UART8_TX 0x4109
#define STM32H7_PE1_FUNC_CAN1_TXFD 0x410a
#define STM32H7_PE1_FUNC_FMC_NBL1 0x410d
#define STM32H7_PE1_FUNC_DCMI_D3 0x410e
#define STM32H7_PE1_FUNC_EVENTOUT 0x4110
#define STM32H7_PE1_FUNC_ANALOG 0x4111

#define STM32H7_PE2_FUNC_GPIO 0x4200
#define STM32H7_PE2_FUNC_TRACECLK 0x4201
#define STM32H7_PE2_FUNC_SAI1_CK1 0x4203
#define STM32H7_PE2_FUNC_SPI4_SCK 0x4206
#define STM32H7_PE2_FUNC_SAI1_MCLK_A 0x4207
#define STM32H7_PE2_FUNC_SAI4_MCLK_A 0x4209
#define STM32H7_PE2_FUNC_QUADSPI_BK1_IO2 0x420a
#define STM32H7_PE2_FUNC_SAI4_CK1 0x420b
#define STM32H7_PE2_FUNC_ETH_MII_TXD3 0x420c
#define STM32H7_PE2_FUNC_FMC_A23 0x420d
#define STM32H7_PE2_FUNC_EVENTOUT 0x4210
#define STM32H7_PE2_FUNC_ANALOG 0x4211

#define STM32H7_PE3_FUNC_GPIO 0x4300
#define STM32H7_PE3_FUNC_TRACED0 0x4301
#define STM32H7_PE3_FUNC_TIM15_BKIN 0x4305
#define STM32H7_PE3_FUNC_SAI1_SD_B 0x4307
#define STM32H7_PE3_FUNC_SAI4_SD_B 0x4309
#define STM32H7_PE3_FUNC_FMC_A19 0x430d
#define STM32H7_PE3_FUNC_EVENTOUT 0x4310
#define STM32H7_PE3_FUNC_ANALOG 0x4311

#define STM32H7_PE4_FUNC_GPIO 0x4400
#define STM32H7_PE4_FUNC_TRACED1 0x4401
#define STM32H7_PE4_FUNC_SAI1_D2 0x4403
#define STM32H7_PE4_FUNC_DFSDM_DATIN3 0x4404
#define STM32H7_PE4_FUNC_TIM15_CH1N 0x4405
#define STM32H7_PE4_FUNC_SPI4_NSS 0x4406
#define STM32H7_PE4_FUNC_SAI1_FS_A 0x4407
#define STM32H7_PE4_FUNC_SAI4_FS_A 0x4409
#define STM32H7_PE4_FUNC_SAI4_D2 0x440b
#define STM32H7_PE4_FUNC_FMC_A20 0x440d
#define STM32H7_PE4_FUNC_DCMI_D4 0x440e
#define STM32H7_PE4_FUNC_LCD_B0 0x440f
#define STM32H7_PE4_FUNC_EVENTOUT 0x4410
#define STM32H7_PE4_FUNC_ANALOG 0x4411

#define STM32H7_PE5_FUNC_GPIO 0x4500
#define STM32H7_PE5_FUNC_TRACED2 0x4501
#define STM32H7_PE5_FUNC_SAI1_CK2 0x4503
#define STM32H7_PE5_FUNC_DFSDM_CKIN3 0x4504
#define STM32H7_PE5_FUNC_TIM15_CH1 0x4505
#define STM32H7_PE5_FUNC_SPI4_MISO 0x4506
#define STM32H7_PE5_FUNC_SAI1_SCK_A 0x4507
#define STM32H7_PE5_FUNC_SAI4_SCK_A 0x4509
#define STM32H7_PE5_FUNC_SAI4_CK2 0x450b
#define STM32H7_PE5_FUNC_FMC_A21 0x450d
#define STM32H7_PE5_FUNC_DCMI_D6 0x450e
#define STM32H7_PE5_FUNC_LCD_G0 0x450f
#define STM32H7_PE5_FUNC_EVENTOUT 0x4510
#define STM32H7_PE5_FUNC_ANALOG 0x4511

#define STM32H7_PE6_FUNC_GPIO 0x4600
#define STM32H7_PE6_FUNC_TRACED3 0x4601
#define STM32H7_PE6_FUNC_TIM1_BKIN2 0x4602
#define STM32H7_PE6_FUNC_SAI1_D1 0x4603
#define STM32H7_PE6_FUNC_TIM15_CH2 0x4605
#define STM32H7_PE6_FUNC_SPI4_MOSI 0x4606
#define STM32H7_PE6_FUNC_SAI1_SD_A 0x4607
#define STM32H7_PE6_FUNC_SAI4_SD_A 0x4609
#define STM32H7_PE6_FUNC_SAI4_D1 0x460a
#define STM32H7_PE6_FUNC_SAI2_MCK_B 0x460b
#define STM32H7_PE6_FUNC_TIM1_BKIN2_COMP12 0x460c
#define STM32H7_PE6_FUNC_FMC_A22 0x460d
#define STM32H7_PE6_FUNC_DCMI_D7 0x460e
#define STM32H7_PE6_FUNC_LCD_G1 0x460f
#define STM32H7_PE6_FUNC_EVENTOUT 0x4610
#define STM32H7_PE6_FUNC_ANALOG 0x4611

#define STM32H7_PE7_FUNC_GPIO 0x4700
#define STM32H7_PE7_FUNC_TIM1_ETR 0x4702
#define STM32H7_PE7_FUNC_DFSDM_DATIN2 0x4704
#define STM32H7_PE7_FUNC_UART7_RX 0x4708
#define STM32H7_PE7_FUNC_QUADSPI_BK2_IO0 0x470b
#define STM32H7_PE7_FUNC_FMC_D4_FMC_DA4 0x470d
#define STM32H7_PE7_FUNC_EVENTOUT 0x4710
#define STM32H7_PE7_FUNC_ANALOG 0x4711

#define STM32H7_PE8_FUNC_GPIO 0x4800
#define STM32H7_PE8_FUNC_TIM1_CH1N 0x4802
#define STM32H7_PE8_FUNC_DFSDM_CKIN2 0x4804
#define STM32H7_PE8_FUNC_UART7_TX 0x4808
#define STM32H7_PE8_FUNC_QUADSPI_BK2_IO1 0x480b
#define STM32H7_PE8_FUNC_FMC_D5_FMC_DA5 0x480d
#define STM32H7_PE8_FUNC_COMP_2_OUT 0x480e
#define STM32H7_PE8_FUNC_EVENTOUT 0x4810
#define STM32H7_PE8_FUNC_ANALOG 0x4811

#define STM32H7_PE9_FUNC_GPIO 0x4900
#define STM32H7_PE9_FUNC_TIM1_CH1 0x4902
#define STM32H7_PE9_FUNC_DFSDM_CKOUT 0x4904
#define STM32H7_PE9_FUNC_UART7_RTS 0x4908
#define STM32H7_PE9_FUNC_QUADSPI_BK2_IO2 0x490b
#define STM32H7_PE9_FUNC_FMC_D6_FMC_DA6 0x490d
#define STM32H7_PE9_FUNC_EVENTOUT 0x4910
#define STM32H7_PE9_FUNC_ANALOG 0x4911

#define STM32H7_PE10_FUNC_GPIO 0x4a00
#define STM32H7_PE10_FUNC_TIM1_CH2N 0x4a02
#define STM32H7_PE10_FUNC_DFSDM_DATIN4 0x4a04
#define STM32H7_PE10_FUNC_UART7_CTS 0x4a08
#define STM32H7_PE10_FUNC_QUADSPI_BK2_IO3 0x4a0b
#define STM32H7_PE10_FUNC_FMC_D7_FMC_DA7 0x4a0d
#define STM32H7_PE10_FUNC_EVENTOUT 0x4a10
#define STM32H7_PE10_FUNC_ANALOG 0x4a11

#define STM32H7_PE11_FUNC_GPIO 0x4b00
#define STM32H7_PE11_FUNC_TIM1_CH2 0x4b02
#define STM32H7_PE11_FUNC_DFSDM_CKIN4 0x4b04
#define STM32H7_PE11_FUNC_SPI4_NSS 0x4b06
#define STM32H7_PE11_FUNC_SAI2_SD_B 0x4b0b
#define STM32H7_PE11_FUNC_FMC_D8_FMC_DA8 0x4b0d
#define STM32H7_PE11_FUNC_LCD_G3 0x4b0f
#define STM32H7_PE11_FUNC_EVENTOUT 0x4b10
#define STM32H7_PE11_FUNC_ANALOG 0x4b11

#define STM32H7_PE12_FUNC_GPIO 0x4c00
#define STM32H7_PE12_FUNC_TIM1_CH3N 0x4c02
#define STM32H7_PE12_FUNC_DFSDM_DATIN5 0x4c04
#define STM32H7_PE12_FUNC_SPI4_SCK 0x4c06
#define STM32H7_PE12_FUNC_SAI2_SCK_B 0x4c0b
#define STM32H7_PE12_FUNC_FMC_D9_FMC_DA9 0x4c0d
#define STM32H7_PE12_FUNC_COMP_1_OUT 0x4c0e
#define STM32H7_PE12_FUNC_LCD_B4 0x4c0f
#define STM32H7_PE12_FUNC_EVENTOUT 0x4c10
#define STM32H7_PE12_FUNC_ANALOG 0x4c11

#define STM32H7_PE13_FUNC_GPIO 0x4d00
#define STM32H7_PE13_FUNC_TIM1_CH3 0x4d02
#define STM32H7_PE13_FUNC_DFSDM_CKIN5 0x4d04
#define STM32H7_PE13_FUNC_SPI4_MISO 0x4d06
#define STM32H7_PE13_FUNC_SAI2_FS_B 0x4d0b
#define STM32H7_PE13_FUNC_FMC_D10_FMC_DA10 0x4d0d
#define STM32H7_PE13_FUNC_COMP_2_OUT 0x4d0e
#define STM32H7_PE13_FUNC_LCD_DE 0x4d0f
#define STM32H7_PE13_FUNC_EVENTOUT 0x4d10
#define STM32H7_PE13_FUNC_ANALOG 0x4d11

#define STM32H7_PE14_FUNC_GPIO 0x4e00
#define STM32H7_PE14_FUNC_TIM1_CH4 0x4e02
#define STM32H7_PE14_FUNC_SPI4_MOSI 0x4e06
#define STM32H7_PE14_FUNC_SAI2_MCK_B 0x4e0b
#define STM32H7_PE14_FUNC_FMC_D11_FMC_DA11 0x4e0d
#define STM32H7_PE14_FUNC_LCD_CLK 0x4e0f
#define STM32H7_PE14_FUNC_EVENTOUT 0x4e10
#define STM32H7_PE14_FUNC_ANALOG 0x4e11

#define STM32H7_PE15_FUNC_GPIO 0x4f00
#define STM32H7_PE15_FUNC_TIM1_BKIN 0x4f02
#define STM32H7_PE15_FUNC_HDMI__TIM1_BKIN 0x4f06
#define STM32H7_PE15_FUNC_FMC_D12_FMC_DA12 0x4f0d
#define STM32H7_PE15_FUNC_TIM1_BKIN_COMP12 0x4f0e
#define STM32H7_PE15_FUNC_LCD_R7 0x4f0f
#define STM32H7_PE15_FUNC_EVENTOUT 0x4f10
#define STM32H7_PE15_FUNC_ANALOG 0x4f11

#define STM32H7_PF0_FUNC_GPIO 0x5000
#define STM32H7_PF0_FUNC_I2C2_SDA 0x5005
#define STM32H7_PF0_FUNC_FMC_A0 0x500d
#define STM32H7_PF0_FUNC_EVENTOUT 0x5010
#define STM32H7_PF0_FUNC_ANALOG 0x5011

#define STM32H7_PF1_FUNC_GPIO 0x5100
#define STM32H7_PF1_FUNC_I2C2_SCL 0x5105
#define STM32H7_PF1_FUNC_FMC_A1 0x510d
#define STM32H7_PF1_FUNC_EVENTOUT 0x5110
#define STM32H7_PF1_FUNC_ANALOG 0x5111

#define STM32H7_PF2_FUNC_GPIO 0x5200
#define STM32H7_PF2_FUNC_I2C2_SMBA 0x5205
#define STM32H7_PF2_FUNC_FMC_A2 0x520d
#define STM32H7_PF2_FUNC_EVENTOUT 0x5210
#define STM32H7_PF2_FUNC_ANALOG 0x5211

#define STM32H7_PF3_FUNC_GPIO 0x5300
#define STM32H7_PF3_FUNC_FMC_A3 0x530d
#define STM32H7_PF3_FUNC_EVENTOUT 0x5310
#define STM32H7_PF3_FUNC_ANALOG 0x5311

#define STM32H7_PF4_FUNC_GPIO 0x5400
#define STM32H7_PF4_FUNC_FMC_A4 0x540d
#define STM32H7_PF4_FUNC_EVENTOUT 0x5410
#define STM32H7_PF4_FUNC_ANALOG 0x5411

#define STM32H7_PF5_FUNC_GPIO 0x5500
#define STM32H7_PF5_FUNC_FMC_A5 0x550d
#define STM32H7_PF5_FUNC_EVENTOUT 0x5510
#define STM32H7_PF5_FUNC_ANALOG 0x5511

#define STM32H7_PF6_FUNC_GPIO 0x5600
#define STM32H7_PF6_FUNC_TIM16_CH1 0x5602
#define STM32H7_PF6_FUNC_SPI5_NSS 0x5606
#define STM32H7_PF6_FUNC_SAI1_SD_B 0x5607
#define STM32H7_PF6_FUNC_UART7_RX 0x5608
#define STM32H7_PF6_FUNC_SAI4_SD_B 0x5609
#define STM32H7_PF6_FUNC_QUADSPI_BK1_IO3 0x560a
#define STM32H7_PF6_FUNC_EVENTOUT 0x5610
#define STM32H7_PF6_FUNC_ANALOG 0x5611

#define STM32H7_PF7_FUNC_GPIO 0x5700
#define STM32H7_PF7_FUNC_TIM17_CH1 0x5702
#define STM32H7_PF7_FUNC_SPI5_SCK 0x5706
#define STM32H7_PF7_FUNC_SAI1_MCLK_B 0x5707
#define STM32H7_PF7_FUNC_UART7_TX 0x5708
#define STM32H7_PF7_FUNC_SAI4_MCLK_B 0x5709
#define STM32H7_PF7_FUNC_QUADSPI_BK1_IO2 0x570a
#define STM32H7_PF7_FUNC_EVENTOUT 0x5710
#define STM32H7_PF7_FUNC_ANALOG 0x5711

#define STM32H7_PF8_FUNC_GPIO 0x5800
#define STM32H7_PF8_FUNC_TIM16_CH1N 0x5802
#define STM32H7_PF8_FUNC_SPI5_MISO 0x5806
#define STM32H7_PF8_FUNC_SAI1_SCK_B 0x5807
#define STM32H7_PF8_FUNC_UART7_RTS 0x5808
#define STM32H7_PF8_FUNC_SAI4_SCK_B 0x5809
#define STM32H7_PF8_FUNC_TIM13_CH1 0x580a
#define STM32H7_PF8_FUNC_QUADSPI_BK1_IO0 0x580b
#define STM32H7_PF8_FUNC_EVENTOUT 0x5810
#define STM32H7_PF8_FUNC_ANALOG 0x5811

#define STM32H7_PF9_FUNC_GPIO 0x5900
#define STM32H7_PF9_FUNC_TIM17_CH1N 0x5902
#define STM32H7_PF9_FUNC_SPI5_MOSI 0x5906
#define STM32H7_PF9_FUNC_SAI1_FS_B 0x5907
#define STM32H7_PF9_FUNC_UART7_CTS 0x5908
#define STM32H7_PF9_FUNC_SAI4_FS_B 0x5909
#define STM32H7_PF9_FUNC_TIM14_CH1 0x590a
#define STM32H7_PF9_FUNC_QUADSPI_BK1_IO1 0x590b
#define STM32H7_PF9_FUNC_EVENTOUT 0x5910
#define STM32H7_PF9_FUNC_ANALOG 0x5911

#define STM32H7_PF10_FUNC_GPIO 0x5a00
#define STM32H7_PF10_FUNC_TIM16_BKIN 0x5a02
#define STM32H7_PF10_FUNC_SAI1_D3 0x5a03
#define STM32H7_PF10_FUNC_QUADSPI_CLK 0x5a0a
#define STM32H7_PF10_FUNC_SAI4_D3 0x5a0b
#define STM32H7_PF10_FUNC_DCMI_D11 0x5a0e
#define STM32H7_PF10_FUNC_LCD_DE 0x5a0f
#define STM32H7_PF10_FUNC_EVENTOUT 0x5a10
#define STM32H7_PF10_FUNC_ANALOG 0x5a11

#define STM32H7_PF11_FUNC_GPIO 0x5b00
#define STM32H7_PF11_FUNC_SPI5_MOSI 0x5b06
#define STM32H7_PF11_FUNC_SAI2_SD_B 0x5b0b
#define STM32H7_PF11_FUNC_FMC_SDNRAS 0x5b0d
#define STM32H7_PF11_FUNC_DCMI_D12 0x5b0e
#define STM32H7_PF11_FUNC_EVENTOUT 0x5b10
#define STM32H7_PF11_FUNC_ANALOG 0x5b11

#define STM32H7_PF12_FUNC_GPIO 0x5c00
#define STM32H7_PF12_FUNC_FMC_A6 0x5c0d
#define STM32H7_PF12_FUNC_EVENTOUT 0x5c10
#define STM32H7_PF12_FUNC_ANALOG 0x5c11

#define STM32H7_PF13_FUNC_GPIO 0x5d00
#define STM32H7_PF13_FUNC_DFSDM_DATIN6 0x5d04
#define STM32H7_PF13_FUNC_I2C4_SMBA 0x5d05
#define STM32H7_PF13_FUNC_FMC_A7 0x5d0d
#define STM32H7_PF13_FUNC_EVENTOUT 0x5d10
#define STM32H7_PF13_FUNC_ANALOG 0x5d11

#define STM32H7_PF14_FUNC_GPIO 0x5e00
#define STM32H7_PF14_FUNC_DFSDM_CKIN6 0x5e04
#define STM32H7_PF14_FUNC_I2C4_SCL 0x5e05
#define STM32H7_PF14_FUNC_FMC_A8 0x5e0d
#define STM32H7_PF14_FUNC_EVENTOUT 0x5e10
#define STM32H7_PF14_FUNC_ANALOG 0x5e11

#define STM32H7_PF15_FUNC_GPIO 0x5f00
#define STM32H7_PF15_FUNC_I2C4_SDA 0x5f05
#define STM32H7_PF15_FUNC_FMC_A9 0x5f0d
#define STM32H7_PF15_FUNC_EVENTOUT 0x5f10
#define STM32H7_PF15_FUNC_ANALOG 0x5f11

#define STM32H7_PG0_FUNC_GPIO 0x6000
#define STM32H7_PG0_FUNC_FMC_A10 0x600d
#define STM32H7_PG0_FUNC_EVENTOUT 0x6010
#define STM32H7_PG0_FUNC_ANALOG 0x6011

#define STM32H7_PG1_FUNC_GPIO 0x6100
#define STM32H7_PG1_FUNC_FMC_A11 0x610d
#define STM32H7_PG1_FUNC_EVENTOUT 0x6110
#define STM32H7_PG1_FUNC_ANALOG 0x6111

#define STM32H7_PG2_FUNC_GPIO 0x6200
#define STM32H7_PG2_FUNC_TIM8_BKIN 0x6204
#define STM32H7_PG2_FUNC_TIM8_BKIN_COMP12 0x620c
#define STM32H7_PG2_FUNC_FMC_A12 0x620d
#define STM32H7_PG2_FUNC_EVENTOUT 0x6210
#define STM32H7_PG2_FUNC_ANALOG 0x6211

#define STM32H7_PG3_FUNC_GPIO 0x6300
#define STM32H7_PG3_FUNC_TIM8_BKIN2 0x6304
#define STM32H7_PG3_FUNC_TIM8_BKIN2_COMP12 0x630c
#define STM32H7_PG3_FUNC_FMC_A13 0x630d
#define STM32H7_PG3_FUNC_EVENTOUT 0x6310
#define STM32H7_PG3_FUNC_ANALOG 0x6311

#define STM32H7_PG4_FUNC_GPIO 0x6400
#define STM32H7_PG4_FUNC_TIM1_BKIN2 0x6402
#define STM32H7_PG4_FUNC_TIM1_BKIN2_COMP12 0x640c
#define STM32H7_PG4_FUNC_FMC_A14_FMC_BA0 0x640d
#define STM32H7_PG4_FUNC_EVENTOUT 0x6410
#define STM32H7_PG4_FUNC_ANALOG 0x6411

#define STM32H7_PG5_FUNC_GPIO 0x6500
#define STM32H7_PG5_FUNC_TIM1_ETR 0x6502
#define STM32H7_PG5_FUNC_FMC_A15_FMC_BA1 0x650d
#define STM32H7_PG5_FUNC_EVENTOUT 0x6510
#define STM32H7_PG5_FUNC_ANALOG 0x6511

#define STM32H7_PG6_FUNC_GPIO 0x6600
#define STM32H7_PG6_FUNC_TIM17_BKIN 0x6602
#define STM32H7_PG6_FUNC_HRTIM_CHE1 0x6603
#define STM32H7_PG6_FUNC_QUADSPI_BK1_NCS 0x660b
#define STM32H7_PG6_FUNC_FMC_NE3 0x660d
#define STM32H7_PG6_FUNC_DCMI_D12 0x660e
#define STM32H7_PG6_FUNC_LCD_R7 0x660f
#define STM32H7_PG6_FUNC_EVENTOUT 0x6610
#define STM32H7_PG6_FUNC_ANALOG 0x6611

#define STM32H7_PG7_FUNC_GPIO 0x6700
#define STM32H7_PG7_FUNC_HRTIM_CHE2 0x6703
#define STM32H7_PG7_FUNC_SAI1_MCLK_A 0x6707
#define STM32H7_PG7_FUNC_USART6_CK 0x6708
#define STM32H7_PG7_FUNC_FMC_INT 0x670d
#define STM32H7_PG7_FUNC_DCMI_D13 0x670e
#define STM32H7_PG7_FUNC_LCD_CLK 0x670f
#define STM32H7_PG7_FUNC_EVENTOUT 0x6710
#define STM32H7_PG7_FUNC_ANALOG 0x6711

#define STM32H7_PG8_FUNC_GPIO 0x6800
#define STM32H7_PG8_FUNC_TIM8_ETR 0x6804
#define STM32H7_PG8_FUNC_SPI6_NSS 0x6806
#define STM32H7_PG8_FUNC_USART6_RTS 0x6808
#define STM32H7_PG8_FUNC_SPDIFRX_IN2 0x6809
#define STM32H7_PG8_FUNC_ETH_PPS_OUT 0x680c
#define STM32H7_PG8_FUNC_FMC_SDCLK 0x680d
#define STM32H7_PG8_FUNC_LCD_G7 0x680f
#define STM32H7_PG8_FUNC_EVENTOUT 0x6810
#define STM32H7_PG8_FUNC_ANALOG 0x6811

#define STM32H7_PG9_FUNC_GPIO 0x6900
#define STM32H7_PG9_FUNC_SPI1_MISO_I2S1_SDI 0x6906
#define STM32H7_PG9_FUNC_USART6_RX 0x6908
#define STM32H7_PG9_FUNC_SPDIFRX_IN3 0x6909
#define STM32H7_PG9_FUNC_QUADSPI_BK2_IO2 0x690a
#define STM32H7_PG9_FUNC_SAI2_FS_B 0x690b
#define STM32H7_PG9_FUNC_FMC_NE2_FMC_NCE 0x690d
#define STM32H7_PG9_FUNC_DCMI_VSYNC 0x690e
#define STM32H7_PG9_FUNC_EVENTOUT 0x6910
#define STM32H7_PG9_FUNC_ANALOG 0x6911

#define STM32H7_PG10_FUNC_GPIO 0x6a00
#define STM32H7_PG10_FUNC_HRTIM_FLT5 0x6a03
#define STM32H7_PG10_FUNC_SPI1_NSS_I2S1_WS 0x6a06
#define STM32H7_PG10_FUNC_LCD_G3 0x6a0a
#define STM32H7_PG10_FUNC_SAI2_SD_B 0x6a0b
#define STM32H7_PG10_FUNC_FMC_NE3 0x6a0d
#define STM32H7_PG10_FUNC_DCMI_D2 0x6a0e
#define STM32H7_PG10_FUNC_LCD_B2 0x6a0f
#define STM32H7_PG10_FUNC_EVENTOUT 0x6a10
#define STM32H7_PG10_FUNC_ANALOG 0x6a11

#define STM32H7_PG11_FUNC_GPIO 0x6b00
#define STM32H7_PG11_FUNC_HRTIM_EEV4 0x6b03
#define STM32H7_PG11_FUNC_SPI1_SCK_I2S1_CK 0x6b06
#define STM32H7_PG11_FUNC_SPDIFRX_IN0 0x6b09
#define STM32H7_PG11_FUNC_SDMMC2_D2 0x6b0b
#define STM32H7_PG11_FUNC_ETH_MII_TX_EN_ETH_RMII_TX_EN 0x6b0c
#define STM32H7_PG11_FUNC_DCMI_D3 0x6b0e
#define STM32H7_PG11_FUNC_LCD_B3 0x6b0f
#define STM32H7_PG11_FUNC_EVENTOUT 0x6b10
#define STM32H7_PG11_FUNC_ANALOG 0x6b11

#define STM32H7_PG12_FUNC_GPIO 0x6c00
#define STM32H7_PG12_FUNC_LPTIM1_IN1 0x6c02
#define STM32H7_PG12_FUNC_HRTIM_EEV5 0x6c03
#define STM32H7_PG12_FUNC_SPI6_MISO 0x6c06
#define STM32H7_PG12_FUNC_USART6_RTS 0x6c08
#define STM32H7_PG12_FUNC_SPDIFRX_IN1 0x6c09
#define STM32H7_PG12_FUNC_LCD_B4 0x6c0a
#define STM32H7_PG12_FUNC_ETH_MII_TXD1_ETH_RMII_TXD1 0x6c0c
#define STM32H7_PG12_FUNC_FMC_NE4 0x6c0d
#define STM32H7_PG12_FUNC_LCD_B1 0x6c0f
#define STM32H7_PG12_FUNC_EVENTOUT 0x6c10
#define STM32H7_PG12_FUNC_ANALOG 0x6c11

#define STM32H7_PG13_FUNC_GPIO 0x6d00
#define STM32H7_PG13_FUNC_TRACED0 0x6d01
#define STM32H7_PG13_FUNC_LPTIM1_OUT 0x6d02
#define STM32H7_PG13_FUNC_HRTIM_EEV10 0x6d03
#define STM32H7_PG13_FUNC_SPI6_SCK 0x6d06
#define STM32H7_PG13_FUNC_USART6_CTS_NSS 0x6d08
#define STM32H7_PG13_FUNC_ETH_MII_TXD0_ETH_RMII_TXD0 0x6d0c
#define STM32H7_PG13_FUNC_FMC_A24 0x6d0d
#define STM32H7_PG13_FUNC_LCD_R0 0x6d0f
#define STM32H7_PG13_FUNC_EVENTOUT 0x6d10
#define STM32H7_PG13_FUNC_ANALOG 0x6d11

#define STM32H7_PG14_FUNC_GPIO 0x6e00
#define STM32H7_PG14_FUNC_TRACED1 0x6e01
#define STM32H7_PG14_FUNC_LPTIM1_ETR 0x6e02
#define STM32H7_PG14_FUNC_SPI6_MOSI 0x6e06
#define STM32H7_PG14_FUNC_USART6_TX 0x6e08
#define STM32H7_PG14_FUNC_QUADSPI_BK2_IO3 0x6e0a
#define STM32H7_PG14_FUNC_ETH_MII_TXD1_ETH_RMII_TXD1 0x6e0c
#define STM32H7_PG14_FUNC_FMC_A25 0x6e0d
#define STM32H7_PG14_FUNC_LCD_B0 0x6e0f
#define STM32H7_PG14_FUNC_EVENTOUT 0x6e10
#define STM32H7_PG14_FUNC_ANALOG 0x6e11

#define STM32H7_PG15_FUNC_GPIO 0x6f00
#define STM32H7_PG15_FUNC_USART6_CTS_NSS 0x6f08
#define STM32H7_PG15_FUNC_FMC_SDNCAS 0x6f0d
#define STM32H7_PG15_FUNC_DCMI_D13 0x6f0e
#define STM32H7_PG15_FUNC_EVENTOUT 0x6f10
#define STM32H7_PG15_FUNC_ANALOG 0x6f11

#define STM32H7_PH0_FUNC_GPIO 0x7000
#define STM32H7_PH0_FUNC_EVENTOUT 0x7010
#define STM32H7_PH0_FUNC_ANALOG 0x7011

#define STM32H7_PH1_FUNC_GPIO 0x7100
#define STM32H7_PH1_FUNC_EVENTOUT 0x7110
#define STM32H7_PH1_FUNC_ANALOG 0x7111

#define STM32H7_PH2_FUNC_GPIO 0x7200
#define STM32H7_PH2_FUNC_LPTIM1_IN2 0x7202
#define STM32H7_PH2_FUNC_QUADSPI_BK2_IO0 0x720a
#define STM32H7_PH2_FUNC_SAI2_SCK_B 0x720b
#define STM32H7_PH2_FUNC_ETH_MII_CRS 0x720c
#define STM32H7_PH2_FUNC_FMC_SDCKE0 0x720d
#define STM32H7_PH2_FUNC_LCD_R0 0x720f
#define STM32H7_PH2_FUNC_EVENTOUT 0x7210
#define STM32H7_PH2_FUNC_ANALOG 0x7211

#define STM32H7_PH3_FUNC_GPIO 0x7300
#define STM32H7_PH3_FUNC_QUADSPI_BK2_IO1 0x730a
#define STM32H7_PH3_FUNC_SAI2_MCK_B 0x730b
#define STM32H7_PH3_FUNC_ETH_MII_COL 0x730c
#define STM32H7_PH3_FUNC_FMC_SDNE0 0x730d
#define STM32H7_PH3_FUNC_LCD_R1 0x730f
#define STM32H7_PH3_FUNC_EVENTOUT 0x7310
#define STM32H7_PH3_FUNC_ANALOG 0x7311

#define STM32H7_PH4_FUNC_GPIO 0x7400
#define STM32H7_PH4_FUNC_I2C2_SCL 0x7405
#define STM32H7_PH4_FUNC_LCD_G5 0x740a
#define STM32H7_PH4_FUNC_OTG_HS_ULPI_NXT 0x740b
#define STM32H7_PH4_FUNC_LCD_G4 0x740f
#define STM32H7_PH4_FUNC_EVENTOUT 0x7410
#define STM32H7_PH4_FUNC_ANALOG 0x7411

#define STM32H7_PH5_FUNC_GPIO 0x7500
#define STM32H7_PH5_FUNC_I2C2_SDA 0x7505
#define STM32H7_PH5_FUNC_SPI5_NSS 0x7506
#define STM32H7_PH5_FUNC_FMC_SDNWE 0x750d
#define STM32H7_PH5_FUNC_EVENTOUT 0x7510
#define STM32H7_PH5_FUNC_ANALOG 0x7511

#define STM32H7_PH6_FUNC_GPIO 0x7600
#define STM32H7_PH6_FUNC_I2C2_SMBA 0x7605
#define STM32H7_PH6_FUNC_SPI5_SCK 0x7606
#define STM32H7_PH6_FUNC_ETH_MII_RXD2 0x760c
#define STM32H7_PH6_FUNC_FMC_SDNE1 0x760d
#define STM32H7_PH6_FUNC_DCMI_D8 0x760e
#define STM32H7_PH6_FUNC_EVENTOUT 0x7610
#define STM32H7_PH6_FUNC_ANALOG 0x7611

#define STM32H7_PH7_FUNC_GPIO 0x7700
#define STM32H7_PH7_FUNC_I2C3_SCL 0x7705
#define STM32H7_PH7_FUNC_SPI5_MISO 0x7706
#define STM32H7_PH7_FUNC_ETH_MII_RXD3 0x770c
#define STM32H7_PH7_FUNC_FMC_SDCKE1 0x770d
#define STM32H7_PH7_FUNC_DCMI_D9 0x770e
#define STM32H7_PH7_FUNC_EVENTOUT 0x7710
#define STM32H7_PH7_FUNC_ANALOG 0x7711

#define STM32H7_PH8_FUNC_GPIO 0x7800
#define STM32H7_PH8_FUNC_TIM5_ETR 0x7803
#define STM32H7_PH8_FUNC_I2C3_SDA 0x7805
#define STM32H7_PH8_FUNC_FMC_D16 0x780d
#define STM32H7_PH8_FUNC_DCMI_HSYNC 0x780e
#define STM32H7_PH8_FUNC_LCD_R2 0x780f
#define STM32H7_PH8_FUNC_EVENTOUT 0x7810
#define STM32H7_PH8_FUNC_ANALOG 0x7811

#define STM32H7_PH9_FUNC_GPIO 0x7900
#define STM32H7_PH9_FUNC_I2C3_SMBA 0x7905
#define STM32H7_PH9_FUNC_FMC_D17 0x790d
#define STM32H7_PH9_FUNC_DCMI_D0 0x790e
#define STM32H7_PH9_FUNC_LCD_R3 0x790f
#define STM32H7_PH9_FUNC_EVENTOUT 0x7910
#define STM32H7_PH9_FUNC_ANALOG 0x7911

#define STM32H7_PH10_FUNC_GPIO 0x7a00
#define STM32H7_PH10_FUNC_TIM5_CH1 0x7a03
#define STM32H7_PH10_FUNC_I2C4_SMBA 0x7a05
#define STM32H7_PH10_FUNC_FMC_D18 0x7a0d
#define STM32H7_PH10_FUNC_DCMI_D1 0x7a0e
#define STM32H7_PH10_FUNC_LCD_R4 0x7a0f
#define STM32H7_PH10_FUNC_EVENTOUT 0x7a10
#define STM32H7_PH10_FUNC_ANALOG 0x7a11

#define STM32H7_PH11_FUNC_GPIO 0x7b00
#define STM32H7_PH11_FUNC_TIM5_CH2 0x7b03
#define STM32H7_PH11_FUNC_I2C4_SCL 0x7b05
#define STM32H7_PH11_FUNC_FMC_D19 0x7b0d
#define STM32H7_PH11_FUNC_DCMI_D2 0x7b0e
#define STM32H7_PH11_FUNC_LCD_R5 0x7b0f
#define STM32H7_PH11_FUNC_EVENTOUT 0x7b10
#define STM32H7_PH11_FUNC_ANALOG 0x7b11

#define STM32H7_PH12_FUNC_GPIO 0x7c00
#define STM32H7_PH12_FUNC_TIM5_CH3 0x7c03
#define STM32H7_PH12_FUNC_I2C4_SDA 0x7c05
#define STM32H7_PH12_FUNC_FMC_D20 0x7c0d
#define STM32H7_PH12_FUNC_DCMI_D3 0x7c0e
#define STM32H7_PH12_FUNC_LCD_R6 0x7c0f
#define STM32H7_PH12_FUNC_EVENTOUT 0x7c10
#define STM32H7_PH12_FUNC_ANALOG 0x7c11

#define STM32H7_PH13_FUNC_GPIO 0x7d00
#define STM32H7_PH13_FUNC_TIM8_CH1N 0x7d04
#define STM32H7_PH13_FUNC_UART4_TX 0x7d09
#define STM32H7_PH13_FUNC_CAN1_TX 0x7d0a
#define STM32H7_PH13_FUNC_FMC_D21 0x7d0d
#define STM32H7_PH13_FUNC_LCD_G2 0x7d0f
#define STM32H7_PH13_FUNC_EVENTOUT 0x7d10
#define STM32H7_PH13_FUNC_ANALOG 0x7d11

#define STM32H7_PH14_FUNC_GPIO 0x7e00
#define STM32H7_PH14_FUNC_TIM8_CH2N 0x7e04
#define STM32H7_PH14_FUNC_UART4_RX 0x7e09
#define STM32H7_PH14_FUNC_CAN1_RX 0x7e0a
#define STM32H7_PH14_FUNC_FMC_D22 0x7e0d
#define STM32H7_PH14_FUNC_DCMI_D4 0x7e0e
#define STM32H7_PH14_FUNC_LCD_G3 0x7e0f
#define STM32H7_PH14_FUNC_EVENTOUT 0x7e10
#define STM32H7_PH14_FUNC_ANALOG 0x7e11

#define STM32H7_PH15_FUNC_GPIO 0x7f00
#define STM32H7_PH15_FUNC_TIM8_CH3N 0x7f04
#define STM32H7_PH15_FUNC_CAN1_TXFD 0x7f0a
#define STM32H7_PH15_FUNC_FMC_D23 0x7f0d
#define STM32H7_PH15_FUNC_DCMI_D11 0x7f0e
#define STM32H7_PH15_FUNC_LCD_G4 0x7f0f
#define STM32H7_PH15_FUNC_EVENTOUT 0x7f10
#define STM32H7_PH15_FUNC_ANALOG 0x7f11

#define STM32H7_PI0_FUNC_GPIO 0x8000
#define STM32H7_PI0_FUNC_TIM5_CH4 0x8003
#define STM32H7_PI0_FUNC_SPI2_NSS_I2S2_WS 0x8006
#define STM32H7_PI0_FUNC_CAN1_RXFD 0x800a
#define STM32H7_PI0_FUNC_FMC_D24 0x800d
#define STM32H7_PI0_FUNC_DCMI_D13 0x800e
#define STM32H7_PI0_FUNC_LCD_G5 0x800f
#define STM32H7_PI0_FUNC_EVENTOUT 0x8010
#define STM32H7_PI0_FUNC_ANALOG 0x8011

#define STM32H7_PI1_FUNC_GPIO 0x8100
#define STM32H7_PI1_FUNC_TIM8_BKIN2 0x8104
#define STM32H7_PI1_FUNC_SPI2_SCK_I2S2_CK 0x8106
#define STM32H7_PI1_FUNC_TIM8_BKIN2_COMP12 0x810c
#define STM32H7_PI1_FUNC_FMC_D25 0x810d
#define STM32H7_PI1_FUNC_DCMI_D8 0x810e
#define STM32H7_PI1_FUNC_LCD_G6 0x810f
#define STM32H7_PI1_FUNC_EVENTOUT 0x8110
#define STM32H7_PI1_FUNC_ANALOG 0x8111

#define STM32H7_PI2_FUNC_GPIO 0x8200
#define STM32H7_PI2_FUNC_TIM8_CH4 0x8204
#define STM32H7_PI2_FUNC_SPI2_MISO_I2S2_SDI 0x8206
#define STM32H7_PI2_FUNC_FMC_D26 0x820d
#define STM32H7_PI2_FUNC_DCMI_D9 0x820e
#define STM32H7_PI2_FUNC_LCD_G7 0x820f
#define STM32H7_PI2_FUNC_EVENTOUT 0x8210
#define STM32H7_PI2_FUNC_ANALOG 0x8211

#define STM32H7_PI3_FUNC_GPIO 0x8300
#define STM32H7_PI3_FUNC_TIM8_ETR 0x8304
#define STM32H7_PI3_FUNC_SPI2_MOSI_I2S2_SDO 0x8306
#define STM32H7_PI3_FUNC_FMC_D27 0x830d
#define STM32H7_PI3_FUNC_DCMI_D10 0x830e
#define STM32H7_PI3_FUNC_EVENTOUT 0x8310
#define STM32H7_PI3_FUNC_ANALOG 0x8311

#define STM32H7_PI4_FUNC_GPIO 0x8400
#define STM32H7_PI4_FUNC_TIM8_BKIN 0x8404
#define STM32H7_PI4_FUNC_SAI2_MCK_A 0x840b
#define STM32H7_PI4_FUNC_TIM8_BKIN_COMP12 0x840c
#define STM32H7_PI4_FUNC_FMC_NBL2 0x840d
#define STM32H7_PI4_FUNC_DCMI_D5 0x840e
#define STM32H7_PI4_FUNC_LCD_B4 0x840f
#define STM32H7_PI4_FUNC_EVENTOUT 0x8410
#define STM32H7_PI4_FUNC_ANALOG 0x8411

#define STM32H7_PI5_FUNC_GPIO 0x8500
#define STM32H7_PI5_FUNC_TIM8_CH1 0x8504
#define STM32H7_PI5_FUNC_SAI2_SCK_A 0x850b
#define STM32H7_PI5_FUNC_FMC_NBL3 0x850d
#define STM32H7_PI5_FUNC_DCMI_VSYNC 0x850e
#define STM32H7_PI5_FUNC_LCD_B5 0x850f
#define STM32H7_PI5_FUNC_EVENTOUT 0x8510
#define STM32H7_PI5_FUNC_ANALOG 0x8511

#define STM32H7_PI6_FUNC_GPIO 0x8600
#define STM32H7_PI6_FUNC_TIM8_CH2 0x8604
#define STM32H7_PI6_FUNC_SAI2_SD_A 0x860b
#define STM32H7_PI6_FUNC_FMC_D28 0x860d
#define STM32H7_PI6_FUNC_DCMI_D6 0x860e
#define STM32H7_PI6_FUNC_LCD_B6 0x860f
#define STM32H7_PI6_FUNC_EVENTOUT 0x8610
#define STM32H7_PI6_FUNC_ANALOG 0x8611

#define STM32H7_PI7_FUNC_GPIO 0x8700
#define STM32H7_PI7_FUNC_TIM8_CH3 0x8704
#define STM32H7_PI7_FUNC_SAI2_FS_A 0x870b
#define STM32H7_PI7_FUNC_FMC_D29 0x870d
#define STM32H7_PI7_FUNC_DCMI_D7 0x870e
#define STM32H7_PI7_FUNC_LCD_B7 0x870f
#define STM32H7_PI7_FUNC_EVENTOUT 0x8710
#define STM32H7_PI7_FUNC_ANALOG 0x8711

#define STM32H7_PI8_FUNC_GPIO 0x8800
#define STM32H7_PI8_FUNC_EVENTOUT 0x8810
#define STM32H7_PI8_FUNC_ANALOG 0x8811

#define STM32H7_PI9_FUNC_GPIO 0x8900
#define STM32H7_PI9_FUNC_UART4_RX 0x8909
#define STM32H7_PI9_FUNC_CAN1_RX 0x890a
#define STM32H7_PI9_FUNC_FMC_D30 0x890d
#define STM32H7_PI9_FUNC_LCD_VSYNC 0x890f
#define STM32H7_PI9_FUNC_EVENTOUT 0x8910
#define STM32H7_PI9_FUNC_ANALOG 0x8911

#define STM32H7_PI10_FUNC_GPIO 0x8a00
#define STM32H7_PI10_FUNC_CAN1_RXFD 0x8a0a
#define STM32H7_PI10_FUNC_ETH_MII_RX_ER 0x8a0c
#define STM32H7_PI10_FUNC_FMC_D31 0x8a0d
#define STM32H7_PI10_FUNC_LCD_HSYNC 0x8a0f
#define STM32H7_PI10_FUNC_EVENTOUT 0x8a10
#define STM32H7_PI10_FUNC_ANALOG 0x8a11

#define STM32H7_PI11_FUNC_GPIO 0x8b00
#define STM32H7_PI11_FUNC_LCD_G6 0x8b0a
#define STM32H7_PI11_FUNC_OTG_HS_ULPI_DIR 0x8b0b
#define STM32H7_PI11_FUNC_EVENTOUT 0x8b10
#define STM32H7_PI11_FUNC_ANALOG 0x8b11

#define STM32H7_PI12_FUNC_GPIO 0x8c00
#define STM32H7_PI12_FUNC_ETH_TX_ER 0x8c0c
#define STM32H7_PI12_FUNC_LCD_HSYNC 0x8c0f
#define STM32H7_PI12_FUNC_EVENTOUT 0x8c10
#define STM32H7_PI12_FUNC_ANALOG 0x8c11

#define STM32H7_PI13_FUNC_GPIO 0x8d00
#define STM32H7_PI13_FUNC_LCD_VSYNC 0x8d0f
#define STM32H7_PI13_FUNC_EVENTOUT 0x8d10
#define STM32H7_PI13_FUNC_ANALOG 0x8d11

#define STM32H7_PI14_FUNC_GPIO 0x8e00
#define STM32H7_PI14_FUNC_LCD_CLK 0x8e0f
#define STM32H7_PI14_FUNC_EVENTOUT 0x8e10
#define STM32H7_PI14_FUNC_ANALOG 0x8e11

#define STM32H7_PI15_FUNC_GPIO 0x8f00
#define STM32H7_PI15_FUNC_LCD_G2 0x8f0a
#define STM32H7_PI15_FUNC_LCD_R0 0x8f0f
#define STM32H7_PI15_FUNC_EVENTOUT 0x8f10
#define STM32H7_PI15_FUNC_ANALOG 0x8f11

#define STM32H7_PJ0_FUNC_GPIO 0x9000
#define STM32H7_PJ0_FUNC_LCD_R7 0x900a
#define STM32H7_PJ0_FUNC_LCD_R1 0x900f
#define STM32H7_PJ0_FUNC_EVENTOUT 0x9010
#define STM32H7_PJ0_FUNC_ANALOG 0x9011

#define STM32H7_PJ1_FUNC_GPIO 0x9100
#define STM32H7_PJ1_FUNC_LCD_R2 0x910f
#define STM32H7_PJ1_FUNC_EVENTOUT 0x9110
#define STM32H7_PJ1_FUNC_ANALOG 0x9111

#define STM32H7_PJ2_FUNC_GPIO 0x9200
#define STM32H7_PJ2_FUNC_DSI_TE 0x920e
#define STM32H7_PJ2_FUNC_LCD_R3 0x920f
#define STM32H7_PJ2_FUNC_EVENTOUT 0x9210
#define STM32H7_PJ2_FUNC_ANALOG 0x9211

#define STM32H7_PJ3_FUNC_GPIO 0x9300
#define STM32H7_PJ3_FUNC_LCD_R4 0x930f
#define STM32H7_PJ3_FUNC_EVENTOUT 0x9310
#define STM32H7_PJ3_FUNC_ANALOG 0x9311

#define STM32H7_PJ4_FUNC_GPIO 0x9400
#define STM32H7_PJ4_FUNC_LCD_R5 0x940f
#define STM32H7_PJ4_FUNC_EVENTOUT 0x9410
#define STM32H7_PJ4_FUNC_ANALOG 0x9411

#define STM32H7_PJ5_FUNC_GPIO 0x9500
#define STM32H7_PJ5_FUNC_LCD_R6 0x950f
#define STM32H7_PJ5_FUNC_EVENTOUT 0x9510
#define STM32H7_PJ5_FUNC_ANALOG 0x9511

#define STM32H7_PJ6_FUNC_GPIO 0x9600
#define STM32H7_PJ6_FUNC_TIM8_CH2 0x9604
#define STM32H7_PJ6_FUNC_LCD_R7 0x960f
#define STM32H7_PJ6_FUNC_EVENTOUT 0x9610
#define STM32H7_PJ6_FUNC_ANALOG 0x9611

#define STM32H7_PJ7_FUNC_GPIO 0x9700
#define STM32H7_PJ7_FUNC_TRGIN 0x9701
#define STM32H7_PJ7_FUNC_TIM8_CH2N 0x9704
#define STM32H7_PJ7_FUNC_LCD_G0 0x970f
#define STM32H7_PJ7_FUNC_EVENTOUT 0x9710
#define STM32H7_PJ7_FUNC_ANALOG 0x9711

#define STM32H7_PJ8_FUNC_GPIO 0x9800
#define STM32H7_PJ8_FUNC_TIM1_CH3N 0x9802
#define STM32H7_PJ8_FUNC_TIM8_CH1 0x9804
#define STM32H7_PJ8_FUNC_UART8_TX 0x9809
#define STM32H7_PJ8_FUNC_LCD_G1 0x980f
#define STM32H7_PJ8_FUNC_EVENTOUT 0x9810
#define STM32H7_PJ8_FUNC_ANALOG 0x9811

#define STM32H7_PJ9_FUNC_GPIO 0x9900
#define STM32H7_PJ9_FUNC_TIM1_CH3 0x9902
#define STM32H7_PJ9_FUNC_TIM8_CH1N 0x9904
#define STM32H7_PJ9_FUNC_UART8_RX 0x9909
#define STM32H7_PJ9_FUNC_LCD_G2 0x990f
#define STM32H7_PJ9_FUNC_EVENTOUT 0x9910
#define STM32H7_PJ9_FUNC_ANALOG 0x9911

#define STM32H7_PJ10_FUNC_GPIO 0x9a00
#define STM32H7_PJ10_FUNC_TIM1_CH2N 0x9a02
#define STM32H7_PJ10_FUNC_TIM8_CH2 0x9a04
#define STM32H7_PJ10_FUNC_SPI5_MOSI 0x9a06
#define STM32H7_PJ10_FUNC_LCD_G3 0x9a0f
#define STM32H7_PJ10_FUNC_EVENTOUT 0x9a10
#define STM32H7_PJ10_FUNC_ANALOG 0x9a11

#define STM32H7_PJ11_FUNC_GPIO 0x9b00
#define STM32H7_PJ11_FUNC_TIM1_CH2 0x9b02
#define STM32H7_PJ11_FUNC_TIM8_CH2N 0x9b04
#define STM32H7_PJ11_FUNC_SPI5_MISO 0x9b06
#define STM32H7_PJ11_FUNC_LCD_G4 0x9b0f
#define STM32H7_PJ11_FUNC_EVENTOUT 0x9b10
#define STM32H7_PJ11_FUNC_ANALOG 0x9b11

#define STM32H7_PJ12_FUNC_GPIO 0x9c00
#define STM32H7_PJ12_FUNC_TRGOUT 0x9c01
#define STM32H7_PJ12_FUNC_LCD_G3 0x9c0a
#define STM32H7_PJ12_FUNC_LCD_B0 0x9c0f
#define STM32H7_PJ12_FUNC_EVENTOUT 0x9c10
#define STM32H7_PJ12_FUNC_ANALOG 0x9c11

#define STM32H7_PJ13_FUNC_GPIO 0x9d00
#define STM32H7_PJ13_FUNC_LCD_B4 0x9d0a
#define STM32H7_PJ13_FUNC_LCD_B1 0x9d0f
#define STM32H7_PJ13_FUNC_EVENTOUT 0x9d10
#define STM32H7_PJ13_FUNC_ANALOG 0x9d11

#define STM32H7_PJ14_FUNC_GPIO 0x9e00
#define STM32H7_PJ14_FUNC_LCD_B2 0x9e0f
#define STM32H7_PJ14_FUNC_EVENTOUT 0x9e10
#define STM32H7_PJ14_FUNC_ANALOG 0x9e11

#define STM32H7_PJ15_FUNC_GPIO 0x9f00
#define STM32H7_PJ15_FUNC_LCD_B3 0x9f0f
#define STM32H7_PJ15_FUNC_EVENTOUT 0x9f10
#define STM32H7_PJ15_FUNC_ANALOG 0x9f11

#define STM32H7_PK0_FUNC_GPIO 0xa000
#define STM32H7_PK0_FUNC_TIM1_CH1N 0xa002
#define STM32H7_PK0_FUNC_TIM8_CH3 0xa004
#define STM32H7_PK0_FUNC_SPI5_SCK 0xa006
#define STM32H7_PK0_FUNC_LCD_G5 0xa00f
#define STM32H7_PK0_FUNC_EVENTOUT 0xa010
#define STM32H7_PK0_FUNC_ANALOG 0xa011

#define STM32H7_PK1_FUNC_GPIO 0xa100
#define STM32H7_PK1_FUNC_TIM1_CH1 0xa102
#define STM32H7_PK1_FUNC_TIM8_CH3N 0xa104
#define STM32H7_PK1_FUNC_SPI5_NSS 0xa106
#define STM32H7_PK1_FUNC_LCD_G6 0xa10f
#define STM32H7_PK1_FUNC_EVENTOUT 0xa110
#define STM32H7_PK1_FUNC_ANALOG 0xa111

#define STM32H7_PK2_FUNC_GPIO 0xa200
#define STM32H7_PK2_FUNC_TIM1_BKIN 0xa202
#define STM32H7_PK2_FUNC_TIM8_BKIN 0xa204
#define STM32H7_PK2_FUNC_TIM8_BKIN_COMP12 0xa20b
#define STM32H7_PK2_FUNC_TIM1_BKIN_COMP12 0xa20c
#define STM32H7_PK2_FUNC_LCD_G7 0xa20f
#define STM32H7_PK2_FUNC_EVENTOUT 0xa210
#define STM32H7_PK2_FUNC_ANALOG 0xa211

#define STM32H7_PK3_FUNC_GPIO 0xa300
#define STM32H7_PK3_FUNC_LCD_B4 0xa30f
#define STM32H7_PK3_FUNC_EVENTOUT 0xa310
#define STM32H7_PK3_FUNC_ANALOG 0xa311

#define STM32H7_PK4_FUNC_GPIO 0xa400
#define STM32H7_PK4_FUNC_LCD_B5 0xa40f
#define STM32H7_PK4_FUNC_EVENTOUT 0xa410
#define STM32H7_PK4_FUNC_ANALOG 0xa411

#define STM32H7_PK5_FUNC_GPIO 0xa500
#define STM32H7_PK5_FUNC_LCD_B6 0xa50f
#define STM32H7_PK5_FUNC_EVENTOUT 0xa510
#define STM32H7_PK5_FUNC_ANALOG 0xa511

#define STM32H7_PK6_FUNC_GPIO 0xa600
#define STM32H7_PK6_FUNC_LCD_B7 0xa60f
#define STM32H7_PK6_FUNC_EVENTOUT 0xa610
#define STM32H7_PK6_FUNC_ANALOG 0xa611

#define STM32H7_PK7_FUNC_GPIO 0xa700
#define STM32H7_PK7_FUNC_LCD_DE 0xa70f
#define STM32H7_PK7_FUNC_EVENTOUT 0xa710
#define STM32H7_PK7_FUNC_ANALOG 0xa711

#endif /* _DT_BINDINGS_STM32H7_PINFUNC_H */