py32csdk-hal-sys 0.4.0

PY32 HAL bindings
Documentation
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
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
/* automatically generated by rust-bindgen 0.69.4 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
    storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
    #[inline]
    pub const fn new(storage: Storage) -> Self {
        Self { storage }
    }
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    #[inline]
    pub fn get_bit(&self, index: usize) -> bool {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = self.storage.as_ref()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        byte & mask == mask
    }
    #[inline]
    pub fn set_bit(&mut self, index: usize, val: bool) {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = &mut self.storage.as_mut()[byte_index];
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        if val {
            *byte |= mask;
        } else {
            *byte &= !mask;
        }
    }
    #[inline]
    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if self.get_bit(i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            self.set_bit(index + bit_offset, val_bit_is_set);
        }
    }
}
pub const HSI_VALUE: u32 = 8000000u32 as u32;
pub const HSE_VALUE: u32 = 24000000u32 as u32;
pub const HSE_STARTUP_TIMEOUT: u32 = 200u8 as u32;
pub const LSI_VALUE: u32 = 32768u16 as u32;
pub const LSE_VALUE: u32 = 32768u16 as u32;
pub const LSE_STARTUP_TIMEOUT: u32 = 5000u16 as u32;
pub const VDD_VALUE: u32 = 3300u16 as u32;
pub const PRIORITY_HIGHEST: u32 = 0;
pub const PRIORITY_HIGH: u32 = 1;
pub const PRIORITY_LOW: u32 = 2;
pub const PRIORITY_LOWEST: u32 = 3;
pub const TICK_INT_PRIORITY: u32 = 3u8 as u32;
pub const USE_RTOS: u32 = 0;
pub const PREFETCH_ENABLE: u32 = 0;
pub const __PY32F0_DEVICE_VERSION_MAIN: u32 = 1;
pub const __PY32F0_DEVICE_VERSION_SUB1: u32 = 0;
pub const __PY32F0_DEVICE_VERSION_SUB2: u32 = 0;
pub const __PY32F0_DEVICE_VERSION_RC: u32 = 0;
pub const __PY32F0_DEVICE_VERSION: u32 = 16777216;
pub const __CM0PLUS_REV: u32 = 0;
pub const __MPU_PRESENT: u32 = 0;
pub const __VTOR_PRESENT: u32 = 1;
pub const __NVIC_PRIO_BITS: u32 = 2;
pub const __Vendor_SysTickConfig: u32 = 0;
#[doc = "< 2 Non Maskable Interrupt"]
pub const IRQn_Type_NonMaskableInt_IRQn: IRQn_Type = -14;
#[doc = "< 3 Cortex-M Hard Fault Interrupt"]
pub const IRQn_Type_HardFault_IRQn: IRQn_Type = -13;
#[doc = "< 11 Cortex-M SV Call Interrupt"]
pub const IRQn_Type_SVC_IRQn: IRQn_Type = -5;
#[doc = "< 14 Cortex-M Pend SV Interrupt"]
pub const IRQn_Type_PendSV_IRQn: IRQn_Type = -2;
#[doc = "< 15 Cortex-M System Tick Interrupt"]
pub const IRQn_Type_SysTick_IRQn: IRQn_Type = -1;
#[doc = "< Window WatchDog Interrupt"]
pub const IRQn_Type_WWDG_IRQn: IRQn_Type = 0;
#[doc = "< PVD through EXTI Line detection Interrupt(EXTI line 16)"]
pub const IRQn_Type_PVD_IRQn: IRQn_Type = 1;
#[doc = "< RTC interrupt through the EXTI line 19"]
pub const IRQn_Type_RTC_IRQn: IRQn_Type = 2;
#[doc = "< FLASH global Interrupt"]
pub const IRQn_Type_FLASH_IRQn: IRQn_Type = 3;
#[doc = "< RCC global Interrupt"]
pub const IRQn_Type_RCC_IRQn: IRQn_Type = 4;
#[doc = "< EXTI 0 and 1 Interrupts"]
pub const IRQn_Type_EXTI0_1_IRQn: IRQn_Type = 5;
#[doc = "< EXTI Line 2 and 3 Interrupts"]
pub const IRQn_Type_EXTI2_3_IRQn: IRQn_Type = 6;
#[doc = "< EXTI Line 4 to 15 Interrupts"]
pub const IRQn_Type_EXTI4_15_IRQn: IRQn_Type = 7;
#[doc = "< DMA1 Channel 1 Interrupt"]
pub const IRQn_Type_DMA1_Channel1_IRQn: IRQn_Type = 9;
#[doc = "< DMA1 Channel 2 and Channel 3 Interrupts"]
pub const IRQn_Type_DMA1_Channel2_3_IRQn: IRQn_Type = 10;
#[doc = "< ADC&COMP Interrupts"]
pub const IRQn_Type_ADC_COMP_IRQn: IRQn_Type = 12;
#[doc = "< TIM1 Break, Update, Trigger and Commutation Interrupts"]
pub const IRQn_Type_TIM1_BRK_UP_TRG_COM_IRQn: IRQn_Type = 13;
#[doc = "< TIM1 Capture Compare Interrupt"]
pub const IRQn_Type_TIM1_CC_IRQn: IRQn_Type = 14;
#[doc = "< TIM3 global Interrupt"]
pub const IRQn_Type_TIM3_IRQn: IRQn_Type = 16;
#[doc = "< LPTIM1 global Interrupts"]
pub const IRQn_Type_LPTIM1_IRQn: IRQn_Type = 17;
#[doc = "< TIM14 global Interrupt"]
pub const IRQn_Type_TIM14_IRQn: IRQn_Type = 19;
#[doc = "< TIM16 global Interrupt"]
pub const IRQn_Type_TIM16_IRQn: IRQn_Type = 21;
#[doc = "< TIM17 global Interrupt"]
pub const IRQn_Type_TIM17_IRQn: IRQn_Type = 22;
#[doc = "< I2C1 Interrupt  (combined with EXTI 23)"]
pub const IRQn_Type_I2C1_IRQn: IRQn_Type = 23;
#[doc = "< SPI1 Interrupt"]
pub const IRQn_Type_SPI1_IRQn: IRQn_Type = 25;
#[doc = "< SPI2 Interrupt"]
pub const IRQn_Type_SPI2_IRQn: IRQn_Type = 26;
#[doc = "< USART1 Interrupt"]
pub const IRQn_Type_USART1_IRQn: IRQn_Type = 27;
#[doc = "< USART2 Interrupt"]
pub const IRQn_Type_USART2_IRQn: IRQn_Type = 28;
#[doc = "< LED global Interrupt"]
pub const IRQn_Type_LED_IRQn: IRQn_Type = 30;
pub type IRQn_Type = ::core::ffi::c_int;
pub type int_least64_t = i64;
pub type uint_least64_t = u64;
pub type int_fast64_t = i64;
pub type uint_fast64_t = u64;
pub type int_least32_t = i32;
pub type uint_least32_t = u32;
pub type int_fast32_t = i32;
pub type uint_fast32_t = u32;
pub type int_least16_t = i16;
pub type uint_least16_t = u16;
pub type int_fast16_t = i16;
pub type uint_fast16_t = u16;
pub type int_least8_t = i8;
pub type uint_least8_t = u8;
pub type int_fast8_t = i8;
pub type uint_fast8_t = u8;
pub type intmax_t = ::core::ffi::c_longlong;
pub type uintmax_t = ::core::ffi::c_ulonglong;
pub const __CM0PLUS_CMSIS_VERSION_MAIN: u32 = 4;
pub const __CM0PLUS_CMSIS_VERSION_SUB: u32 = 30;
pub const __CM0PLUS_CMSIS_VERSION: u32 = 262174;
pub const __CORTEX_M: u32 = 0;
pub const __FPU_USED: u32 = 0;
#[doc = "\\brief  Union type to access the Application Program Status Register (APSR)."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union APSR_Type {
    #[doc = "< Structure used for bit  access"]
    pub b: APSR_Type__bindgen_ty_1,
    #[doc = "< Type      used for word access"]
    pub w: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct APSR_Type__bindgen_ty_1 {
    pub _bitfield_align_1: [u32; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
const _: () = {
    ["Size of APSR_Type__bindgen_ty_1"][::core::mem::size_of::<APSR_Type__bindgen_ty_1>() - 4usize];
    ["Alignment of APSR_Type__bindgen_ty_1"]
        [::core::mem::align_of::<APSR_Type__bindgen_ty_1>() - 4usize];
};
impl APSR_Type__bindgen_ty_1 {
    #[inline]
    pub fn _reserved0(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 28u8) as u32) }
    }
    #[inline]
    pub fn set__reserved0(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(0usize, 28u8, val as u64)
        }
    }
    #[inline]
    pub fn V(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_V(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(28usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn C(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_C(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(29usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn Z(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_Z(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(30usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn N(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_N(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(31usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        _reserved0: u32,
        V: u32,
        C: u32,
        Z: u32,
        N: u32,
    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 28u8, {
            let _reserved0: u32 = unsafe { ::core::mem::transmute(_reserved0) };
            _reserved0 as u64
        });
        __bindgen_bitfield_unit.set(28usize, 1u8, {
            let V: u32 = unsafe { ::core::mem::transmute(V) };
            V as u64
        });
        __bindgen_bitfield_unit.set(29usize, 1u8, {
            let C: u32 = unsafe { ::core::mem::transmute(C) };
            C as u64
        });
        __bindgen_bitfield_unit.set(30usize, 1u8, {
            let Z: u32 = unsafe { ::core::mem::transmute(Z) };
            Z as u64
        });
        __bindgen_bitfield_unit.set(31usize, 1u8, {
            let N: u32 = unsafe { ::core::mem::transmute(N) };
            N as u64
        });
        __bindgen_bitfield_unit
    }
}
const _: () = {
    ["Size of APSR_Type"][::core::mem::size_of::<APSR_Type>() - 4usize];
    ["Alignment of APSR_Type"][::core::mem::align_of::<APSR_Type>() - 4usize];
    ["Offset of field: APSR_Type::b"][::core::mem::offset_of!(APSR_Type, b) - 0usize];
    ["Offset of field: APSR_Type::w"][::core::mem::offset_of!(APSR_Type, w) - 0usize];
};
pub const APSR_N_Pos: u32 = 31;
pub const APSR_N_Msk: u32 = 2147483648;
pub const APSR_Z_Pos: u32 = 30;
pub const APSR_Z_Msk: u32 = 1073741824;
pub const APSR_C_Pos: u32 = 29;
pub const APSR_C_Msk: u32 = 536870912;
pub const APSR_V_Pos: u32 = 28;
pub const APSR_V_Msk: u32 = 268435456;
#[doc = "\\brief  Union type to access the Interrupt Program Status Register (IPSR)."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union IPSR_Type {
    #[doc = "< Structure used for bit  access"]
    pub b: IPSR_Type__bindgen_ty_1,
    #[doc = "< Type      used for word access"]
    pub w: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IPSR_Type__bindgen_ty_1 {
    pub _bitfield_align_1: [u32; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
const _: () = {
    ["Size of IPSR_Type__bindgen_ty_1"][::core::mem::size_of::<IPSR_Type__bindgen_ty_1>() - 4usize];
    ["Alignment of IPSR_Type__bindgen_ty_1"]
        [::core::mem::align_of::<IPSR_Type__bindgen_ty_1>() - 4usize];
};
impl IPSR_Type__bindgen_ty_1 {
    #[inline]
    pub fn ISR(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 9u8) as u32) }
    }
    #[inline]
    pub fn set_ISR(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(0usize, 9u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserved0(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 23u8) as u32) }
    }
    #[inline]
    pub fn set__reserved0(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(9usize, 23u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(ISR: u32, _reserved0: u32) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 9u8, {
            let ISR: u32 = unsafe { ::core::mem::transmute(ISR) };
            ISR as u64
        });
        __bindgen_bitfield_unit.set(9usize, 23u8, {
            let _reserved0: u32 = unsafe { ::core::mem::transmute(_reserved0) };
            _reserved0 as u64
        });
        __bindgen_bitfield_unit
    }
}
const _: () = {
    ["Size of IPSR_Type"][::core::mem::size_of::<IPSR_Type>() - 4usize];
    ["Alignment of IPSR_Type"][::core::mem::align_of::<IPSR_Type>() - 4usize];
    ["Offset of field: IPSR_Type::b"][::core::mem::offset_of!(IPSR_Type, b) - 0usize];
    ["Offset of field: IPSR_Type::w"][::core::mem::offset_of!(IPSR_Type, w) - 0usize];
};
pub const IPSR_ISR_Pos: u32 = 0;
pub const IPSR_ISR_Msk: u32 = 511;
#[doc = "\\brief  Union type to access the Special-Purpose Program Status Registers (xPSR)."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union xPSR_Type {
    #[doc = "< Structure used for bit  access"]
    pub b: xPSR_Type__bindgen_ty_1,
    #[doc = "< Type      used for word access"]
    pub w: u32,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct xPSR_Type__bindgen_ty_1 {
    pub _bitfield_align_1: [u16; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
const _: () = {
    ["Size of xPSR_Type__bindgen_ty_1"][::core::mem::size_of::<xPSR_Type__bindgen_ty_1>() - 4usize];
    ["Alignment of xPSR_Type__bindgen_ty_1"]
        [::core::mem::align_of::<xPSR_Type__bindgen_ty_1>() - 4usize];
};
impl xPSR_Type__bindgen_ty_1 {
    #[inline]
    pub fn ISR(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 9u8) as u32) }
    }
    #[inline]
    pub fn set_ISR(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(0usize, 9u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserved0(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(9usize, 15u8) as u32) }
    }
    #[inline]
    pub fn set__reserved0(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(9usize, 15u8, val as u64)
        }
    }
    #[inline]
    pub fn T(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(24usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_T(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(24usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserved1(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(25usize, 3u8) as u32) }
    }
    #[inline]
    pub fn set__reserved1(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(25usize, 3u8, val as u64)
        }
    }
    #[inline]
    pub fn V(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(28usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_V(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(28usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn C(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(29usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_C(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(29usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn Z(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(30usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_Z(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(30usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn N(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(31usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_N(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(31usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        ISR: u32,
        _reserved0: u32,
        T: u32,
        _reserved1: u32,
        V: u32,
        C: u32,
        Z: u32,
        N: u32,
    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 9u8, {
            let ISR: u32 = unsafe { ::core::mem::transmute(ISR) };
            ISR as u64
        });
        __bindgen_bitfield_unit.set(9usize, 15u8, {
            let _reserved0: u32 = unsafe { ::core::mem::transmute(_reserved0) };
            _reserved0 as u64
        });
        __bindgen_bitfield_unit.set(24usize, 1u8, {
            let T: u32 = unsafe { ::core::mem::transmute(T) };
            T as u64
        });
        __bindgen_bitfield_unit.set(25usize, 3u8, {
            let _reserved1: u32 = unsafe { ::core::mem::transmute(_reserved1) };
            _reserved1 as u64
        });
        __bindgen_bitfield_unit.set(28usize, 1u8, {
            let V: u32 = unsafe { ::core::mem::transmute(V) };
            V as u64
        });
        __bindgen_bitfield_unit.set(29usize, 1u8, {
            let C: u32 = unsafe { ::core::mem::transmute(C) };
            C as u64
        });
        __bindgen_bitfield_unit.set(30usize, 1u8, {
            let Z: u32 = unsafe { ::core::mem::transmute(Z) };
            Z as u64
        });
        __bindgen_bitfield_unit.set(31usize, 1u8, {
            let N: u32 = unsafe { ::core::mem::transmute(N) };
            N as u64
        });
        __bindgen_bitfield_unit
    }
}
const _: () = {
    ["Size of xPSR_Type"][::core::mem::size_of::<xPSR_Type>() - 4usize];
    ["Alignment of xPSR_Type"][::core::mem::align_of::<xPSR_Type>() - 4usize];
    ["Offset of field: xPSR_Type::b"][::core::mem::offset_of!(xPSR_Type, b) - 0usize];
    ["Offset of field: xPSR_Type::w"][::core::mem::offset_of!(xPSR_Type, w) - 0usize];
};
pub const xPSR_N_Pos: u32 = 31;
pub const xPSR_N_Msk: u32 = 2147483648;
pub const xPSR_Z_Pos: u32 = 30;
pub const xPSR_Z_Msk: u32 = 1073741824;
pub const xPSR_C_Pos: u32 = 29;
pub const xPSR_C_Msk: u32 = 536870912;
pub const xPSR_V_Pos: u32 = 28;
pub const xPSR_V_Msk: u32 = 268435456;
pub const xPSR_T_Pos: u32 = 24;
pub const xPSR_T_Msk: u32 = 16777216;
pub const xPSR_ISR_Pos: u32 = 0;
pub const xPSR_ISR_Msk: u32 = 511;
#[doc = "\\brief  Union type to access the Control Registers (CONTROL)."]
#[repr(C)]
#[derive(Copy, Clone)]
pub union CONTROL_Type {
    #[doc = "< Structure used for bit  access"]
    pub b: CONTROL_Type__bindgen_ty_1,
    #[doc = "< Type      used for word access"]
    pub w: u32,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CONTROL_Type__bindgen_ty_1 {
    pub _bitfield_align_1: [u32; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
const _: () = {
    ["Size of CONTROL_Type__bindgen_ty_1"]
        [::core::mem::size_of::<CONTROL_Type__bindgen_ty_1>() - 4usize];
    ["Alignment of CONTROL_Type__bindgen_ty_1"]
        [::core::mem::align_of::<CONTROL_Type__bindgen_ty_1>() - 4usize];
};
impl CONTROL_Type__bindgen_ty_1 {
    #[inline]
    pub fn nPRIV(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_nPRIV(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(0usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn SPSEL(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_SPSEL(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(1usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub fn _reserved1(&self) -> u32 {
        unsafe { ::core::mem::transmute(self._bitfield_1.get(2usize, 30u8) as u32) }
    }
    #[inline]
    pub fn set__reserved1(&mut self, val: u32) {
        unsafe {
            let val: u32 = ::core::mem::transmute(val);
            self._bitfield_1.set(2usize, 30u8, val as u64)
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        nPRIV: u32,
        SPSEL: u32,
        _reserved1: u32,
    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 1u8, {
            let nPRIV: u32 = unsafe { ::core::mem::transmute(nPRIV) };
            nPRIV as u64
        });
        __bindgen_bitfield_unit.set(1usize, 1u8, {
            let SPSEL: u32 = unsafe { ::core::mem::transmute(SPSEL) };
            SPSEL as u64
        });
        __bindgen_bitfield_unit.set(2usize, 30u8, {
            let _reserved1: u32 = unsafe { ::core::mem::transmute(_reserved1) };
            _reserved1 as u64
        });
        __bindgen_bitfield_unit
    }
}
const _: () = {
    ["Size of CONTROL_Type"][::core::mem::size_of::<CONTROL_Type>() - 4usize];
    ["Alignment of CONTROL_Type"][::core::mem::align_of::<CONTROL_Type>() - 4usize];
    ["Offset of field: CONTROL_Type::b"][::core::mem::offset_of!(CONTROL_Type, b) - 0usize];
    ["Offset of field: CONTROL_Type::w"][::core::mem::offset_of!(CONTROL_Type, w) - 0usize];
};
pub const CONTROL_SPSEL_Pos: u32 = 1;
pub const CONTROL_SPSEL_Msk: u32 = 2;
pub const CONTROL_nPRIV_Pos: u32 = 0;
pub const CONTROL_nPRIV_Msk: u32 = 1;
#[doc = "\\brief  Structure type to access the Nested Vectored Interrupt Controller (NVIC)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct NVIC_Type {
    #[doc = "< Offset: 0x000 (R/W)  Interrupt Set Enable Register"]
    pub ISER: [u32; 1usize],
    pub RESERVED0: [u32; 31usize],
    #[doc = "< Offset: 0x080 (R/W)  Interrupt Clear Enable Register"]
    pub ICER: [u32; 1usize],
    pub RSERVED1: [u32; 31usize],
    #[doc = "< Offset: 0x100 (R/W)  Interrupt Set Pending Register"]
    pub ISPR: [u32; 1usize],
    pub RESERVED2: [u32; 31usize],
    #[doc = "< Offset: 0x180 (R/W)  Interrupt Clear Pending Register"]
    pub ICPR: [u32; 1usize],
    pub RESERVED3: [u32; 31usize],
    pub RESERVED4: [u32; 64usize],
    #[doc = "< Offset: 0x300 (R/W)  Interrupt Priority Register"]
    pub IP: [u32; 8usize],
}
const _: () = {
    ["Size of NVIC_Type"][::core::mem::size_of::<NVIC_Type>() - 800usize];
    ["Alignment of NVIC_Type"][::core::mem::align_of::<NVIC_Type>() - 4usize];
    ["Offset of field: NVIC_Type::ISER"][::core::mem::offset_of!(NVIC_Type, ISER) - 0usize];
    ["Offset of field: NVIC_Type::RESERVED0"]
        [::core::mem::offset_of!(NVIC_Type, RESERVED0) - 4usize];
    ["Offset of field: NVIC_Type::ICER"][::core::mem::offset_of!(NVIC_Type, ICER) - 128usize];
    ["Offset of field: NVIC_Type::RSERVED1"]
        [::core::mem::offset_of!(NVIC_Type, RSERVED1) - 132usize];
    ["Offset of field: NVIC_Type::ISPR"][::core::mem::offset_of!(NVIC_Type, ISPR) - 256usize];
    ["Offset of field: NVIC_Type::RESERVED2"]
        [::core::mem::offset_of!(NVIC_Type, RESERVED2) - 260usize];
    ["Offset of field: NVIC_Type::ICPR"][::core::mem::offset_of!(NVIC_Type, ICPR) - 384usize];
    ["Offset of field: NVIC_Type::RESERVED3"]
        [::core::mem::offset_of!(NVIC_Type, RESERVED3) - 388usize];
    ["Offset of field: NVIC_Type::RESERVED4"]
        [::core::mem::offset_of!(NVIC_Type, RESERVED4) - 512usize];
    ["Offset of field: NVIC_Type::IP"][::core::mem::offset_of!(NVIC_Type, IP) - 768usize];
};
#[doc = "\\brief  Structure type to access the System Control Block (SCB)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SCB_Type {
    #[doc = "< Offset: 0x000 (R/ )  CPUID Base Register"]
    pub CPUID: u32,
    #[doc = "< Offset: 0x004 (R/W)  Interrupt Control and State Register"]
    pub ICSR: u32,
    #[doc = "< Offset: 0x008 (R/W)  Vector Table Offset Register"]
    pub VTOR: u32,
    #[doc = "< Offset: 0x00C (R/W)  Application Interrupt and Reset Control Register"]
    pub AIRCR: u32,
    #[doc = "< Offset: 0x010 (R/W)  System Control Register"]
    pub SCR: u32,
    #[doc = "< Offset: 0x014 (R/W)  Configuration Control Register"]
    pub CCR: u32,
    pub RESERVED1: u32,
    #[doc = "< Offset: 0x01C (R/W)  System Handlers Priority Registers. [0] is RESERVED"]
    pub SHP: [u32; 2usize],
    #[doc = "< Offset: 0x024 (R/W)  System Handler Control and State Register"]
    pub SHCSR: u32,
}
const _: () = {
    ["Size of SCB_Type"][::core::mem::size_of::<SCB_Type>() - 40usize];
    ["Alignment of SCB_Type"][::core::mem::align_of::<SCB_Type>() - 4usize];
    ["Offset of field: SCB_Type::CPUID"][::core::mem::offset_of!(SCB_Type, CPUID) - 0usize];
    ["Offset of field: SCB_Type::ICSR"][::core::mem::offset_of!(SCB_Type, ICSR) - 4usize];
    ["Offset of field: SCB_Type::VTOR"][::core::mem::offset_of!(SCB_Type, VTOR) - 8usize];
    ["Offset of field: SCB_Type::AIRCR"][::core::mem::offset_of!(SCB_Type, AIRCR) - 12usize];
    ["Offset of field: SCB_Type::SCR"][::core::mem::offset_of!(SCB_Type, SCR) - 16usize];
    ["Offset of field: SCB_Type::CCR"][::core::mem::offset_of!(SCB_Type, CCR) - 20usize];
    ["Offset of field: SCB_Type::RESERVED1"]
        [::core::mem::offset_of!(SCB_Type, RESERVED1) - 24usize];
    ["Offset of field: SCB_Type::SHP"][::core::mem::offset_of!(SCB_Type, SHP) - 28usize];
    ["Offset of field: SCB_Type::SHCSR"][::core::mem::offset_of!(SCB_Type, SHCSR) - 36usize];
};
pub const SCB_CPUID_IMPLEMENTER_Pos: u32 = 24;
pub const SCB_CPUID_IMPLEMENTER_Msk: u32 = 4278190080;
pub const SCB_CPUID_VARIANT_Pos: u32 = 20;
pub const SCB_CPUID_VARIANT_Msk: u32 = 15728640;
pub const SCB_CPUID_ARCHITECTURE_Pos: u32 = 16;
pub const SCB_CPUID_ARCHITECTURE_Msk: u32 = 983040;
pub const SCB_CPUID_PARTNO_Pos: u32 = 4;
pub const SCB_CPUID_PARTNO_Msk: u32 = 65520;
pub const SCB_CPUID_REVISION_Pos: u32 = 0;
pub const SCB_CPUID_REVISION_Msk: u32 = 15;
pub const SCB_ICSR_NMIPENDSET_Pos: u32 = 31;
pub const SCB_ICSR_NMIPENDSET_Msk: u32 = 2147483648;
pub const SCB_ICSR_PENDSVSET_Pos: u32 = 28;
pub const SCB_ICSR_PENDSVSET_Msk: u32 = 268435456;
pub const SCB_ICSR_PENDSVCLR_Pos: u32 = 27;
pub const SCB_ICSR_PENDSVCLR_Msk: u32 = 134217728;
pub const SCB_ICSR_PENDSTSET_Pos: u32 = 26;
pub const SCB_ICSR_PENDSTSET_Msk: u32 = 67108864;
pub const SCB_ICSR_PENDSTCLR_Pos: u32 = 25;
pub const SCB_ICSR_PENDSTCLR_Msk: u32 = 33554432;
pub const SCB_ICSR_ISRPREEMPT_Pos: u32 = 23;
pub const SCB_ICSR_ISRPREEMPT_Msk: u32 = 8388608;
pub const SCB_ICSR_ISRPENDING_Pos: u32 = 22;
pub const SCB_ICSR_ISRPENDING_Msk: u32 = 4194304;
pub const SCB_ICSR_VECTPENDING_Pos: u32 = 12;
pub const SCB_ICSR_VECTPENDING_Msk: u32 = 2093056;
pub const SCB_ICSR_VECTACTIVE_Pos: u32 = 0;
pub const SCB_ICSR_VECTACTIVE_Msk: u32 = 511;
pub const SCB_VTOR_TBLOFF_Pos: u32 = 8;
pub const SCB_VTOR_TBLOFF_Msk: u32 = 4294967040;
pub const SCB_AIRCR_VECTKEY_Pos: u32 = 16;
pub const SCB_AIRCR_VECTKEY_Msk: u32 = 4294901760;
pub const SCB_AIRCR_VECTKEYSTAT_Pos: u32 = 16;
pub const SCB_AIRCR_VECTKEYSTAT_Msk: u32 = 4294901760;
pub const SCB_AIRCR_ENDIANESS_Pos: u32 = 15;
pub const SCB_AIRCR_ENDIANESS_Msk: u32 = 32768;
pub const SCB_AIRCR_SYSRESETREQ_Pos: u32 = 2;
pub const SCB_AIRCR_SYSRESETREQ_Msk: u32 = 4;
pub const SCB_AIRCR_VECTCLRACTIVE_Pos: u32 = 1;
pub const SCB_AIRCR_VECTCLRACTIVE_Msk: u32 = 2;
pub const SCB_SCR_SEVONPEND_Pos: u32 = 4;
pub const SCB_SCR_SEVONPEND_Msk: u32 = 16;
pub const SCB_SCR_SLEEPDEEP_Pos: u32 = 2;
pub const SCB_SCR_SLEEPDEEP_Msk: u32 = 4;
pub const SCB_SCR_SLEEPONEXIT_Pos: u32 = 1;
pub const SCB_SCR_SLEEPONEXIT_Msk: u32 = 2;
pub const SCB_CCR_STKALIGN_Pos: u32 = 9;
pub const SCB_CCR_STKALIGN_Msk: u32 = 512;
pub const SCB_CCR_UNALIGN_TRP_Pos: u32 = 3;
pub const SCB_CCR_UNALIGN_TRP_Msk: u32 = 8;
pub const SCB_SHCSR_SVCALLPENDED_Pos: u32 = 15;
pub const SCB_SHCSR_SVCALLPENDED_Msk: u32 = 32768;
#[doc = "\\brief  Structure type to access the System Timer (SysTick)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SysTick_Type {
    #[doc = "< Offset: 0x000 (R/W)  SysTick Control and Status Register"]
    pub CTRL: u32,
    #[doc = "< Offset: 0x004 (R/W)  SysTick Reload Value Register"]
    pub LOAD: u32,
    #[doc = "< Offset: 0x008 (R/W)  SysTick Current Value Register"]
    pub VAL: u32,
    #[doc = "< Offset: 0x00C (R/ )  SysTick Calibration Register"]
    pub CALIB: u32,
}
const _: () = {
    ["Size of SysTick_Type"][::core::mem::size_of::<SysTick_Type>() - 16usize];
    ["Alignment of SysTick_Type"][::core::mem::align_of::<SysTick_Type>() - 4usize];
    ["Offset of field: SysTick_Type::CTRL"][::core::mem::offset_of!(SysTick_Type, CTRL) - 0usize];
    ["Offset of field: SysTick_Type::LOAD"][::core::mem::offset_of!(SysTick_Type, LOAD) - 4usize];
    ["Offset of field: SysTick_Type::VAL"][::core::mem::offset_of!(SysTick_Type, VAL) - 8usize];
    ["Offset of field: SysTick_Type::CALIB"]
        [::core::mem::offset_of!(SysTick_Type, CALIB) - 12usize];
};
pub const SysTick_CTRL_COUNTFLAG_Pos: u32 = 16;
pub const SysTick_CTRL_COUNTFLAG_Msk: u32 = 65536;
pub const SysTick_CTRL_CLKSOURCE_Pos: u32 = 2;
pub const SysTick_CTRL_CLKSOURCE_Msk: u32 = 4;
pub const SysTick_CTRL_TICKINT_Pos: u32 = 1;
pub const SysTick_CTRL_TICKINT_Msk: u32 = 2;
pub const SysTick_CTRL_ENABLE_Pos: u32 = 0;
pub const SysTick_CTRL_ENABLE_Msk: u32 = 1;
pub const SysTick_LOAD_RELOAD_Pos: u32 = 0;
pub const SysTick_LOAD_RELOAD_Msk: u32 = 16777215;
pub const SysTick_VAL_CURRENT_Pos: u32 = 0;
pub const SysTick_VAL_CURRENT_Msk: u32 = 16777215;
pub const SysTick_CALIB_NOREF_Pos: u32 = 31;
pub const SysTick_CALIB_NOREF_Msk: u32 = 2147483648;
pub const SysTick_CALIB_SKEW_Pos: u32 = 30;
pub const SysTick_CALIB_SKEW_Msk: u32 = 1073741824;
pub const SysTick_CALIB_TENMS_Pos: u32 = 0;
pub const SysTick_CALIB_TENMS_Msk: u32 = 16777215;
pub const SCS_BASE: u32 = 3758153728;
pub const SysTick_BASE: u32 = 3758153744;
pub const NVIC_BASE: u32 = 3758153984;
pub const SCB_BASE: u32 = 3758157056;
pub const SCB: *mut SCB_Type = 3758157056u32 as *mut SCB_Type;
pub const SysTick: *mut SysTick_Type = 3758153744u32 as *mut SysTick_Type;
pub const NVIC: *mut NVIC_Type = 3758153984u32 as *mut NVIC_Type;
extern "C" {
    #[doc = "< System Clock Frequency (Core Clock)"]
    pub static mut SystemCoreClock: u32;
}
extern "C" {
    #[doc = "< AHB prescalers table values"]
    pub static AHBPrescTable: [u32; 16usize];
}
extern "C" {
    #[doc = "< APB prescalers table values"]
    pub static APBPrescTable: [u32; 8usize];
}
extern "C" {
    #[doc = "< HSI frequency table values"]
    pub static HSIFreqTable: [u32; 8usize];
}
extern "C" {
    #[doc = " @addtogroup PY32F0xx_System_Exported_Functions\n @{"]
    pub fn SystemInit();
}
extern "C" {
    pub fn SystemCoreClockUpdate();
}
#[doc = " @brief Analog to Digital Converter"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ADC_TypeDef {
    #[doc = "< ADC interrupt and status register,             Address offset: 0x00"]
    pub ISR: u32,
    #[doc = "< ADC interrupt enable register,                 Address offset: 0x04"]
    pub IER: u32,
    #[doc = "< ADC control register,                          Address offset: 0x08"]
    pub CR: u32,
    #[doc = "< ADC configuration register 1,                  Address offset: 0x0C"]
    pub CFGR1: u32,
    #[doc = "< ADC configuration register 2,                  Address offset: 0x10"]
    pub CFGR2: u32,
    #[doc = "< ADC sampling time register,                    Address offset: 0x14"]
    pub SMPR: u32,
    #[doc = "< Reserved,                                                      0x18-0x1C"]
    pub RESERVED1: [u32; 2usize],
    #[doc = "< ADC analog watchdog 1 threshold register,      Address offset: 0x20"]
    pub TR: u32,
    #[doc = "< Reserved,                                                      0x24"]
    pub RESERVED2: u32,
    #[doc = "< ADC group regular sequencer register,          Address offset: 0x28"]
    pub CHSELR: u32,
    #[doc = "< Reserved,                                                      0x2C"]
    pub RESERVED3: [u32; 5usize],
    #[doc = "< ADC group regular data register,               Address offset: 0x40"]
    pub DR: u32,
    #[doc = "< ADC calibration configuration&status register  Address offset: 0x44"]
    pub CCSR: u32,
}
const _: () = {
    ["Size of ADC_TypeDef"][::core::mem::size_of::<ADC_TypeDef>() - 72usize];
    ["Alignment of ADC_TypeDef"][::core::mem::align_of::<ADC_TypeDef>() - 4usize];
    ["Offset of field: ADC_TypeDef::ISR"][::core::mem::offset_of!(ADC_TypeDef, ISR) - 0usize];
    ["Offset of field: ADC_TypeDef::IER"][::core::mem::offset_of!(ADC_TypeDef, IER) - 4usize];
    ["Offset of field: ADC_TypeDef::CR"][::core::mem::offset_of!(ADC_TypeDef, CR) - 8usize];
    ["Offset of field: ADC_TypeDef::CFGR1"][::core::mem::offset_of!(ADC_TypeDef, CFGR1) - 12usize];
    ["Offset of field: ADC_TypeDef::CFGR2"][::core::mem::offset_of!(ADC_TypeDef, CFGR2) - 16usize];
    ["Offset of field: ADC_TypeDef::SMPR"][::core::mem::offset_of!(ADC_TypeDef, SMPR) - 20usize];
    ["Offset of field: ADC_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(ADC_TypeDef, RESERVED1) - 24usize];
    ["Offset of field: ADC_TypeDef::TR"][::core::mem::offset_of!(ADC_TypeDef, TR) - 32usize];
    ["Offset of field: ADC_TypeDef::RESERVED2"]
        [::core::mem::offset_of!(ADC_TypeDef, RESERVED2) - 36usize];
    ["Offset of field: ADC_TypeDef::CHSELR"]
        [::core::mem::offset_of!(ADC_TypeDef, CHSELR) - 40usize];
    ["Offset of field: ADC_TypeDef::RESERVED3"]
        [::core::mem::offset_of!(ADC_TypeDef, RESERVED3) - 44usize];
    ["Offset of field: ADC_TypeDef::DR"][::core::mem::offset_of!(ADC_TypeDef, DR) - 64usize];
    ["Offset of field: ADC_TypeDef::CCSR"][::core::mem::offset_of!(ADC_TypeDef, CCSR) - 68usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ADC_Common_TypeDef {
    #[doc = "< ADC common configuration register,             Address offset: ADC1 base address + 0x308"]
    pub CCR: u32,
}
const _: () = {
    ["Size of ADC_Common_TypeDef"][::core::mem::size_of::<ADC_Common_TypeDef>() - 4usize];
    ["Alignment of ADC_Common_TypeDef"][::core::mem::align_of::<ADC_Common_TypeDef>() - 4usize];
    ["Offset of field: ADC_Common_TypeDef::CCR"]
        [::core::mem::offset_of!(ADC_Common_TypeDef, CCR) - 0usize];
};
#[doc = " @brief CRC calculation unit"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CRC_TypeDef {
    #[doc = "< CRC Data register,                         Address offset: 0x00"]
    pub DR: u32,
    #[doc = "< CRC Independent data register,             Address offset: 0x04"]
    pub IDR: u32,
    #[doc = "< CRC Control register,                      Address offset: 0x08"]
    pub CR: u32,
}
const _: () = {
    ["Size of CRC_TypeDef"][::core::mem::size_of::<CRC_TypeDef>() - 12usize];
    ["Alignment of CRC_TypeDef"][::core::mem::align_of::<CRC_TypeDef>() - 4usize];
    ["Offset of field: CRC_TypeDef::DR"][::core::mem::offset_of!(CRC_TypeDef, DR) - 0usize];
    ["Offset of field: CRC_TypeDef::IDR"][::core::mem::offset_of!(CRC_TypeDef, IDR) - 4usize];
    ["Offset of field: CRC_TypeDef::CR"][::core::mem::offset_of!(CRC_TypeDef, CR) - 8usize];
};
#[doc = " @brief Comparator"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct COMP_TypeDef {
    #[doc = "< COMP control and status register,           Address offset: 0x00"]
    pub CSR: u32,
    #[doc = "< COMP filter register,                       Address offset: 0x04"]
    pub FR: u32,
}
const _: () = {
    ["Size of COMP_TypeDef"][::core::mem::size_of::<COMP_TypeDef>() - 8usize];
    ["Alignment of COMP_TypeDef"][::core::mem::align_of::<COMP_TypeDef>() - 4usize];
    ["Offset of field: COMP_TypeDef::CSR"][::core::mem::offset_of!(COMP_TypeDef, CSR) - 0usize];
    ["Offset of field: COMP_TypeDef::FR"][::core::mem::offset_of!(COMP_TypeDef, FR) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct COMP_Common_TypeDef {
    #[doc = "< COMP control and status register located in register of comparator instance odd, used for bits common to several COMP instances, Address offset: 0x00"]
    pub CSR_ODD: u32,
    pub FR_ODD: u32,
    pub RESERVED: [u32; 2usize],
    #[doc = "< COMP control and status register located in register of comparator instance even, used for bits common to several COMP instances, Address offset: 0x04"]
    pub CSR_EVEN: u32,
    pub FR_EVEN: u32,
}
const _: () = {
    ["Size of COMP_Common_TypeDef"][::core::mem::size_of::<COMP_Common_TypeDef>() - 24usize];
    ["Alignment of COMP_Common_TypeDef"][::core::mem::align_of::<COMP_Common_TypeDef>() - 4usize];
    ["Offset of field: COMP_Common_TypeDef::CSR_ODD"]
        [::core::mem::offset_of!(COMP_Common_TypeDef, CSR_ODD) - 0usize];
    ["Offset of field: COMP_Common_TypeDef::FR_ODD"]
        [::core::mem::offset_of!(COMP_Common_TypeDef, FR_ODD) - 4usize];
    ["Offset of field: COMP_Common_TypeDef::RESERVED"]
        [::core::mem::offset_of!(COMP_Common_TypeDef, RESERVED) - 8usize];
    ["Offset of field: COMP_Common_TypeDef::CSR_EVEN"]
        [::core::mem::offset_of!(COMP_Common_TypeDef, CSR_EVEN) - 16usize];
    ["Offset of field: COMP_Common_TypeDef::FR_EVEN"]
        [::core::mem::offset_of!(COMP_Common_TypeDef, FR_EVEN) - 20usize];
};
#[doc = " @brief Debug MCU"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DBGMCU_TypeDef {
    #[doc = "< MCU device ID code,              Address offset: 0x00"]
    pub IDCODE: u32,
    #[doc = "< Debug configuration register,    Address offset: 0x04"]
    pub CR: u32,
    #[doc = "< Debug APB freeze register 1,     Address offset: 0x08"]
    pub APBFZ1: u32,
    #[doc = "< Debug APB freeze register 2,     Address offset: 0x0C"]
    pub APBFZ2: u32,
}
const _: () = {
    ["Size of DBGMCU_TypeDef"][::core::mem::size_of::<DBGMCU_TypeDef>() - 16usize];
    ["Alignment of DBGMCU_TypeDef"][::core::mem::align_of::<DBGMCU_TypeDef>() - 4usize];
    ["Offset of field: DBGMCU_TypeDef::IDCODE"]
        [::core::mem::offset_of!(DBGMCU_TypeDef, IDCODE) - 0usize];
    ["Offset of field: DBGMCU_TypeDef::CR"][::core::mem::offset_of!(DBGMCU_TypeDef, CR) - 4usize];
    ["Offset of field: DBGMCU_TypeDef::APBFZ1"]
        [::core::mem::offset_of!(DBGMCU_TypeDef, APBFZ1) - 8usize];
    ["Offset of field: DBGMCU_TypeDef::APBFZ2"]
        [::core::mem::offset_of!(DBGMCU_TypeDef, APBFZ2) - 12usize];
};
#[doc = " @brief DMA Controller"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DMA_TypeDef {
    #[doc = "< DMA interrupt status register,                 Address offset: 0x00"]
    pub ISR: u32,
    #[doc = "< DMA interrupt flag clear register,             Address offset: 0x04"]
    pub IFCR: u32,
}
const _: () = {
    ["Size of DMA_TypeDef"][::core::mem::size_of::<DMA_TypeDef>() - 8usize];
    ["Alignment of DMA_TypeDef"][::core::mem::align_of::<DMA_TypeDef>() - 4usize];
    ["Offset of field: DMA_TypeDef::ISR"][::core::mem::offset_of!(DMA_TypeDef, ISR) - 0usize];
    ["Offset of field: DMA_TypeDef::IFCR"][::core::mem::offset_of!(DMA_TypeDef, IFCR) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DMA_Channel_TypeDef {
    #[doc = "< DMA channel x configuration register"]
    pub CCR: u32,
    #[doc = "< DMA channel x number of data register"]
    pub CNDTR: u32,
    #[doc = "< DMA channel x peripheral address register"]
    pub CPAR: u32,
    #[doc = "< DMA channel x memory address register"]
    pub CMAR: u32,
}
const _: () = {
    ["Size of DMA_Channel_TypeDef"][::core::mem::size_of::<DMA_Channel_TypeDef>() - 16usize];
    ["Alignment of DMA_Channel_TypeDef"][::core::mem::align_of::<DMA_Channel_TypeDef>() - 4usize];
    ["Offset of field: DMA_Channel_TypeDef::CCR"]
        [::core::mem::offset_of!(DMA_Channel_TypeDef, CCR) - 0usize];
    ["Offset of field: DMA_Channel_TypeDef::CNDTR"]
        [::core::mem::offset_of!(DMA_Channel_TypeDef, CNDTR) - 4usize];
    ["Offset of field: DMA_Channel_TypeDef::CPAR"]
        [::core::mem::offset_of!(DMA_Channel_TypeDef, CPAR) - 8usize];
    ["Offset of field: DMA_Channel_TypeDef::CMAR"]
        [::core::mem::offset_of!(DMA_Channel_TypeDef, CMAR) - 12usize];
};
#[doc = " @brief Asynch Interrupt/Event Controller (EXTI)"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EXTI_TypeDef {
    #[doc = "< EXTI Rising Trigger Selection Register 1,        Address offset:   0x00"]
    pub RTSR: u32,
    #[doc = "< EXTI Falling Trigger Selection Register 1,       Address offset:   0x04"]
    pub FTSR: u32,
    #[doc = "< EXTI Software Interrupt event Register 1,        Address offset:   0x08"]
    pub SWIER: u32,
    #[doc = "< EXTI Pending Register 1                          Address offset:   0x0C"]
    pub PR: u32,
    #[doc = "< Reserved 1,                                                0x10 -- 0x1C"]
    pub RESERVED1: [u32; 4usize],
    #[doc = "< Reserved 2,                                                0x20 -- 0x30"]
    pub RESERVED2: [u32; 5usize],
    #[doc = "< Reserved 3,                                                0x34 -- 0x5C"]
    pub RESERVED3: [u32; 11usize],
    #[doc = "< EXTI External Interrupt Configuration Register,            0x60 -- 0x68"]
    pub EXTICR: [u32; 3usize],
    #[doc = "< Reserved 5,                                                0x6C -- 0x7C"]
    pub RESERVED4: [u32; 5usize],
    #[doc = "< EXTI Interrupt Mask Register ,                   Address offset:   0x80"]
    pub IMR: u32,
    #[doc = "< EXTI Event Mask Register ,                       Address offset:   0x84"]
    pub EMR: u32,
}
const _: () = {
    ["Size of EXTI_TypeDef"][::core::mem::size_of::<EXTI_TypeDef>() - 136usize];
    ["Alignment of EXTI_TypeDef"][::core::mem::align_of::<EXTI_TypeDef>() - 4usize];
    ["Offset of field: EXTI_TypeDef::RTSR"][::core::mem::offset_of!(EXTI_TypeDef, RTSR) - 0usize];
    ["Offset of field: EXTI_TypeDef::FTSR"][::core::mem::offset_of!(EXTI_TypeDef, FTSR) - 4usize];
    ["Offset of field: EXTI_TypeDef::SWIER"][::core::mem::offset_of!(EXTI_TypeDef, SWIER) - 8usize];
    ["Offset of field: EXTI_TypeDef::PR"][::core::mem::offset_of!(EXTI_TypeDef, PR) - 12usize];
    ["Offset of field: EXTI_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(EXTI_TypeDef, RESERVED1) - 16usize];
    ["Offset of field: EXTI_TypeDef::RESERVED2"]
        [::core::mem::offset_of!(EXTI_TypeDef, RESERVED2) - 32usize];
    ["Offset of field: EXTI_TypeDef::RESERVED3"]
        [::core::mem::offset_of!(EXTI_TypeDef, RESERVED3) - 52usize];
    ["Offset of field: EXTI_TypeDef::EXTICR"]
        [::core::mem::offset_of!(EXTI_TypeDef, EXTICR) - 96usize];
    ["Offset of field: EXTI_TypeDef::RESERVED4"]
        [::core::mem::offset_of!(EXTI_TypeDef, RESERVED4) - 108usize];
    ["Offset of field: EXTI_TypeDef::IMR"][::core::mem::offset_of!(EXTI_TypeDef, IMR) - 128usize];
    ["Offset of field: EXTI_TypeDef::EMR"][::core::mem::offset_of!(EXTI_TypeDef, EMR) - 132usize];
};
#[doc = " @brief FLASH Registers"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLASH_TypeDef {
    #[doc = "< FLASH Access Control register,                     Address offset: 0x00"]
    pub ACR: u32,
    #[doc = "< Reserved1,                                         Address offset: 0x04"]
    pub RESERVED1: u32,
    #[doc = "< FLASH Key register,                                Address offset: 0x08"]
    pub KEYR: u32,
    #[doc = "< FLASH Option Key register,                         Address offset: 0x0C"]
    pub OPTKEYR: u32,
    #[doc = "< FLASH Status register,                             Address offset: 0x10"]
    pub SR: u32,
    #[doc = "< FLASH Control register,                            Address offset: 0x14"]
    pub CR: u32,
    #[doc = "< Reserved2,                                         Address offset: 0x18-0x1C"]
    pub RESERVED2: [u32; 2usize],
    #[doc = "< FLASH Option register,                             Address offset: 0x20"]
    pub OPTR: u32,
    #[doc = "< FLASH SDK address register,                        Address offset: 0x24"]
    pub SDKR: u32,
    #[doc = "< Reserved2,                                         Address offset: 0x28"]
    pub RESERVED3: u32,
    #[doc = "< FLASH WRP address register,                        Address offset: 0x2C"]
    pub WRPR: u32,
    pub RESERVED4: [u32; 24usize],
    #[doc = "< FLASH sleep time config register,                  Address offset: 0x90"]
    pub STCR: u32,
    pub RESERVED5: [u32; 27usize],
    #[doc = "< FLASH TS0 register,                                Address offset: 0x100"]
    pub TS0: u32,
    #[doc = "< FLASH TS1 register,                                Address offset: 0x104"]
    pub TS1: u32,
    #[doc = "< FLASH TS2P register,                               Address offset: 0x108"]
    pub TS2P: u32,
    #[doc = "< FLASH TPS3 register,                               Address offset: 0x10C"]
    pub TPS3: u32,
    #[doc = "< FLASH TS3 register,                                Address offset: 0x110"]
    pub TS3: u32,
    #[doc = "< FLASH PERTPE register,                             Address offset: 0x114"]
    pub PERTPE: u32,
    #[doc = "< FLASH SMERTPE register,                            Address offset: 0x118"]
    pub SMERTPE: u32,
    #[doc = "< FLASH PRGTPE register,                             Address offset: 0x11C"]
    pub PRGTPE: u32,
    #[doc = "< FLASH PRETPE register,                             Address offset: 0x120"]
    pub PRETPE: u32,
}
const _: () = {
    ["Size of FLASH_TypeDef"][::core::mem::size_of::<FLASH_TypeDef>() - 292usize];
    ["Alignment of FLASH_TypeDef"][::core::mem::align_of::<FLASH_TypeDef>() - 4usize];
    ["Offset of field: FLASH_TypeDef::ACR"][::core::mem::offset_of!(FLASH_TypeDef, ACR) - 0usize];
    ["Offset of field: FLASH_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(FLASH_TypeDef, RESERVED1) - 4usize];
    ["Offset of field: FLASH_TypeDef::KEYR"][::core::mem::offset_of!(FLASH_TypeDef, KEYR) - 8usize];
    ["Offset of field: FLASH_TypeDef::OPTKEYR"]
        [::core::mem::offset_of!(FLASH_TypeDef, OPTKEYR) - 12usize];
    ["Offset of field: FLASH_TypeDef::SR"][::core::mem::offset_of!(FLASH_TypeDef, SR) - 16usize];
    ["Offset of field: FLASH_TypeDef::CR"][::core::mem::offset_of!(FLASH_TypeDef, CR) - 20usize];
    ["Offset of field: FLASH_TypeDef::RESERVED2"]
        [::core::mem::offset_of!(FLASH_TypeDef, RESERVED2) - 24usize];
    ["Offset of field: FLASH_TypeDef::OPTR"]
        [::core::mem::offset_of!(FLASH_TypeDef, OPTR) - 32usize];
    ["Offset of field: FLASH_TypeDef::SDKR"]
        [::core::mem::offset_of!(FLASH_TypeDef, SDKR) - 36usize];
    ["Offset of field: FLASH_TypeDef::RESERVED3"]
        [::core::mem::offset_of!(FLASH_TypeDef, RESERVED3) - 40usize];
    ["Offset of field: FLASH_TypeDef::WRPR"]
        [::core::mem::offset_of!(FLASH_TypeDef, WRPR) - 44usize];
    ["Offset of field: FLASH_TypeDef::RESERVED4"]
        [::core::mem::offset_of!(FLASH_TypeDef, RESERVED4) - 48usize];
    ["Offset of field: FLASH_TypeDef::STCR"]
        [::core::mem::offset_of!(FLASH_TypeDef, STCR) - 144usize];
    ["Offset of field: FLASH_TypeDef::RESERVED5"]
        [::core::mem::offset_of!(FLASH_TypeDef, RESERVED5) - 148usize];
    ["Offset of field: FLASH_TypeDef::TS0"][::core::mem::offset_of!(FLASH_TypeDef, TS0) - 256usize];
    ["Offset of field: FLASH_TypeDef::TS1"][::core::mem::offset_of!(FLASH_TypeDef, TS1) - 260usize];
    ["Offset of field: FLASH_TypeDef::TS2P"]
        [::core::mem::offset_of!(FLASH_TypeDef, TS2P) - 264usize];
    ["Offset of field: FLASH_TypeDef::TPS3"]
        [::core::mem::offset_of!(FLASH_TypeDef, TPS3) - 268usize];
    ["Offset of field: FLASH_TypeDef::TS3"][::core::mem::offset_of!(FLASH_TypeDef, TS3) - 272usize];
    ["Offset of field: FLASH_TypeDef::PERTPE"]
        [::core::mem::offset_of!(FLASH_TypeDef, PERTPE) - 276usize];
    ["Offset of field: FLASH_TypeDef::SMERTPE"]
        [::core::mem::offset_of!(FLASH_TypeDef, SMERTPE) - 280usize];
    ["Offset of field: FLASH_TypeDef::PRGTPE"]
        [::core::mem::offset_of!(FLASH_TypeDef, PRGTPE) - 284usize];
    ["Offset of field: FLASH_TypeDef::PRETPE"]
        [::core::mem::offset_of!(FLASH_TypeDef, PRETPE) - 288usize];
};
#[doc = " @brief Option Bytes"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct OB_TypeDef {
    #[doc = "< FLASH option byte Read protection,             Address offset: 0x00"]
    pub RDP: u8,
    #[doc = "< FLASH option byte user options,                Address offset: 0x01"]
    pub USER: u8,
    #[doc = "< Complemented FLASH option byte Read protection,Address offset: 0x02"]
    pub nRDP: u8,
    #[doc = "< Complemented FLASH option byte user options,   Address offset: 0x03"]
    pub nUSER: u8,
    #[doc = "< SDK area start address(stored in SDK[4:0]),    Address offset: 0x04"]
    pub SDK_STRT: u8,
    #[doc = "< SDK area end address(stored in SDK[12:8]),     Address offset: 0x05"]
    pub SDK_END: u8,
    #[doc = "< Complemented SDK area start address,           Address offset: 0x06"]
    pub nSDK_STRT: u8,
    #[doc = "< Complemented SDK area end address,             Address offset: 0x07"]
    pub nSDK_END: u8,
    #[doc = "< RESERVED1,                                     Address offset: 0x08"]
    pub RESERVED1: u32,
    #[doc = "< FLASH option byte write protection,            Address offset: 0x0C"]
    pub WRP: u16,
    #[doc = "< Complemented FLASH option byte write protection,Address offset: 0x0E"]
    pub nWRP: u16,
}
const _: () = {
    ["Size of OB_TypeDef"][::core::mem::size_of::<OB_TypeDef>() - 16usize];
    ["Alignment of OB_TypeDef"][::core::mem::align_of::<OB_TypeDef>() - 4usize];
    ["Offset of field: OB_TypeDef::RDP"][::core::mem::offset_of!(OB_TypeDef, RDP) - 0usize];
    ["Offset of field: OB_TypeDef::USER"][::core::mem::offset_of!(OB_TypeDef, USER) - 1usize];
    ["Offset of field: OB_TypeDef::nRDP"][::core::mem::offset_of!(OB_TypeDef, nRDP) - 2usize];
    ["Offset of field: OB_TypeDef::nUSER"][::core::mem::offset_of!(OB_TypeDef, nUSER) - 3usize];
    ["Offset of field: OB_TypeDef::SDK_STRT"]
        [::core::mem::offset_of!(OB_TypeDef, SDK_STRT) - 4usize];
    ["Offset of field: OB_TypeDef::SDK_END"][::core::mem::offset_of!(OB_TypeDef, SDK_END) - 5usize];
    ["Offset of field: OB_TypeDef::nSDK_STRT"]
        [::core::mem::offset_of!(OB_TypeDef, nSDK_STRT) - 6usize];
    ["Offset of field: OB_TypeDef::nSDK_END"]
        [::core::mem::offset_of!(OB_TypeDef, nSDK_END) - 7usize];
    ["Offset of field: OB_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(OB_TypeDef, RESERVED1) - 8usize];
    ["Offset of field: OB_TypeDef::WRP"][::core::mem::offset_of!(OB_TypeDef, WRP) - 12usize];
    ["Offset of field: OB_TypeDef::nWRP"][::core::mem::offset_of!(OB_TypeDef, nWRP) - 14usize];
};
#[doc = " @brief General Purpose I/O"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GPIO_TypeDef {
    #[doc = "< GPIO port mode register,               Address offset: 0x00"]
    pub MODER: u32,
    #[doc = "< GPIO port output type register,        Address offset: 0x04"]
    pub OTYPER: u32,
    #[doc = "< GPIO port output speed register,       Address offset: 0x08"]
    pub OSPEEDR: u32,
    #[doc = "< GPIO port pull-up/pull-down register,  Address offset: 0x0C"]
    pub PUPDR: u32,
    #[doc = "< GPIO port input data register,         Address offset: 0x10"]
    pub IDR: u32,
    #[doc = "< GPIO port output data register,        Address offset: 0x14"]
    pub ODR: u32,
    #[doc = "< GPIO port bit set/reset  register,     Address offset: 0x18"]
    pub BSRR: u32,
    #[doc = "< GPIO port configuration lock register, Address offset: 0x1C"]
    pub LCKR: u32,
    #[doc = "< GPIO alternate function registers,     Address offset: 0x20-0x24"]
    pub AFR: [u32; 2usize],
    #[doc = "< GPIO Bit Reset register,               Address offset: 0x28"]
    pub BRR: u32,
}
const _: () = {
    ["Size of GPIO_TypeDef"][::core::mem::size_of::<GPIO_TypeDef>() - 44usize];
    ["Alignment of GPIO_TypeDef"][::core::mem::align_of::<GPIO_TypeDef>() - 4usize];
    ["Offset of field: GPIO_TypeDef::MODER"][::core::mem::offset_of!(GPIO_TypeDef, MODER) - 0usize];
    ["Offset of field: GPIO_TypeDef::OTYPER"]
        [::core::mem::offset_of!(GPIO_TypeDef, OTYPER) - 4usize];
    ["Offset of field: GPIO_TypeDef::OSPEEDR"]
        [::core::mem::offset_of!(GPIO_TypeDef, OSPEEDR) - 8usize];
    ["Offset of field: GPIO_TypeDef::PUPDR"]
        [::core::mem::offset_of!(GPIO_TypeDef, PUPDR) - 12usize];
    ["Offset of field: GPIO_TypeDef::IDR"][::core::mem::offset_of!(GPIO_TypeDef, IDR) - 16usize];
    ["Offset of field: GPIO_TypeDef::ODR"][::core::mem::offset_of!(GPIO_TypeDef, ODR) - 20usize];
    ["Offset of field: GPIO_TypeDef::BSRR"][::core::mem::offset_of!(GPIO_TypeDef, BSRR) - 24usize];
    ["Offset of field: GPIO_TypeDef::LCKR"][::core::mem::offset_of!(GPIO_TypeDef, LCKR) - 28usize];
    ["Offset of field: GPIO_TypeDef::AFR"][::core::mem::offset_of!(GPIO_TypeDef, AFR) - 32usize];
    ["Offset of field: GPIO_TypeDef::BRR"][::core::mem::offset_of!(GPIO_TypeDef, BRR) - 40usize];
};
#[doc = " @brief Inter-integrated Circuit Interface"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct I2C_TypeDef {
    pub CR1: u32,
    pub CR2: u32,
    pub OAR1: u32,
    pub OAR2: u32,
    pub DR: u32,
    pub SR1: u32,
    pub SR2: u32,
    pub CCR: u32,
    pub TRISE: u32,
}
const _: () = {
    ["Size of I2C_TypeDef"][::core::mem::size_of::<I2C_TypeDef>() - 36usize];
    ["Alignment of I2C_TypeDef"][::core::mem::align_of::<I2C_TypeDef>() - 4usize];
    ["Offset of field: I2C_TypeDef::CR1"][::core::mem::offset_of!(I2C_TypeDef, CR1) - 0usize];
    ["Offset of field: I2C_TypeDef::CR2"][::core::mem::offset_of!(I2C_TypeDef, CR2) - 4usize];
    ["Offset of field: I2C_TypeDef::OAR1"][::core::mem::offset_of!(I2C_TypeDef, OAR1) - 8usize];
    ["Offset of field: I2C_TypeDef::OAR2"][::core::mem::offset_of!(I2C_TypeDef, OAR2) - 12usize];
    ["Offset of field: I2C_TypeDef::DR"][::core::mem::offset_of!(I2C_TypeDef, DR) - 16usize];
    ["Offset of field: I2C_TypeDef::SR1"][::core::mem::offset_of!(I2C_TypeDef, SR1) - 20usize];
    ["Offset of field: I2C_TypeDef::SR2"][::core::mem::offset_of!(I2C_TypeDef, SR2) - 24usize];
    ["Offset of field: I2C_TypeDef::CCR"][::core::mem::offset_of!(I2C_TypeDef, CCR) - 28usize];
    ["Offset of field: I2C_TypeDef::TRISE"][::core::mem::offset_of!(I2C_TypeDef, TRISE) - 32usize];
};
#[doc = " @brief Independent WATCHDOG"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IWDG_TypeDef {
    #[doc = "< IWDG Key register,       Address offset: 0x00"]
    pub KR: u32,
    #[doc = "< IWDG Prescaler register, Address offset: 0x04"]
    pub PR: u32,
    #[doc = "< IWDG Reload register,    Address offset: 0x08"]
    pub RLR: u32,
    #[doc = "< IWDG Status register,    Address offset: 0x0C"]
    pub SR: u32,
}
const _: () = {
    ["Size of IWDG_TypeDef"][::core::mem::size_of::<IWDG_TypeDef>() - 16usize];
    ["Alignment of IWDG_TypeDef"][::core::mem::align_of::<IWDG_TypeDef>() - 4usize];
    ["Offset of field: IWDG_TypeDef::KR"][::core::mem::offset_of!(IWDG_TypeDef, KR) - 0usize];
    ["Offset of field: IWDG_TypeDef::PR"][::core::mem::offset_of!(IWDG_TypeDef, PR) - 4usize];
    ["Offset of field: IWDG_TypeDef::RLR"][::core::mem::offset_of!(IWDG_TypeDef, RLR) - 8usize];
    ["Offset of field: IWDG_TypeDef::SR"][::core::mem::offset_of!(IWDG_TypeDef, SR) - 12usize];
};
#[doc = " @brief LPTIMER"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LPTIM_TypeDef {
    #[doc = "< LPTIM Interrupt and Status register,                Address offset: 0x00"]
    pub ISR: u32,
    #[doc = "< LPTIM Interrupt Clear register,                     Address offset: 0x04"]
    pub ICR: u32,
    #[doc = "< LPTIM Interrupt Enable register,                    Address offset: 0x08"]
    pub IER: u32,
    #[doc = "< LPTIM Configuration register,                       Address offset: 0x0C"]
    pub CFGR: u32,
    #[doc = "< LPTIM Control register,                             Address offset: 0x10"]
    pub CR: u32,
    #[doc = "< RESERVED1,                                          Address offset: 0x14"]
    pub RESERVED1: u32,
    #[doc = "< LPTIM Autoreload register,                          Address offset: 0x18"]
    pub ARR: u32,
    #[doc = "< LPTIM Counter register,                             Address offset: 0x1C"]
    pub CNT: u32,
}
const _: () = {
    ["Size of LPTIM_TypeDef"][::core::mem::size_of::<LPTIM_TypeDef>() - 32usize];
    ["Alignment of LPTIM_TypeDef"][::core::mem::align_of::<LPTIM_TypeDef>() - 4usize];
    ["Offset of field: LPTIM_TypeDef::ISR"][::core::mem::offset_of!(LPTIM_TypeDef, ISR) - 0usize];
    ["Offset of field: LPTIM_TypeDef::ICR"][::core::mem::offset_of!(LPTIM_TypeDef, ICR) - 4usize];
    ["Offset of field: LPTIM_TypeDef::IER"][::core::mem::offset_of!(LPTIM_TypeDef, IER) - 8usize];
    ["Offset of field: LPTIM_TypeDef::CFGR"]
        [::core::mem::offset_of!(LPTIM_TypeDef, CFGR) - 12usize];
    ["Offset of field: LPTIM_TypeDef::CR"][::core::mem::offset_of!(LPTIM_TypeDef, CR) - 16usize];
    ["Offset of field: LPTIM_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(LPTIM_TypeDef, RESERVED1) - 20usize];
    ["Offset of field: LPTIM_TypeDef::ARR"][::core::mem::offset_of!(LPTIM_TypeDef, ARR) - 24usize];
    ["Offset of field: LPTIM_TypeDef::CNT"][::core::mem::offset_of!(LPTIM_TypeDef, CNT) - 28usize];
};
#[doc = " @brief Power Control"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PWR_TypeDef {
    #[doc = "< PWR Power Control Register 1,                     Address offset: 0x00"]
    pub CR1: u32,
    #[doc = "< PWR Power Control Register 2,                     Address offset: 0x04"]
    pub CR2: u32,
    #[doc = "< Reserved1,                                        Address offset: 0x08-0x10"]
    pub RESERVED1: [u32; 3usize],
    #[doc = "< PWR Power Status Register,                        Address offset: 0x14"]
    pub SR: u32,
}
const _: () = {
    ["Size of PWR_TypeDef"][::core::mem::size_of::<PWR_TypeDef>() - 24usize];
    ["Alignment of PWR_TypeDef"][::core::mem::align_of::<PWR_TypeDef>() - 4usize];
    ["Offset of field: PWR_TypeDef::CR1"][::core::mem::offset_of!(PWR_TypeDef, CR1) - 0usize];
    ["Offset of field: PWR_TypeDef::CR2"][::core::mem::offset_of!(PWR_TypeDef, CR2) - 4usize];
    ["Offset of field: PWR_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(PWR_TypeDef, RESERVED1) - 8usize];
    ["Offset of field: PWR_TypeDef::SR"][::core::mem::offset_of!(PWR_TypeDef, SR) - 20usize];
};
#[doc = " @brief Reset and Clock Control"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RCC_TypeDef {
    #[doc = "< RCC Clock Sources Control Register,                                     Address offset: 0x00"]
    pub CR: u32,
    #[doc = "< RCC Internal Clock Sources Calibration Register,                        Address offset: 0x04"]
    pub ICSCR: u32,
    #[doc = "< RCC Regulated Domain Clocks Configuration Register,                     Address offset: 0x08"]
    pub CFGR: u32,
    #[doc = "< RCC System PLL configuration Register,                                  Address offset: 0x0C"]
    pub PLLCFGR: u32,
    #[doc = "< RCC External clock source control register,                             Address offset: 0x10"]
    pub ECSCR: u32,
    #[doc = "< Reserved,                                                               Address offset: 0x14"]
    pub RESERVED1: u32,
    #[doc = "< RCC Clock Interrupt Enable Register,                                    Address offset: 0x18"]
    pub CIER: u32,
    #[doc = "< RCC Clock Interrupt Flag Register,                                      Address offset: 0x1C"]
    pub CIFR: u32,
    #[doc = "< RCC Clock Interrupt Clear Register,                                     Address offset: 0x20"]
    pub CICR: u32,
    #[doc = "< RCC IO port reset register,                                             Address offset: 0x24"]
    pub IOPRSTR: u32,
    #[doc = "< RCC AHB peripherals reset register,                                     Address offset: 0x28"]
    pub AHBRSTR: u32,
    #[doc = "< RCC APB peripherals reset register 1,                                   Address offset: 0x2C"]
    pub APBRSTR1: u32,
    #[doc = "< RCC APB peripherals reset register 2,                                   Address offset: 0x30"]
    pub APBRSTR2: u32,
    #[doc = "< RCC IO port enable register,                                            Address offset: 0x34"]
    pub IOPENR: u32,
    #[doc = "< RCC AHB peripherals clock enable register,                              Address offset: 0x38"]
    pub AHBENR: u32,
    #[doc = "< RCC APB peripherals clock enable register1,                             Address offset: 0x3C"]
    pub APBENR1: u32,
    #[doc = "< RCC APB peripherals clock enable register2,                             Address offset: 0x40"]
    pub APBENR2: u32,
    #[doc = "< Reserved,                                                               Address offset: 0x44-0x50"]
    pub RESERVED2: [u32; 4usize],
    #[doc = "< RCC Peripherals Independent Clocks Configuration Register,              Address offset: 0x54"]
    pub CCIPR: u32,
    #[doc = "< Reserved,                                                               Address offset: 0x58"]
    pub RESERVED3: u32,
    #[doc = "< RCC Backup Domain Control Register,                                     Address offset: 0x5C"]
    pub BDCR: u32,
    #[doc = "< RCC Unregulated Domain Clock Control and Status Register,               Address offset: 0x60"]
    pub CSR: u32,
}
const _: () = {
    ["Size of RCC_TypeDef"][::core::mem::size_of::<RCC_TypeDef>() - 100usize];
    ["Alignment of RCC_TypeDef"][::core::mem::align_of::<RCC_TypeDef>() - 4usize];
    ["Offset of field: RCC_TypeDef::CR"][::core::mem::offset_of!(RCC_TypeDef, CR) - 0usize];
    ["Offset of field: RCC_TypeDef::ICSCR"][::core::mem::offset_of!(RCC_TypeDef, ICSCR) - 4usize];
    ["Offset of field: RCC_TypeDef::CFGR"][::core::mem::offset_of!(RCC_TypeDef, CFGR) - 8usize];
    ["Offset of field: RCC_TypeDef::PLLCFGR"]
        [::core::mem::offset_of!(RCC_TypeDef, PLLCFGR) - 12usize];
    ["Offset of field: RCC_TypeDef::ECSCR"][::core::mem::offset_of!(RCC_TypeDef, ECSCR) - 16usize];
    ["Offset of field: RCC_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(RCC_TypeDef, RESERVED1) - 20usize];
    ["Offset of field: RCC_TypeDef::CIER"][::core::mem::offset_of!(RCC_TypeDef, CIER) - 24usize];
    ["Offset of field: RCC_TypeDef::CIFR"][::core::mem::offset_of!(RCC_TypeDef, CIFR) - 28usize];
    ["Offset of field: RCC_TypeDef::CICR"][::core::mem::offset_of!(RCC_TypeDef, CICR) - 32usize];
    ["Offset of field: RCC_TypeDef::IOPRSTR"]
        [::core::mem::offset_of!(RCC_TypeDef, IOPRSTR) - 36usize];
    ["Offset of field: RCC_TypeDef::AHBRSTR"]
        [::core::mem::offset_of!(RCC_TypeDef, AHBRSTR) - 40usize];
    ["Offset of field: RCC_TypeDef::APBRSTR1"]
        [::core::mem::offset_of!(RCC_TypeDef, APBRSTR1) - 44usize];
    ["Offset of field: RCC_TypeDef::APBRSTR2"]
        [::core::mem::offset_of!(RCC_TypeDef, APBRSTR2) - 48usize];
    ["Offset of field: RCC_TypeDef::IOPENR"]
        [::core::mem::offset_of!(RCC_TypeDef, IOPENR) - 52usize];
    ["Offset of field: RCC_TypeDef::AHBENR"]
        [::core::mem::offset_of!(RCC_TypeDef, AHBENR) - 56usize];
    ["Offset of field: RCC_TypeDef::APBENR1"]
        [::core::mem::offset_of!(RCC_TypeDef, APBENR1) - 60usize];
    ["Offset of field: RCC_TypeDef::APBENR2"]
        [::core::mem::offset_of!(RCC_TypeDef, APBENR2) - 64usize];
    ["Offset of field: RCC_TypeDef::RESERVED2"]
        [::core::mem::offset_of!(RCC_TypeDef, RESERVED2) - 68usize];
    ["Offset of field: RCC_TypeDef::CCIPR"][::core::mem::offset_of!(RCC_TypeDef, CCIPR) - 84usize];
    ["Offset of field: RCC_TypeDef::RESERVED3"]
        [::core::mem::offset_of!(RCC_TypeDef, RESERVED3) - 88usize];
    ["Offset of field: RCC_TypeDef::BDCR"][::core::mem::offset_of!(RCC_TypeDef, BDCR) - 92usize];
    ["Offset of field: RCC_TypeDef::CSR"][::core::mem::offset_of!(RCC_TypeDef, CSR) - 96usize];
};
#[doc = " @brief Real-Time Clock"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_TypeDef {
    pub CRH: u32,
    pub CRL: u32,
    pub PRLH: u32,
    pub PRLL: u32,
    pub DIVH: u32,
    pub DIVL: u32,
    pub CNTH: u32,
    pub CNTL: u32,
    pub ALRH: u32,
    pub ALRL: u32,
    pub RESERVED1: u32,
    pub BKP_RTCCR: u32,
}
const _: () = {
    ["Size of RTC_TypeDef"][::core::mem::size_of::<RTC_TypeDef>() - 48usize];
    ["Alignment of RTC_TypeDef"][::core::mem::align_of::<RTC_TypeDef>() - 4usize];
    ["Offset of field: RTC_TypeDef::CRH"][::core::mem::offset_of!(RTC_TypeDef, CRH) - 0usize];
    ["Offset of field: RTC_TypeDef::CRL"][::core::mem::offset_of!(RTC_TypeDef, CRL) - 4usize];
    ["Offset of field: RTC_TypeDef::PRLH"][::core::mem::offset_of!(RTC_TypeDef, PRLH) - 8usize];
    ["Offset of field: RTC_TypeDef::PRLL"][::core::mem::offset_of!(RTC_TypeDef, PRLL) - 12usize];
    ["Offset of field: RTC_TypeDef::DIVH"][::core::mem::offset_of!(RTC_TypeDef, DIVH) - 16usize];
    ["Offset of field: RTC_TypeDef::DIVL"][::core::mem::offset_of!(RTC_TypeDef, DIVL) - 20usize];
    ["Offset of field: RTC_TypeDef::CNTH"][::core::mem::offset_of!(RTC_TypeDef, CNTH) - 24usize];
    ["Offset of field: RTC_TypeDef::CNTL"][::core::mem::offset_of!(RTC_TypeDef, CNTL) - 28usize];
    ["Offset of field: RTC_TypeDef::ALRH"][::core::mem::offset_of!(RTC_TypeDef, ALRH) - 32usize];
    ["Offset of field: RTC_TypeDef::ALRL"][::core::mem::offset_of!(RTC_TypeDef, ALRL) - 36usize];
    ["Offset of field: RTC_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(RTC_TypeDef, RESERVED1) - 40usize];
    ["Offset of field: RTC_TypeDef::BKP_RTCCR"]
        [::core::mem::offset_of!(RTC_TypeDef, BKP_RTCCR) - 44usize];
};
#[doc = " @brief Serial Peripheral Interface"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SPI_TypeDef {
    #[doc = "< SPI Control register 1,                              Address offset: 0x00"]
    pub CR1: u32,
    #[doc = "< SPI Control register 2,                              Address offset: 0x04"]
    pub CR2: u32,
    #[doc = "< SPI Status register,                                 Address offset: 0x08"]
    pub SR: u32,
    #[doc = "< SPI data register,                                   Address offset: 0x0C"]
    pub DR: u32,
}
const _: () = {
    ["Size of SPI_TypeDef"][::core::mem::size_of::<SPI_TypeDef>() - 16usize];
    ["Alignment of SPI_TypeDef"][::core::mem::align_of::<SPI_TypeDef>() - 4usize];
    ["Offset of field: SPI_TypeDef::CR1"][::core::mem::offset_of!(SPI_TypeDef, CR1) - 0usize];
    ["Offset of field: SPI_TypeDef::CR2"][::core::mem::offset_of!(SPI_TypeDef, CR2) - 4usize];
    ["Offset of field: SPI_TypeDef::SR"][::core::mem::offset_of!(SPI_TypeDef, SR) - 8usize];
    ["Offset of field: SPI_TypeDef::DR"][::core::mem::offset_of!(SPI_TypeDef, DR) - 12usize];
};
#[doc = " @brief System configuration controller"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SYSCFG_TypeDef {
    #[doc = "< SYSCFG configuration register 1,                   Address offset: 0x00"]
    pub CFGR1: u32,
    #[doc = "< Reserved,                                                   0x04 --0x14"]
    pub RESERVED1: [u32; 5usize],
    #[doc = "< SYSCFG configuration register 2,                   Address offset: 0x18"]
    pub CFGR2: u32,
    #[doc = "< SYSCFG configuration register 3,                   Address offset: 0x1C"]
    pub CFGR3: u32,
}
const _: () = {
    ["Size of SYSCFG_TypeDef"][::core::mem::size_of::<SYSCFG_TypeDef>() - 32usize];
    ["Alignment of SYSCFG_TypeDef"][::core::mem::align_of::<SYSCFG_TypeDef>() - 4usize];
    ["Offset of field: SYSCFG_TypeDef::CFGR1"]
        [::core::mem::offset_of!(SYSCFG_TypeDef, CFGR1) - 0usize];
    ["Offset of field: SYSCFG_TypeDef::RESERVED1"]
        [::core::mem::offset_of!(SYSCFG_TypeDef, RESERVED1) - 4usize];
    ["Offset of field: SYSCFG_TypeDef::CFGR2"]
        [::core::mem::offset_of!(SYSCFG_TypeDef, CFGR2) - 24usize];
    ["Offset of field: SYSCFG_TypeDef::CFGR3"]
        [::core::mem::offset_of!(SYSCFG_TypeDef, CFGR3) - 28usize];
};
#[doc = " @brief TIM"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_TypeDef {
    #[doc = "< TIM control register 1,                   Address offset: 0x00"]
    pub CR1: u32,
    #[doc = "< TIM control register 2,                   Address offset: 0x04"]
    pub CR2: u32,
    #[doc = "< TIM slave mode control register,          Address offset: 0x08"]
    pub SMCR: u32,
    #[doc = "< TIM DMA/interrupt enable register,        Address offset: 0x0C"]
    pub DIER: u32,
    #[doc = "< TIM status register,                      Address offset: 0x10"]
    pub SR: u32,
    #[doc = "< TIM event generation register,            Address offset: 0x14"]
    pub EGR: u32,
    #[doc = "< TIM capture/compare mode register 1,      Address offset: 0x18"]
    pub CCMR1: u32,
    #[doc = "< TIM capture/compare mode register 2,      Address offset: 0x1C"]
    pub CCMR2: u32,
    #[doc = "< TIM capture/compare enable register,      Address offset: 0x20"]
    pub CCER: u32,
    #[doc = "< TIM counter register,                     Address offset: 0x24"]
    pub CNT: u32,
    #[doc = "< TIM prescaler register,                   Address offset: 0x28"]
    pub PSC: u32,
    #[doc = "< TIM auto-reload register,                 Address offset: 0x2C"]
    pub ARR: u32,
    #[doc = "< TIM repetition counter register,          Address offset: 0x30"]
    pub RCR: u32,
    #[doc = "< TIM capture/compare register 1,           Address offset: 0x34"]
    pub CCR1: u32,
    #[doc = "< TIM capture/compare register 2,           Address offset: 0x38"]
    pub CCR2: u32,
    #[doc = "< TIM capture/compare register 3,           Address offset: 0x3C"]
    pub CCR3: u32,
    #[doc = "< TIM capture/compare register 4,           Address offset: 0x40"]
    pub CCR4: u32,
    #[doc = "< TIM break and dead-time register,         Address offset: 0x44"]
    pub BDTR: u32,
    #[doc = "< TIM DMA control register,                 Address offset: 0x48"]
    pub DCR: u32,
    #[doc = "< TIM DMA address for full transfer,        Address offset: 0x4C"]
    pub DMAR: u32,
    #[doc = "< TIM option register,                      Address offset: 0x50"]
    pub OR: u32,
}
const _: () = {
    ["Size of TIM_TypeDef"][::core::mem::size_of::<TIM_TypeDef>() - 84usize];
    ["Alignment of TIM_TypeDef"][::core::mem::align_of::<TIM_TypeDef>() - 4usize];
    ["Offset of field: TIM_TypeDef::CR1"][::core::mem::offset_of!(TIM_TypeDef, CR1) - 0usize];
    ["Offset of field: TIM_TypeDef::CR2"][::core::mem::offset_of!(TIM_TypeDef, CR2) - 4usize];
    ["Offset of field: TIM_TypeDef::SMCR"][::core::mem::offset_of!(TIM_TypeDef, SMCR) - 8usize];
    ["Offset of field: TIM_TypeDef::DIER"][::core::mem::offset_of!(TIM_TypeDef, DIER) - 12usize];
    ["Offset of field: TIM_TypeDef::SR"][::core::mem::offset_of!(TIM_TypeDef, SR) - 16usize];
    ["Offset of field: TIM_TypeDef::EGR"][::core::mem::offset_of!(TIM_TypeDef, EGR) - 20usize];
    ["Offset of field: TIM_TypeDef::CCMR1"][::core::mem::offset_of!(TIM_TypeDef, CCMR1) - 24usize];
    ["Offset of field: TIM_TypeDef::CCMR2"][::core::mem::offset_of!(TIM_TypeDef, CCMR2) - 28usize];
    ["Offset of field: TIM_TypeDef::CCER"][::core::mem::offset_of!(TIM_TypeDef, CCER) - 32usize];
    ["Offset of field: TIM_TypeDef::CNT"][::core::mem::offset_of!(TIM_TypeDef, CNT) - 36usize];
    ["Offset of field: TIM_TypeDef::PSC"][::core::mem::offset_of!(TIM_TypeDef, PSC) - 40usize];
    ["Offset of field: TIM_TypeDef::ARR"][::core::mem::offset_of!(TIM_TypeDef, ARR) - 44usize];
    ["Offset of field: TIM_TypeDef::RCR"][::core::mem::offset_of!(TIM_TypeDef, RCR) - 48usize];
    ["Offset of field: TIM_TypeDef::CCR1"][::core::mem::offset_of!(TIM_TypeDef, CCR1) - 52usize];
    ["Offset of field: TIM_TypeDef::CCR2"][::core::mem::offset_of!(TIM_TypeDef, CCR2) - 56usize];
    ["Offset of field: TIM_TypeDef::CCR3"][::core::mem::offset_of!(TIM_TypeDef, CCR3) - 60usize];
    ["Offset of field: TIM_TypeDef::CCR4"][::core::mem::offset_of!(TIM_TypeDef, CCR4) - 64usize];
    ["Offset of field: TIM_TypeDef::BDTR"][::core::mem::offset_of!(TIM_TypeDef, BDTR) - 68usize];
    ["Offset of field: TIM_TypeDef::DCR"][::core::mem::offset_of!(TIM_TypeDef, DCR) - 72usize];
    ["Offset of field: TIM_TypeDef::DMAR"][::core::mem::offset_of!(TIM_TypeDef, DMAR) - 76usize];
    ["Offset of field: TIM_TypeDef::OR"][::core::mem::offset_of!(TIM_TypeDef, OR) - 80usize];
};
#[doc = " @brief Universal Synchronous Asynchronous Receiver Transmitter"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct USART_TypeDef {
    #[doc = "< USART     Status  register ,              Address offset: 0x00"]
    pub SR: u32,
    #[doc = "< USART Data register,                      Address offset: 0x04"]
    pub DR: u32,
    #[doc = "< USART Baud rate register,                 Address offset: 0x08"]
    pub BRR: u32,
    #[doc = "< USART     Control  register 1,            Address offset: 0x0C"]
    pub CR1: u32,
    #[doc = "< USART     Control  register 2,            Address offset: 0x10"]
    pub CR2: u32,
    #[doc = "< USART     Control  register 3,            Address offset: 0x14"]
    pub CR3: u32,
    #[doc = "< USART Guard time and prescaler register,  Address offset: 0x18"]
    pub GTPR: u32,
}
const _: () = {
    ["Size of USART_TypeDef"][::core::mem::size_of::<USART_TypeDef>() - 28usize];
    ["Alignment of USART_TypeDef"][::core::mem::align_of::<USART_TypeDef>() - 4usize];
    ["Offset of field: USART_TypeDef::SR"][::core::mem::offset_of!(USART_TypeDef, SR) - 0usize];
    ["Offset of field: USART_TypeDef::DR"][::core::mem::offset_of!(USART_TypeDef, DR) - 4usize];
    ["Offset of field: USART_TypeDef::BRR"][::core::mem::offset_of!(USART_TypeDef, BRR) - 8usize];
    ["Offset of field: USART_TypeDef::CR1"][::core::mem::offset_of!(USART_TypeDef, CR1) - 12usize];
    ["Offset of field: USART_TypeDef::CR2"][::core::mem::offset_of!(USART_TypeDef, CR2) - 16usize];
    ["Offset of field: USART_TypeDef::CR3"][::core::mem::offset_of!(USART_TypeDef, CR3) - 20usize];
    ["Offset of field: USART_TypeDef::GTPR"]
        [::core::mem::offset_of!(USART_TypeDef, GTPR) - 24usize];
};
#[doc = " @brief Window WATCHDOG"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WWDG_TypeDef {
    #[doc = "< WWDG Control register,       Address offset: 0x00"]
    pub CR: u32,
    #[doc = "< WWDG Configuration register, Address offset: 0x04"]
    pub CFR: u32,
    #[doc = "< WWDG Status register,        Address offset: 0x08"]
    pub SR: u32,
}
const _: () = {
    ["Size of WWDG_TypeDef"][::core::mem::size_of::<WWDG_TypeDef>() - 12usize];
    ["Alignment of WWDG_TypeDef"][::core::mem::align_of::<WWDG_TypeDef>() - 4usize];
    ["Offset of field: WWDG_TypeDef::CR"][::core::mem::offset_of!(WWDG_TypeDef, CR) - 0usize];
    ["Offset of field: WWDG_TypeDef::CFR"][::core::mem::offset_of!(WWDG_TypeDef, CFR) - 4usize];
    ["Offset of field: WWDG_TypeDef::SR"][::core::mem::offset_of!(WWDG_TypeDef, SR) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LED_TypeDef {
    #[doc = "< LED Control register,        Address offset: 0x00"]
    pub CR: u32,
    #[doc = "< LED Prescaler register,      Address offset: 0x04"]
    pub PR: u32,
    #[doc = "< Time register,               Address offset: 0x08"]
    pub TR: u32,
    #[doc = "< Data0 register,              Address offset: 0x0C"]
    pub DR0: u32,
    #[doc = "< Data1 register,              Address offset: 0x10"]
    pub DR1: u32,
    #[doc = "< Data2 register,              Address offset: 0x14"]
    pub DR2: u32,
    #[doc = "< Data3 register,              Address offset: 0x18"]
    pub DR3: u32,
    #[doc = "< Interrupt register,          Address offset: 0x1C"]
    pub IR: u32,
}
const _: () = {
    ["Size of LED_TypeDef"][::core::mem::size_of::<LED_TypeDef>() - 32usize];
    ["Alignment of LED_TypeDef"][::core::mem::align_of::<LED_TypeDef>() - 4usize];
    ["Offset of field: LED_TypeDef::CR"][::core::mem::offset_of!(LED_TypeDef, CR) - 0usize];
    ["Offset of field: LED_TypeDef::PR"][::core::mem::offset_of!(LED_TypeDef, PR) - 4usize];
    ["Offset of field: LED_TypeDef::TR"][::core::mem::offset_of!(LED_TypeDef, TR) - 8usize];
    ["Offset of field: LED_TypeDef::DR0"][::core::mem::offset_of!(LED_TypeDef, DR0) - 12usize];
    ["Offset of field: LED_TypeDef::DR1"][::core::mem::offset_of!(LED_TypeDef, DR1) - 16usize];
    ["Offset of field: LED_TypeDef::DR2"][::core::mem::offset_of!(LED_TypeDef, DR2) - 20usize];
    ["Offset of field: LED_TypeDef::DR3"][::core::mem::offset_of!(LED_TypeDef, DR3) - 24usize];
    ["Offset of field: LED_TypeDef::IR"][::core::mem::offset_of!(LED_TypeDef, IR) - 28usize];
};
pub const FLASH_BASE: u32 = 134217728;
pub const FLASH_END: u32 = 134250495;
pub const FLASH_SIZE: u32 = 32768;
pub const FLASH_PAGE_SIZE: u32 = 128;
pub const FLASH_PAGE_NB: u32 = 256;
pub const FLASH_SECTOR_SIZE: u32 = 4096;
pub const FLASH_SECTOR_NB: u32 = 8;
pub const SRAM_BASE: u32 = 536870912;
pub const SRAM_END: u32 = 536875007;
pub const PERIPH_BASE: u32 = 1073741824;
pub const IOPORT_BASE: u32 = 1342177280;
pub const APBPERIPH_BASE: u32 = 1073741824;
pub const AHBPERIPH_BASE: u32 = 1073872896;
pub const TIM3_BASE: u32 = 1073742848;
pub const TIM14_BASE: u32 = 1073750016;
pub const LED_BASE: u32 = 1073751040;
pub const RTC_BASE: u32 = 1073752064;
pub const WWDG_BASE: u32 = 1073753088;
pub const IWDG_BASE: u32 = 1073754112;
pub const SPI2_BASE: u32 = 1073756160;
pub const USART2_BASE: u32 = 1073759232;
pub const I2C_BASE: u32 = 1073763328;
pub const PWR_BASE: u32 = 1073770496;
pub const LPTIM_BASE: u32 = 1073773568;
pub const SYSCFG_BASE: u32 = 1073807360;
pub const COMP1_BASE: u32 = 1073807872;
pub const COMP2_BASE: u32 = 1073807888;
pub const ADC1_BASE: u32 = 1073816576;
pub const ADC_BASE: u32 = 1073817352;
pub const TIM1_BASE: u32 = 1073818624;
pub const SPI1_BASE: u32 = 1073819648;
pub const USART1_BASE: u32 = 1073821696;
pub const TIM16_BASE: u32 = 1073824768;
pub const TIM17_BASE: u32 = 1073825792;
pub const DBGMCU_BASE: u32 = 1073829888;
pub const DMA1_BASE: u32 = 1073872896;
pub const DMA1_Channel1_BASE: u32 = 1073872904;
pub const DMA1_Channel2_BASE: u32 = 1073872924;
pub const DMA1_Channel3_BASE: u32 = 1073872944;
pub const RCC_BASE: u32 = 1073876992;
pub const EXTI_BASE: u32 = 1073879040;
pub const FLASH_R_BASE: u32 = 1073881088;
pub const OB_BASE: u32 = 536809088;
pub const FLASHSIZE_BASE: u32 = 536809468;
pub const UID_BASE: u32 = 536808960;
pub const CRC_BASE: u32 = 1073885184;
pub const GPIOA_BASE: u32 = 1342177280;
pub const GPIOB_BASE: u32 = 1342178304;
pub const GPIOF_BASE: u32 = 1342182400;
pub const TIM3: *mut TIM_TypeDef = 1073742848u32 as *mut TIM_TypeDef;
pub const TIM14: *mut TIM_TypeDef = 1073750016u32 as *mut TIM_TypeDef;
pub const LED: *mut LED_TypeDef = 1073751040u32 as *mut LED_TypeDef;
pub const RTC: *mut RTC_TypeDef = 1073752064u32 as *mut RTC_TypeDef;
pub const WWDG: *mut WWDG_TypeDef = 1073753088u32 as *mut WWDG_TypeDef;
pub const IWDG: *mut IWDG_TypeDef = 1073754112u32 as *mut IWDG_TypeDef;
pub const SPI2: *mut SPI_TypeDef = 1073756160u32 as *mut SPI_TypeDef;
pub const USART2: *mut USART_TypeDef = 1073759232u32 as *mut USART_TypeDef;
pub const I2C1: *mut I2C_TypeDef = 1073763328u32 as *mut I2C_TypeDef;
pub const I2C: *mut I2C_TypeDef = 1073763328u32 as *mut I2C_TypeDef;
pub const PWR: *mut PWR_TypeDef = 1073770496u32 as *mut PWR_TypeDef;
pub const LPTIM1: *mut LPTIM_TypeDef = 1073773568u32 as *mut LPTIM_TypeDef;
pub const LPTIM: *mut LPTIM_TypeDef = 1073773568u32 as *mut LPTIM_TypeDef;
pub const SYSCFG: *mut SYSCFG_TypeDef = 1073807360u32 as *mut SYSCFG_TypeDef;
pub const COMP1: *mut COMP_TypeDef = 1073807872u32 as *mut COMP_TypeDef;
pub const COMP2: *mut COMP_TypeDef = 1073807888u32 as *mut COMP_TypeDef;
pub const COMP12_COMMON: *mut COMP_Common_TypeDef = 1073807872u32 as *mut COMP_Common_TypeDef;
pub const ADC1: *mut ADC_TypeDef = 1073816576u32 as *mut ADC_TypeDef;
pub const ADC1_COMMON: *mut ADC_Common_TypeDef = 1073817352u32 as *mut ADC_Common_TypeDef;
pub const ADC: *mut ADC_Common_TypeDef = 1073817352u32 as *mut ADC_Common_TypeDef;
pub const TIM1: *mut TIM_TypeDef = 1073818624u32 as *mut TIM_TypeDef;
pub const SPI1: *mut SPI_TypeDef = 1073819648u32 as *mut SPI_TypeDef;
pub const USART1: *mut USART_TypeDef = 1073821696u32 as *mut USART_TypeDef;
pub const TIM16: *mut TIM_TypeDef = 1073824768u32 as *mut TIM_TypeDef;
pub const TIM17: *mut TIM_TypeDef = 1073825792u32 as *mut TIM_TypeDef;
pub const DBGMCU: *mut DBGMCU_TypeDef = 1073829888u32 as *mut DBGMCU_TypeDef;
pub const DMA1: *mut DMA_TypeDef = 1073872896u32 as *mut DMA_TypeDef;
pub const DMA1_Channel1: *mut DMA_Channel_TypeDef = 1073872904u32 as *mut DMA_Channel_TypeDef;
pub const DMA1_Channel2: *mut DMA_Channel_TypeDef = 1073872924u32 as *mut DMA_Channel_TypeDef;
pub const DMA1_Channel3: *mut DMA_Channel_TypeDef = 1073872944u32 as *mut DMA_Channel_TypeDef;
pub const RCC: *mut RCC_TypeDef = 1073876992u32 as *mut RCC_TypeDef;
pub const EXTI: *mut EXTI_TypeDef = 1073879040u32 as *mut EXTI_TypeDef;
pub const FLASH: *mut FLASH_TypeDef = 1073881088u32 as *mut FLASH_TypeDef;
pub const OB: *mut OB_TypeDef = 536809088u32 as *mut OB_TypeDef;
pub const CRC: *mut CRC_TypeDef = 1073885184u32 as *mut CRC_TypeDef;
pub const GPIOA: *mut GPIO_TypeDef = 1342177280u32 as *mut GPIO_TypeDef;
pub const GPIOB: *mut GPIO_TypeDef = 1342178304u32 as *mut GPIO_TypeDef;
pub const GPIOF: *mut GPIO_TypeDef = 1342182400u32 as *mut GPIO_TypeDef;
pub const ADC_ISR_EOSMP_Pos: u32 = 1;
pub const ADC_ISR_EOSMP_Msk: u32 = 2;
pub const ADC_ISR_EOSMP: u32 = 2;
pub const ADC_ISR_EOC_Pos: u32 = 2;
pub const ADC_ISR_EOC_Msk: u32 = 4;
pub const ADC_ISR_EOC: u32 = 4;
pub const ADC_ISR_EOSEQ_Pos: u32 = 3;
pub const ADC_ISR_EOSEQ_Msk: u32 = 8;
pub const ADC_ISR_EOSEQ: u32 = 8;
pub const ADC_ISR_OVR_Pos: u32 = 4;
pub const ADC_ISR_OVR_Msk: u32 = 16;
pub const ADC_ISR_OVR: u32 = 16;
pub const ADC_ISR_AWD_Pos: u32 = 7;
pub const ADC_ISR_AWD_Msk: u32 = 128;
pub const ADC_ISR_AWD: u32 = 128;
pub const ADC_IER_EOSMPIE_Pos: u32 = 1;
pub const ADC_IER_EOSMPIE_Msk: u32 = 2;
pub const ADC_IER_EOSMPIE: u32 = 2;
pub const ADC_IER_EOCIE_Pos: u32 = 2;
pub const ADC_IER_EOCIE_Msk: u32 = 4;
pub const ADC_IER_EOCIE: u32 = 4;
pub const ADC_IER_EOSEQIE_Pos: u32 = 3;
pub const ADC_IER_EOSEQIE_Msk: u32 = 8;
pub const ADC_IER_EOSEQIE: u32 = 8;
pub const ADC_IER_OVRIE_Pos: u32 = 4;
pub const ADC_IER_OVRIE_Msk: u32 = 16;
pub const ADC_IER_OVRIE: u32 = 16;
pub const ADC_IER_AWDIE_Pos: u32 = 7;
pub const ADC_IER_AWDIE_Msk: u32 = 128;
pub const ADC_IER_AWDIE: u32 = 128;
pub const ADC_CR_ADEN_Pos: u32 = 0;
pub const ADC_CR_ADEN_Msk: u32 = 1;
pub const ADC_CR_ADEN: u32 = 1;
pub const ADC_CR_ADSTART_Pos: u32 = 2;
pub const ADC_CR_ADSTART_Msk: u32 = 4;
pub const ADC_CR_ADSTART: u32 = 4;
pub const ADC_CR_ADSTP_Pos: u32 = 4;
pub const ADC_CR_ADSTP_Msk: u32 = 16;
pub const ADC_CR_ADSTP: u32 = 16;
pub const ADC_CR_ADCAL_Pos: u32 = 31;
pub const ADC_CR_ADCAL_Msk: u32 = 2147483648;
pub const ADC_CR_ADCAL: u32 = 2147483648;
pub const ADC_CFGR1_DMAEN_Pos: u32 = 0;
pub const ADC_CFGR1_DMAEN_Msk: u32 = 1;
pub const ADC_CFGR1_DMAEN: u32 = 1;
pub const ADC_CFGR1_DMACFG_Pos: u32 = 1;
pub const ADC_CFGR1_DMACFG_Msk: u32 = 2;
pub const ADC_CFGR1_DMACFG: u32 = 2;
pub const ADC_CFGR1_SCANDIR_Pos: u32 = 2;
pub const ADC_CFGR1_SCANDIR_Msk: u32 = 4;
pub const ADC_CFGR1_SCANDIR: u32 = 4;
pub const ADC_CFGR1_RESSEL_Pos: u32 = 3;
pub const ADC_CFGR1_RESSEL_Msk: u32 = 24;
pub const ADC_CFGR1_RESSEL: u32 = 24;
pub const ADC_CFGR1_RESSEL_0: u32 = 8;
pub const ADC_CFGR1_RESSEL_1: u32 = 16;
pub const ADC_CFGR1_ALIGN_Pos: u32 = 5;
pub const ADC_CFGR1_ALIGN_Msk: u32 = 32;
pub const ADC_CFGR1_ALIGN: u32 = 32;
pub const ADC_CFGR1_EXTSEL_Pos: u32 = 6;
pub const ADC_CFGR1_EXTSEL_Msk: u32 = 448;
pub const ADC_CFGR1_EXTSEL: u32 = 448;
pub const ADC_CFGR1_EXTSEL_0: u32 = 64;
pub const ADC_CFGR1_EXTSEL_1: u32 = 128;
pub const ADC_CFGR1_EXTSEL_2: u32 = 256;
pub const ADC_CFGR1_EXTEN_Pos: u32 = 10;
pub const ADC_CFGR1_EXTEN_Msk: u32 = 3072;
pub const ADC_CFGR1_EXTEN: u32 = 3072;
pub const ADC_CFGR1_EXTEN_0: u32 = 1024;
pub const ADC_CFGR1_EXTEN_1: u32 = 2048;
pub const ADC_CFGR1_OVRMOD_Pos: u32 = 12;
pub const ADC_CFGR1_OVRMOD_Msk: u32 = 4096;
pub const ADC_CFGR1_OVRMOD: u32 = 4096;
pub const ADC_CFGR1_CONT_Pos: u32 = 13;
pub const ADC_CFGR1_CONT_Msk: u32 = 8192;
pub const ADC_CFGR1_CONT: u32 = 8192;
pub const ADC_CFGR1_WAIT_Pos: u32 = 14;
pub const ADC_CFGR1_WAIT_Msk: u32 = 16384;
pub const ADC_CFGR1_WAIT: u32 = 16384;
pub const ADC_CFGR1_DISCEN_Pos: u32 = 16;
pub const ADC_CFGR1_DISCEN_Msk: u32 = 65536;
pub const ADC_CFGR1_DISCEN: u32 = 65536;
pub const ADC_CFGR1_AWDSGL_Pos: u32 = 22;
pub const ADC_CFGR1_AWDSGL_Msk: u32 = 4194304;
pub const ADC_CFGR1_AWDSGL: u32 = 4194304;
pub const ADC_CFGR1_AWDEN_Pos: u32 = 23;
pub const ADC_CFGR1_AWDEN_Msk: u32 = 8388608;
pub const ADC_CFGR1_AWDEN: u32 = 8388608;
pub const ADC_CFGR1_AWDCH_Pos: u32 = 26;
pub const ADC_CFGR1_AWDCH_Msk: u32 = 1006632960;
pub const ADC_CFGR1_AWDCH: u32 = 1006632960;
pub const ADC_CFGR1_AWDCH_0: u32 = 67108864;
pub const ADC_CFGR1_AWDCH_1: u32 = 134217728;
pub const ADC_CFGR1_AWDCH_2: u32 = 268435456;
pub const ADC_CFGR1_AWDCH_3: u32 = 536870912;
pub const ADC_CFGR2_CKMODE_Pos: u32 = 28;
pub const ADC_CFGR2_CKMODE_Msk: u32 = 4026531840;
pub const ADC_CFGR2_CKMODE: u32 = 4026531840;
pub const ADC_CFGR2_CKMODE_0: u32 = 268435456;
pub const ADC_CFGR2_CKMODE_1: u32 = 536870912;
pub const ADC_CFGR2_CKMODE_2: u32 = 1073741824;
pub const ADC_CFGR2_CKMODE_3: u32 = 2147483648;
pub const ADC_SMPR_SMP_Pos: u32 = 0;
pub const ADC_SMPR_SMP_Msk: u32 = 7;
pub const ADC_SMPR_SMP: u32 = 7;
pub const ADC_SMPR_SMP_0: u32 = 1;
pub const ADC_SMPR_SMP_1: u32 = 2;
pub const ADC_SMPR_SMP_2: u32 = 4;
pub const ADC_TR_LT_Pos: u32 = 0;
pub const ADC_TR_LT_Msk: u32 = 4095;
pub const ADC_TR_LT: u32 = 4095;
pub const ADC_TR_LT_0: u32 = 1;
pub const ADC_TR_LT_1: u32 = 2;
pub const ADC_TR_LT_2: u32 = 4;
pub const ADC_TR_LT_3: u32 = 8;
pub const ADC_TR_LT_4: u32 = 16;
pub const ADC_TR_LT_5: u32 = 32;
pub const ADC_TR_LT_6: u32 = 64;
pub const ADC_TR_LT_7: u32 = 128;
pub const ADC_TR_LT_8: u32 = 256;
pub const ADC_TR_LT_9: u32 = 512;
pub const ADC_TR_LT_10: u32 = 1024;
pub const ADC_TR_LT_11: u32 = 2048;
pub const ADC_TR_HT_Pos: u32 = 16;
pub const ADC_TR_HT_Msk: u32 = 268369920;
pub const ADC_TR_HT: u32 = 268369920;
pub const ADC_TR_HT_0: u32 = 65536;
pub const ADC_TR_HT_1: u32 = 131072;
pub const ADC_TR_HT_2: u32 = 262144;
pub const ADC_TR_HT_3: u32 = 524288;
pub const ADC_TR_HT_4: u32 = 1048576;
pub const ADC_TR_HT_5: u32 = 2097152;
pub const ADC_TR_HT_6: u32 = 4194304;
pub const ADC_TR_HT_7: u32 = 8388608;
pub const ADC_TR_HT_8: u32 = 16777216;
pub const ADC_TR_HT_9: u32 = 33554432;
pub const ADC_TR_HT_10: u32 = 67108864;
pub const ADC_TR_HT_11: u32 = 134217728;
pub const ADC_CHSELR_CHSEL_Pos: u32 = 0;
pub const ADC_CHSELR_CHSEL_Msk: u32 = 7167;
pub const ADC_CHSELR_CHSEL: u32 = 7167;
pub const ADC_CHSELR_CHSEL12_Pos: u32 = 12;
pub const ADC_CHSELR_CHSEL12_Msk: u32 = 4096;
pub const ADC_CHSELR_CHSEL12: u32 = 4096;
pub const ADC_CHSELR_CHSEL11_Pos: u32 = 11;
pub const ADC_CHSELR_CHSEL11_Msk: u32 = 2048;
pub const ADC_CHSELR_CHSEL11: u32 = 2048;
pub const ADC_CHSELR_CHSEL9_Pos: u32 = 9;
pub const ADC_CHSELR_CHSEL9_Msk: u32 = 512;
pub const ADC_CHSELR_CHSEL9: u32 = 512;
pub const ADC_CHSELR_CHSEL8_Pos: u32 = 8;
pub const ADC_CHSELR_CHSEL8_Msk: u32 = 256;
pub const ADC_CHSELR_CHSEL8: u32 = 256;
pub const ADC_CHSELR_CHSEL7_Pos: u32 = 7;
pub const ADC_CHSELR_CHSEL7_Msk: u32 = 128;
pub const ADC_CHSELR_CHSEL7: u32 = 128;
pub const ADC_CHSELR_CHSEL6_Pos: u32 = 6;
pub const ADC_CHSELR_CHSEL6_Msk: u32 = 64;
pub const ADC_CHSELR_CHSEL6: u32 = 64;
pub const ADC_CHSELR_CHSEL5_Pos: u32 = 5;
pub const ADC_CHSELR_CHSEL5_Msk: u32 = 32;
pub const ADC_CHSELR_CHSEL5: u32 = 32;
pub const ADC_CHSELR_CHSEL4_Pos: u32 = 4;
pub const ADC_CHSELR_CHSEL4_Msk: u32 = 16;
pub const ADC_CHSELR_CHSEL4: u32 = 16;
pub const ADC_CHSELR_CHSEL3_Pos: u32 = 3;
pub const ADC_CHSELR_CHSEL3_Msk: u32 = 8;
pub const ADC_CHSELR_CHSEL3: u32 = 8;
pub const ADC_CHSELR_CHSEL2_Pos: u32 = 2;
pub const ADC_CHSELR_CHSEL2_Msk: u32 = 4;
pub const ADC_CHSELR_CHSEL2: u32 = 4;
pub const ADC_CHSELR_CHSEL1_Pos: u32 = 1;
pub const ADC_CHSELR_CHSEL1_Msk: u32 = 2;
pub const ADC_CHSELR_CHSEL1: u32 = 2;
pub const ADC_CHSELR_CHSEL0_Pos: u32 = 0;
pub const ADC_CHSELR_CHSEL0_Msk: u32 = 1;
pub const ADC_CHSELR_CHSEL0: u32 = 1;
pub const ADC_DR_DATA_Pos: u32 = 0;
pub const ADC_DR_DATA_Msk: u32 = 65535;
pub const ADC_DR_DATA: u32 = 65535;
pub const ADC_DR_DATA_0: u32 = 1;
pub const ADC_DR_DATA_1: u32 = 2;
pub const ADC_DR_DATA_2: u32 = 4;
pub const ADC_DR_DATA_3: u32 = 8;
pub const ADC_DR_DATA_4: u32 = 16;
pub const ADC_DR_DATA_5: u32 = 32;
pub const ADC_DR_DATA_6: u32 = 64;
pub const ADC_DR_DATA_7: u32 = 128;
pub const ADC_DR_DATA_8: u32 = 256;
pub const ADC_DR_DATA_9: u32 = 512;
pub const ADC_DR_DATA_10: u32 = 1024;
pub const ADC_DR_DATA_11: u32 = 2048;
pub const ADC_DR_DATA_12: u32 = 4096;
pub const ADC_DR_DATA_13: u32 = 8192;
pub const ADC_DR_DATA_14: u32 = 16384;
pub const ADC_DR_DATA_15: u32 = 32768;
pub const ADC_CCSR_CALSEL_Pos: u32 = 11;
pub const ADC_CCSR_CALSEL_Msk: u32 = 2048;
pub const ADC_CCSR_CALSEL: u32 = 2048;
pub const ADC_CCSR_CALSMP_Pos: u32 = 12;
pub const ADC_CCSR_CALSMP_Msk: u32 = 12288;
pub const ADC_CCSR_CALSMP: u32 = 12288;
pub const ADC_CCSR_CALSMP_0: u32 = 4096;
pub const ADC_CCSR_CALSMP_1: u32 = 8192;
pub const ADC_CCSR_CALFAIL_Pos: u32 = 30;
pub const ADC_CCSR_CALFAIL_Msk: u32 = 1073741824;
pub const ADC_CCSR_CALFAIL: u32 = 1073741824;
pub const ADC_CCSR_CALON_Pos: u32 = 31;
pub const ADC_CCSR_CALON_Msk: u32 = 2147483648;
pub const ADC_CCSR_CALON: u32 = 2147483648;
pub const ADC_CCR_VREFEN_Pos: u32 = 22;
pub const ADC_CCR_VREFEN_Msk: u32 = 4194304;
pub const ADC_CCR_VREFEN: u32 = 4194304;
pub const ADC_CCR_TSEN_Pos: u32 = 23;
pub const ADC_CCR_TSEN_Msk: u32 = 8388608;
pub const ADC_CCR_TSEN: u32 = 8388608;
pub const CRC_DR_DR_Pos: u32 = 0;
pub const CRC_DR_DR_Msk: u32 = 4294967295;
pub const CRC_DR_DR: u32 = 4294967295;
pub const CRC_IDR_IDR_Pos: u32 = 0;
pub const CRC_IDR_IDR_Msk: u32 = 255;
pub const CRC_IDR_IDR: u32 = 255;
pub const CRC_CR_RESET_Pos: u32 = 0;
pub const CRC_CR_RESET_Msk: u32 = 1;
pub const CRC_CR_RESET: u32 = 1;
pub const DBGMCU_IDCODE_DEV_ID_Pos: u32 = 0;
pub const DBGMCU_IDCODE_DEV_ID_Msk: u32 = 4095;
pub const DBGMCU_IDCODE_DEV_ID: u32 = 4095;
pub const DBGMCU_IDCODE_REV_ID_Pos: u32 = 16;
pub const DBGMCU_IDCODE_REV_ID_Msk: u32 = 4294901760;
pub const DBGMCU_IDCODE_REV_ID: u32 = 4294901760;
pub const DBGMCU_CR_DBG_STOP_Pos: u32 = 1;
pub const DBGMCU_CR_DBG_STOP_Msk: u32 = 2;
pub const DBGMCU_CR_DBG_STOP: u32 = 2;
pub const DBGMCU_APB_FZ1_DBG_TIM3_STOP_Pos: u32 = 1;
pub const DBGMCU_APB_FZ1_DBG_TIM3_STOP_Msk: u32 = 2;
pub const DBGMCU_APB_FZ1_DBG_TIM3_STOP: u32 = 2;
pub const DBGMCU_APB_FZ1_DBG_RTC_STOP_Pos: u32 = 10;
pub const DBGMCU_APB_FZ1_DBG_RTC_STOP_Msk: u32 = 1024;
pub const DBGMCU_APB_FZ1_DBG_RTC_STOP: u32 = 1024;
pub const DBGMCU_APB_FZ1_DBG_WWDG_STOP_Pos: u32 = 11;
pub const DBGMCU_APB_FZ1_DBG_WWDG_STOP_Msk: u32 = 2048;
pub const DBGMCU_APB_FZ1_DBG_WWDG_STOP: u32 = 2048;
pub const DBGMCU_APB_FZ1_DBG_IWDG_STOP_Pos: u32 = 12;
pub const DBGMCU_APB_FZ1_DBG_IWDG_STOP_Msk: u32 = 4096;
pub const DBGMCU_APB_FZ1_DBG_IWDG_STOP: u32 = 4096;
pub const DBGMCU_APB_FZ1_DBG_LPTIM_STOP_Pos: u32 = 31;
pub const DBGMCU_APB_FZ1_DBG_LPTIM_STOP_Msk: u32 = 2147483648;
pub const DBGMCU_APB_FZ1_DBG_LPTIM_STOP: u32 = 2147483648;
pub const DBGMCU_APB_FZ2_DBG_TIM1_STOP_Pos: u32 = 11;
pub const DBGMCU_APB_FZ2_DBG_TIM1_STOP_Msk: u32 = 2048;
pub const DBGMCU_APB_FZ2_DBG_TIM1_STOP: u32 = 2048;
pub const DBGMCU_APB_FZ2_DBG_TIM14_STOP_Pos: u32 = 15;
pub const DBGMCU_APB_FZ2_DBG_TIM14_STOP_Msk: u32 = 32768;
pub const DBGMCU_APB_FZ2_DBG_TIM14_STOP: u32 = 32768;
pub const DBGMCU_APB_FZ2_DBG_TIM16_STOP_Pos: u32 = 17;
pub const DBGMCU_APB_FZ2_DBG_TIM16_STOP_Msk: u32 = 131072;
pub const DBGMCU_APB_FZ2_DBG_TIM16_STOP: u32 = 131072;
pub const DBGMCU_APB_FZ2_DBG_TIM17_STOP_Pos: u32 = 18;
pub const DBGMCU_APB_FZ2_DBG_TIM17_STOP_Msk: u32 = 262144;
pub const DBGMCU_APB_FZ2_DBG_TIM17_STOP: u32 = 262144;
pub const DMA_ISR_GIF1_Pos: u32 = 0;
pub const DMA_ISR_GIF1_Msk: u32 = 1;
pub const DMA_ISR_GIF1: u32 = 1;
pub const DMA_ISR_TCIF1_Pos: u32 = 1;
pub const DMA_ISR_TCIF1_Msk: u32 = 2;
pub const DMA_ISR_TCIF1: u32 = 2;
pub const DMA_ISR_HTIF1_Pos: u32 = 2;
pub const DMA_ISR_HTIF1_Msk: u32 = 4;
pub const DMA_ISR_HTIF1: u32 = 4;
pub const DMA_ISR_TEIF1_Pos: u32 = 3;
pub const DMA_ISR_TEIF1_Msk: u32 = 8;
pub const DMA_ISR_TEIF1: u32 = 8;
pub const DMA_ISR_GIF2_Pos: u32 = 4;
pub const DMA_ISR_GIF2_Msk: u32 = 16;
pub const DMA_ISR_GIF2: u32 = 16;
pub const DMA_ISR_TCIF2_Pos: u32 = 5;
pub const DMA_ISR_TCIF2_Msk: u32 = 32;
pub const DMA_ISR_TCIF2: u32 = 32;
pub const DMA_ISR_HTIF2_Pos: u32 = 6;
pub const DMA_ISR_HTIF2_Msk: u32 = 64;
pub const DMA_ISR_HTIF2: u32 = 64;
pub const DMA_ISR_TEIF2_Pos: u32 = 7;
pub const DMA_ISR_TEIF2_Msk: u32 = 128;
pub const DMA_ISR_TEIF2: u32 = 128;
pub const DMA_ISR_GIF3_Pos: u32 = 8;
pub const DMA_ISR_GIF3_Msk: u32 = 256;
pub const DMA_ISR_GIF3: u32 = 256;
pub const DMA_ISR_TCIF3_Pos: u32 = 9;
pub const DMA_ISR_TCIF3_Msk: u32 = 512;
pub const DMA_ISR_TCIF3: u32 = 512;
pub const DMA_ISR_HTIF3_Pos: u32 = 10;
pub const DMA_ISR_HTIF3_Msk: u32 = 1024;
pub const DMA_ISR_HTIF3: u32 = 1024;
pub const DMA_ISR_TEIF3_Pos: u32 = 11;
pub const DMA_ISR_TEIF3_Msk: u32 = 2048;
pub const DMA_ISR_TEIF3: u32 = 2048;
pub const DMA_IFCR_CGIF1_Pos: u32 = 0;
pub const DMA_IFCR_CGIF1_Msk: u32 = 1;
pub const DMA_IFCR_CGIF1: u32 = 1;
pub const DMA_IFCR_CTCIF1_Pos: u32 = 1;
pub const DMA_IFCR_CTCIF1_Msk: u32 = 2;
pub const DMA_IFCR_CTCIF1: u32 = 2;
pub const DMA_IFCR_CHTIF1_Pos: u32 = 2;
pub const DMA_IFCR_CHTIF1_Msk: u32 = 4;
pub const DMA_IFCR_CHTIF1: u32 = 4;
pub const DMA_IFCR_CTEIF1_Pos: u32 = 3;
pub const DMA_IFCR_CTEIF1_Msk: u32 = 8;
pub const DMA_IFCR_CTEIF1: u32 = 8;
pub const DMA_IFCR_CGIF2_Pos: u32 = 4;
pub const DMA_IFCR_CGIF2_Msk: u32 = 16;
pub const DMA_IFCR_CGIF2: u32 = 16;
pub const DMA_IFCR_CTCIF2_Pos: u32 = 5;
pub const DMA_IFCR_CTCIF2_Msk: u32 = 32;
pub const DMA_IFCR_CTCIF2: u32 = 32;
pub const DMA_IFCR_CHTIF2_Pos: u32 = 6;
pub const DMA_IFCR_CHTIF2_Msk: u32 = 64;
pub const DMA_IFCR_CHTIF2: u32 = 64;
pub const DMA_IFCR_CTEIF2_Pos: u32 = 7;
pub const DMA_IFCR_CTEIF2_Msk: u32 = 128;
pub const DMA_IFCR_CTEIF2: u32 = 128;
pub const DMA_IFCR_CGIF3_Pos: u32 = 8;
pub const DMA_IFCR_CGIF3_Msk: u32 = 256;
pub const DMA_IFCR_CGIF3: u32 = 256;
pub const DMA_IFCR_CTCIF3_Pos: u32 = 9;
pub const DMA_IFCR_CTCIF3_Msk: u32 = 512;
pub const DMA_IFCR_CTCIF3: u32 = 512;
pub const DMA_IFCR_CHTIF3_Pos: u32 = 10;
pub const DMA_IFCR_CHTIF3_Msk: u32 = 1024;
pub const DMA_IFCR_CHTIF3: u32 = 1024;
pub const DMA_IFCR_CTEIF3_Pos: u32 = 11;
pub const DMA_IFCR_CTEIF3_Msk: u32 = 2048;
pub const DMA_IFCR_CTEIF3: u32 = 2048;
pub const DMA_CCR_EN_Pos: u32 = 0;
pub const DMA_CCR_EN_Msk: u32 = 1;
pub const DMA_CCR_EN: u32 = 1;
pub const DMA_CCR_TCIE_Pos: u32 = 1;
pub const DMA_CCR_TCIE_Msk: u32 = 2;
pub const DMA_CCR_TCIE: u32 = 2;
pub const DMA_CCR_HTIE_Pos: u32 = 2;
pub const DMA_CCR_HTIE_Msk: u32 = 4;
pub const DMA_CCR_HTIE: u32 = 4;
pub const DMA_CCR_TEIE_Pos: u32 = 3;
pub const DMA_CCR_TEIE_Msk: u32 = 8;
pub const DMA_CCR_TEIE: u32 = 8;
pub const DMA_CCR_DIR_Pos: u32 = 4;
pub const DMA_CCR_DIR_Msk: u32 = 16;
pub const DMA_CCR_DIR: u32 = 16;
pub const DMA_CCR_CIRC_Pos: u32 = 5;
pub const DMA_CCR_CIRC_Msk: u32 = 32;
pub const DMA_CCR_CIRC: u32 = 32;
pub const DMA_CCR_PINC_Pos: u32 = 6;
pub const DMA_CCR_PINC_Msk: u32 = 64;
pub const DMA_CCR_PINC: u32 = 64;
pub const DMA_CCR_MINC_Pos: u32 = 7;
pub const DMA_CCR_MINC_Msk: u32 = 128;
pub const DMA_CCR_MINC: u32 = 128;
pub const DMA_CCR_PSIZE_Pos: u32 = 8;
pub const DMA_CCR_PSIZE_Msk: u32 = 768;
pub const DMA_CCR_PSIZE: u32 = 768;
pub const DMA_CCR_PSIZE_0: u32 = 256;
pub const DMA_CCR_PSIZE_1: u32 = 512;
pub const DMA_CCR_MSIZE_Pos: u32 = 10;
pub const DMA_CCR_MSIZE_Msk: u32 = 3072;
pub const DMA_CCR_MSIZE: u32 = 3072;
pub const DMA_CCR_MSIZE_0: u32 = 1024;
pub const DMA_CCR_MSIZE_1: u32 = 2048;
pub const DMA_CCR_PL_Pos: u32 = 12;
pub const DMA_CCR_PL_Msk: u32 = 12288;
pub const DMA_CCR_PL: u32 = 12288;
pub const DMA_CCR_PL_0: u32 = 4096;
pub const DMA_CCR_PL_1: u32 = 8192;
pub const DMA_CCR_MEM2MEM_Pos: u32 = 14;
pub const DMA_CCR_MEM2MEM_Msk: u32 = 16384;
pub const DMA_CCR_MEM2MEM: u32 = 16384;
pub const DMA_CNDTR_NDT_Pos: u32 = 0;
pub const DMA_CNDTR_NDT_Msk: u32 = 65535;
pub const DMA_CNDTR_NDT: u32 = 65535;
pub const DMA_CPAR_PA_Pos: u32 = 0;
pub const DMA_CPAR_PA_Msk: u32 = 4294967295;
pub const DMA_CPAR_PA: u32 = 4294967295;
pub const DMA_CMAR_MA_Pos: u32 = 0;
pub const DMA_CMAR_MA_Msk: u32 = 4294967295;
pub const DMA_CMAR_MA: u32 = 4294967295;
pub const EXTI_RTSR_RT0_Pos: u32 = 0;
pub const EXTI_RTSR_RT0_Msk: u32 = 1;
pub const EXTI_RTSR_RT0: u32 = 1;
pub const EXTI_RTSR_RT1_Pos: u32 = 1;
pub const EXTI_RTSR_RT1_Msk: u32 = 2;
pub const EXTI_RTSR_RT1: u32 = 2;
pub const EXTI_RTSR_RT2_Pos: u32 = 2;
pub const EXTI_RTSR_RT2_Msk: u32 = 4;
pub const EXTI_RTSR_RT2: u32 = 4;
pub const EXTI_RTSR_RT3_Pos: u32 = 3;
pub const EXTI_RTSR_RT3_Msk: u32 = 8;
pub const EXTI_RTSR_RT3: u32 = 8;
pub const EXTI_RTSR_RT4_Pos: u32 = 4;
pub const EXTI_RTSR_RT4_Msk: u32 = 16;
pub const EXTI_RTSR_RT4: u32 = 16;
pub const EXTI_RTSR_RT5_Pos: u32 = 5;
pub const EXTI_RTSR_RT5_Msk: u32 = 32;
pub const EXTI_RTSR_RT5: u32 = 32;
pub const EXTI_RTSR_RT6_Pos: u32 = 6;
pub const EXTI_RTSR_RT6_Msk: u32 = 64;
pub const EXTI_RTSR_RT6: u32 = 64;
pub const EXTI_RTSR_RT7_Pos: u32 = 7;
pub const EXTI_RTSR_RT7_Msk: u32 = 128;
pub const EXTI_RTSR_RT7: u32 = 128;
pub const EXTI_RTSR_RT8_Pos: u32 = 8;
pub const EXTI_RTSR_RT8_Msk: u32 = 256;
pub const EXTI_RTSR_RT8: u32 = 256;
pub const EXTI_RTSR_RT9_Pos: u32 = 9;
pub const EXTI_RTSR_RT9_Msk: u32 = 512;
pub const EXTI_RTSR_RT9: u32 = 512;
pub const EXTI_RTSR_RT10_Pos: u32 = 10;
pub const EXTI_RTSR_RT10_Msk: u32 = 1024;
pub const EXTI_RTSR_RT10: u32 = 1024;
pub const EXTI_RTSR_RT11_Pos: u32 = 11;
pub const EXTI_RTSR_RT11_Msk: u32 = 2048;
pub const EXTI_RTSR_RT11: u32 = 2048;
pub const EXTI_RTSR_RT12_Pos: u32 = 12;
pub const EXTI_RTSR_RT12_Msk: u32 = 4096;
pub const EXTI_RTSR_RT12: u32 = 4096;
pub const EXTI_RTSR_RT13_Pos: u32 = 13;
pub const EXTI_RTSR_RT13_Msk: u32 = 8192;
pub const EXTI_RTSR_RT13: u32 = 8192;
pub const EXTI_RTSR_RT14_Pos: u32 = 14;
pub const EXTI_RTSR_RT14_Msk: u32 = 16384;
pub const EXTI_RTSR_RT14: u32 = 16384;
pub const EXTI_RTSR_RT15_Pos: u32 = 15;
pub const EXTI_RTSR_RT15_Msk: u32 = 32768;
pub const EXTI_RTSR_RT15: u32 = 32768;
pub const EXTI_RTSR_RT16_Pos: u32 = 16;
pub const EXTI_RTSR_RT16_Msk: u32 = 65536;
pub const EXTI_RTSR_RT16: u32 = 65536;
pub const EXTI_RTSR_RT17_Pos: u32 = 17;
pub const EXTI_RTSR_RT17_Msk: u32 = 65536;
pub const EXTI_RTSR_RT17: u32 = 65536;
pub const EXTI_RTSR_RT18_Pos: u32 = 18;
pub const EXTI_RTSR_RT18_Msk: u32 = 262144;
pub const EXTI_RTSR_RT18: u32 = 262144;
pub const EXTI_FTSR_FT0_Pos: u32 = 0;
pub const EXTI_FTSR_FT0_Msk: u32 = 1;
pub const EXTI_FTSR_FT0: u32 = 1;
pub const EXTI_FTSR_FT1_Pos: u32 = 1;
pub const EXTI_FTSR_FT1_Msk: u32 = 2;
pub const EXTI_FTSR_FT1: u32 = 2;
pub const EXTI_FTSR_FT2_Pos: u32 = 2;
pub const EXTI_FTSR_FT2_Msk: u32 = 4;
pub const EXTI_FTSR_FT2: u32 = 4;
pub const EXTI_FTSR_FT3_Pos: u32 = 3;
pub const EXTI_FTSR_FT3_Msk: u32 = 8;
pub const EXTI_FTSR_FT3: u32 = 8;
pub const EXTI_FTSR_FT4_Pos: u32 = 4;
pub const EXTI_FTSR_FT4_Msk: u32 = 16;
pub const EXTI_FTSR_FT4: u32 = 16;
pub const EXTI_FTSR_FT5_Pos: u32 = 5;
pub const EXTI_FTSR_FT5_Msk: u32 = 32;
pub const EXTI_FTSR_FT5: u32 = 32;
pub const EXTI_FTSR_FT6_Pos: u32 = 6;
pub const EXTI_FTSR_FT6_Msk: u32 = 64;
pub const EXTI_FTSR_FT6: u32 = 64;
pub const EXTI_FTSR_FT7_Pos: u32 = 7;
pub const EXTI_FTSR_FT7_Msk: u32 = 128;
pub const EXTI_FTSR_FT7: u32 = 128;
pub const EXTI_FTSR_FT8_Pos: u32 = 8;
pub const EXTI_FTSR_FT8_Msk: u32 = 256;
pub const EXTI_FTSR_FT8: u32 = 256;
pub const EXTI_FTSR_FT9_Pos: u32 = 9;
pub const EXTI_FTSR_FT9_Msk: u32 = 512;
pub const EXTI_FTSR_FT9: u32 = 512;
pub const EXTI_FTSR_FT10_Pos: u32 = 10;
pub const EXTI_FTSR_FT10_Msk: u32 = 1024;
pub const EXTI_FTSR_FT10: u32 = 1024;
pub const EXTI_FTSR_FT11_Pos: u32 = 11;
pub const EXTI_FTSR_FT11_Msk: u32 = 2048;
pub const EXTI_FTSR_FT11: u32 = 2048;
pub const EXTI_FTSR_FT12_Pos: u32 = 12;
pub const EXTI_FTSR_FT12_Msk: u32 = 4096;
pub const EXTI_FTSR_FT12: u32 = 4096;
pub const EXTI_FTSR_FT13_Pos: u32 = 13;
pub const EXTI_FTSR_FT13_Msk: u32 = 8192;
pub const EXTI_FTSR_FT13: u32 = 8192;
pub const EXTI_FTSR_FT14_Pos: u32 = 14;
pub const EXTI_FTSR_FT14_Msk: u32 = 16384;
pub const EXTI_FTSR_FT14: u32 = 16384;
pub const EXTI_FTSR_FT15_Pos: u32 = 15;
pub const EXTI_FTSR_FT15_Msk: u32 = 32768;
pub const EXTI_FTSR_FT15: u32 = 32768;
pub const EXTI_FTSR_FT16_Pos: u32 = 16;
pub const EXTI_FTSR_FT16_Msk: u32 = 65536;
pub const EXTI_FTSR_FT16: u32 = 65536;
pub const EXTI_FTSR_FT17_Pos: u32 = 17;
pub const EXTI_FTSR_FT17_Msk: u32 = 131072;
pub const EXTI_FTSR_FT17: u32 = 131072;
pub const EXTI_FTSR_FT18_Pos: u32 = 18;
pub const EXTI_FTSR_FT18_Msk: u32 = 262144;
pub const EXTI_FTSR_FT18: u32 = 262144;
pub const EXTI_SWIER_SWI0_Pos: u32 = 0;
pub const EXTI_SWIER_SWI0_Msk: u32 = 1;
pub const EXTI_SWIER_SWI0: u32 = 1;
pub const EXTI_SWIER_SWI1_Pos: u32 = 1;
pub const EXTI_SWIER_SWI1_Msk: u32 = 2;
pub const EXTI_SWIER_SWI1: u32 = 2;
pub const EXTI_SWIER_SWI2_Pos: u32 = 2;
pub const EXTI_SWIER_SWI2_Msk: u32 = 4;
pub const EXTI_SWIER_SWI2: u32 = 4;
pub const EXTI_SWIER_SWI3_Pos: u32 = 3;
pub const EXTI_SWIER_SWI3_Msk: u32 = 8;
pub const EXTI_SWIER_SWI3: u32 = 8;
pub const EXTI_SWIER_SWI4_Pos: u32 = 4;
pub const EXTI_SWIER_SWI4_Msk: u32 = 16;
pub const EXTI_SWIER_SWI4: u32 = 16;
pub const EXTI_SWIER_SWI5_Pos: u32 = 5;
pub const EXTI_SWIER_SWI5_Msk: u32 = 32;
pub const EXTI_SWIER_SWI5: u32 = 32;
pub const EXTI_SWIER_SWI6_Pos: u32 = 6;
pub const EXTI_SWIER_SWI6_Msk: u32 = 64;
pub const EXTI_SWIER_SWI6: u32 = 64;
pub const EXTI_SWIER_SWI7_Pos: u32 = 7;
pub const EXTI_SWIER_SWI7_Msk: u32 = 128;
pub const EXTI_SWIER_SWI7: u32 = 128;
pub const EXTI_SWIER_SWI8_Pos: u32 = 8;
pub const EXTI_SWIER_SWI8_Msk: u32 = 256;
pub const EXTI_SWIER_SWI8: u32 = 256;
pub const EXTI_SWIER_SWI9_Pos: u32 = 9;
pub const EXTI_SWIER_SWI9_Msk: u32 = 512;
pub const EXTI_SWIER_SWI9: u32 = 512;
pub const EXTI_SWIER_SWI10_Pos: u32 = 10;
pub const EXTI_SWIER_SWI10_Msk: u32 = 1024;
pub const EXTI_SWIER_SWI10: u32 = 1024;
pub const EXTI_SWIER_SWI11_Pos: u32 = 11;
pub const EXTI_SWIER_SWI11_Msk: u32 = 2048;
pub const EXTI_SWIER_SWI11: u32 = 2048;
pub const EXTI_SWIER_SWI12_Pos: u32 = 12;
pub const EXTI_SWIER_SWI12_Msk: u32 = 4096;
pub const EXTI_SWIER_SWI12: u32 = 4096;
pub const EXTI_SWIER_SWI13_Pos: u32 = 13;
pub const EXTI_SWIER_SWI13_Msk: u32 = 8192;
pub const EXTI_SWIER_SWI13: u32 = 8192;
pub const EXTI_SWIER_SWI14_Pos: u32 = 14;
pub const EXTI_SWIER_SWI14_Msk: u32 = 16384;
pub const EXTI_SWIER_SWI14: u32 = 16384;
pub const EXTI_SWIER_SWI15_Pos: u32 = 15;
pub const EXTI_SWIER_SWI15_Msk: u32 = 32768;
pub const EXTI_SWIER_SWI15: u32 = 32768;
pub const EXTI_SWIER_SWI16_Pos: u32 = 16;
pub const EXTI_SWIER_SWI16_Msk: u32 = 65536;
pub const EXTI_SWIER_SWI16: u32 = 65536;
pub const EXTI_SWIER_SWI17_Pos: u32 = 17;
pub const EXTI_SWIER_SWI17_Msk: u32 = 131072;
pub const EXTI_SWIER_SWI17: u32 = 131072;
pub const EXTI_SWIER_SWI18_Pos: u32 = 18;
pub const EXTI_SWIER_SWI18_Msk: u32 = 262144;
pub const EXTI_SWIER_SWI18: u32 = 262144;
pub const EXTI_PR_PR0_Pos: u32 = 0;
pub const EXTI_PR_PR0_Msk: u32 = 1;
pub const EXTI_PR_PR0: u32 = 1;
pub const EXTI_PR_PR1_Pos: u32 = 1;
pub const EXTI_PR_PR1_Msk: u32 = 2;
pub const EXTI_PR_PR1: u32 = 2;
pub const EXTI_PR_PR2_Pos: u32 = 2;
pub const EXTI_PR_PR2_Msk: u32 = 4;
pub const EXTI_PR_PR2: u32 = 4;
pub const EXTI_PR_PR3_Pos: u32 = 3;
pub const EXTI_PR_PR3_Msk: u32 = 8;
pub const EXTI_PR_PR3: u32 = 8;
pub const EXTI_PR_PR_Pos: u32 = 4;
pub const EXTI_PR_PR_Msk: u32 = 16;
pub const EXTI_PR_PR4: u32 = 16;
pub const EXTI_PR_PR5_Pos: u32 = 5;
pub const EXTI_PR_PR5_Msk: u32 = 32;
pub const EXTI_PR_PR5: u32 = 32;
pub const EXTI_PR_PR6_Pos: u32 = 6;
pub const EXTI_PR_PR6_Msk: u32 = 64;
pub const EXTI_PR_PR6: u32 = 64;
pub const EXTI_PR_PR7_Pos: u32 = 7;
pub const EXTI_PR_PR7_Msk: u32 = 128;
pub const EXTI_PR_PR7: u32 = 128;
pub const EXTI_PR_PR8_Pos: u32 = 8;
pub const EXTI_PR_PR8_Msk: u32 = 256;
pub const EXTI_PR_PR8: u32 = 256;
pub const EXTI_PR_PR9_Pos: u32 = 9;
pub const EXTI_PR_PR9_Msk: u32 = 512;
pub const EXTI_PR_PR9: u32 = 512;
pub const EXTI_PR_PR10_Pos: u32 = 10;
pub const EXTI_PR_PR10_Msk: u32 = 1024;
pub const EXTI_PR_PR10: u32 = 1024;
pub const EXTI_PR_PR11_Pos: u32 = 11;
pub const EXTI_PR_PR11_Msk: u32 = 2048;
pub const EXTI_PR_PR11: u32 = 2048;
pub const EXTI_PR_PR12_Pos: u32 = 12;
pub const EXTI_PR_PR12_Msk: u32 = 4096;
pub const EXTI_PR_PR12: u32 = 4096;
pub const EXTI_PR_PR13_Pos: u32 = 13;
pub const EXTI_PR_PR13_Msk: u32 = 8192;
pub const EXTI_PR_PR13: u32 = 8192;
pub const EXTI_PR_PR14_Pos: u32 = 14;
pub const EXTI_PR_PR14_Msk: u32 = 16384;
pub const EXTI_PR_PR14: u32 = 16384;
pub const EXTI_PR_PR15_Pos: u32 = 15;
pub const EXTI_PR_PR15_Msk: u32 = 32768;
pub const EXTI_PR_PR15: u32 = 32768;
pub const EXTI_PR_PR16_Pos: u32 = 16;
pub const EXTI_PR_PR16_Msk: u32 = 65536;
pub const EXTI_PR_PR16: u32 = 65536;
pub const EXTI_PR_PR17_Pos: u32 = 17;
pub const EXTI_PR_PR17_Msk: u32 = 131072;
pub const EXTI_PR_PR17: u32 = 131072;
pub const EXTI_PR_PR18_Pos: u32 = 18;
pub const EXTI_PR_PR18_Msk: u32 = 262144;
pub const EXTI_PR_PR18: u32 = 262144;
pub const EXTI_PR_PIF0: u32 = 1;
pub const EXTI_PR_PIF1: u32 = 2;
pub const EXTI_PR_PIF2: u32 = 4;
pub const EXTI_PR_PIF3: u32 = 8;
pub const EXTI_PR_PIF4: u32 = 16;
pub const EXTI_PR_PIF5: u32 = 32;
pub const EXTI_PR_PIF6: u32 = 64;
pub const EXTI_PR_PIF7: u32 = 128;
pub const EXTI_PR_PIF8: u32 = 256;
pub const EXTI_PR_PIF9: u32 = 512;
pub const EXTI_PR_PIF10: u32 = 1024;
pub const EXTI_PR_PIF11: u32 = 2048;
pub const EXTI_PR_PIF12: u32 = 4096;
pub const EXTI_PR_PIF13: u32 = 8192;
pub const EXTI_PR_PIF14: u32 = 16384;
pub const EXTI_PR_PIF15: u32 = 32768;
pub const EXTI_PR_PIF16: u32 = 65536;
pub const EXTI_PR_PIF17: u32 = 131072;
pub const EXTI_PR_PIF18: u32 = 262144;
pub const EXTI_EXTICR1_EXTI0_Pos: u32 = 0;
pub const EXTI_EXTICR1_EXTI0_Msk: u32 = 3;
pub const EXTI_EXTICR1_EXTI0: u32 = 3;
pub const EXTI_EXTICR1_EXTI0_0: u32 = 1;
pub const EXTI_EXTICR1_EXTI0_1: u32 = 2;
pub const EXTI_EXTICR1_EXTI1_Pos: u32 = 8;
pub const EXTI_EXTICR1_EXTI1_Msk: u32 = 768;
pub const EXTI_EXTICR1_EXTI1: u32 = 768;
pub const EXTI_EXTICR1_EXTI1_0: u32 = 256;
pub const EXTI_EXTICR1_EXTI1_1: u32 = 512;
pub const EXTI_EXTICR1_EXTI2_Pos: u32 = 16;
pub const EXTI_EXTICR1_EXTI2_Msk: u32 = 196608;
pub const EXTI_EXTICR1_EXTI2: u32 = 196608;
pub const EXTI_EXTICR1_EXTI2_0: u32 = 65536;
pub const EXTI_EXTICR1_EXTI2_1: u32 = 131072;
pub const EXTI_EXTICR1_EXTI3_Pos: u32 = 24;
pub const EXTI_EXTICR1_EXTI3_Msk: u32 = 50331648;
pub const EXTI_EXTICR1_EXTI3: u32 = 50331648;
pub const EXTI_EXTICR1_EXTI3_0: u32 = 16777216;
pub const EXTI_EXTICR1_EXTI3_1: u32 = 33554432;
pub const EXTI_EXTICR2_EXTI4_Pos: u32 = 0;
pub const EXTI_EXTICR2_EXTI4_Msk: u32 = 3;
pub const EXTI_EXTICR2_EXTI4: u32 = 3;
pub const EXTI_EXTICR2_EXTI4_0: u32 = 1;
pub const EXTI_EXTICR2_EXTI4_1: u32 = 2;
pub const EXTI_EXTICR2_EXTI5_Pos: u32 = 8;
pub const EXTI_EXTICR2_EXTI5_Msk: u32 = 256;
pub const EXTI_EXTICR2_EXTI5: u32 = 256;
pub const EXTI_EXTICR2_EXTI6_Pos: u32 = 16;
pub const EXTI_EXTICR2_EXTI6_Msk: u32 = 65536;
pub const EXTI_EXTICR2_EXTI6: u32 = 65536;
pub const EXTI_EXTICR2_EXTI7_Pos: u32 = 24;
pub const EXTI_EXTICR2_EXTI7_Msk: u32 = 16777216;
pub const EXTI_EXTICR2_EXTI7: u32 = 16777216;
pub const EXTI_EXTICR3_EXTI8_Pos: u32 = 0;
pub const EXTI_EXTICR3_EXTI8_Msk: u32 = 1;
pub const EXTI_EXTICR3_EXTI8: u32 = 1;
pub const EXTI_IMR_IM_Pos: u32 = 0;
pub const EXTI_IMR_IM_Msk: u32 = 537919487;
pub const EXTI_IMR_IM: u32 = 537919487;
pub const EXTI_IMR_IM0_Pos: u32 = 0;
pub const EXTI_IMR_IM0_Msk: u32 = 1;
pub const EXTI_IMR_IM0: u32 = 1;
pub const EXTI_IMR_IM1_Pos: u32 = 1;
pub const EXTI_IMR_IM1_Msk: u32 = 2;
pub const EXTI_IMR_IM1: u32 = 2;
pub const EXTI_IMR_IM2_Pos: u32 = 2;
pub const EXTI_IMR_IM2_Msk: u32 = 4;
pub const EXTI_IMR_IM2: u32 = 4;
pub const EXTI_IMR_IM3_Pos: u32 = 3;
pub const EXTI_IMR_IM3_Msk: u32 = 8;
pub const EXTI_IMR_IM3: u32 = 8;
pub const EXTI_IMR_IM4_Pos: u32 = 4;
pub const EXTI_IMR_IM4_Msk: u32 = 16;
pub const EXTI_IMR_IM4: u32 = 16;
pub const EXTI_IMR_IM5_Pos: u32 = 5;
pub const EXTI_IMR_IM5_Msk: u32 = 32;
pub const EXTI_IMR_IM5: u32 = 32;
pub const EXTI_IMR_IM6_Pos: u32 = 6;
pub const EXTI_IMR_IM6_Msk: u32 = 64;
pub const EXTI_IMR_IM6: u32 = 64;
pub const EXTI_IMR_IM7_Pos: u32 = 7;
pub const EXTI_IMR_IM7_Msk: u32 = 128;
pub const EXTI_IMR_IM7: u32 = 128;
pub const EXTI_IMR_IM8_Pos: u32 = 8;
pub const EXTI_IMR_IM8_Msk: u32 = 256;
pub const EXTI_IMR_IM8: u32 = 256;
pub const EXTI_IMR_IM9_Pos: u32 = 9;
pub const EXTI_IMR_IM9_Msk: u32 = 512;
pub const EXTI_IMR_IM9: u32 = 512;
pub const EXTI_IMR_IM10_Pos: u32 = 10;
pub const EXTI_IMR_IM10_Msk: u32 = 1024;
pub const EXTI_IMR_IM10: u32 = 1024;
pub const EXTI_IMR_IM11_Pos: u32 = 11;
pub const EXTI_IMR_IM11_Msk: u32 = 2048;
pub const EXTI_IMR_IM11: u32 = 2048;
pub const EXTI_IMR_IM12_Pos: u32 = 12;
pub const EXTI_IMR_IM12_Msk: u32 = 4096;
pub const EXTI_IMR_IM12: u32 = 4096;
pub const EXTI_IMR_IM13_Pos: u32 = 13;
pub const EXTI_IMR_IM13_Msk: u32 = 8192;
pub const EXTI_IMR_IM13: u32 = 8192;
pub const EXTI_IMR_IM14_Pos: u32 = 14;
pub const EXTI_IMR_IM14_Msk: u32 = 16384;
pub const EXTI_IMR_IM14: u32 = 16384;
pub const EXTI_IMR_IM15_Pos: u32 = 15;
pub const EXTI_IMR_IM15_Msk: u32 = 32768;
pub const EXTI_IMR_IM15: u32 = 32768;
pub const EXTI_IMR_IM16_Pos: u32 = 16;
pub const EXTI_IMR_IM16_Msk: u32 = 65536;
pub const EXTI_IMR_IM16: u32 = 65536;
pub const EXTI_IMR_IM17_Pos: u32 = 17;
pub const EXTI_IMR_IM17_Msk: u32 = 131072;
pub const EXTI_IMR_IM17: u32 = 131072;
pub const EXTI_IMR_IM18_Pos: u32 = 18;
pub const EXTI_IMR_IM18_Msk: u32 = 262144;
pub const EXTI_IMR_IM18: u32 = 262144;
pub const EXTI_IMR_IM19_Pos: u32 = 19;
pub const EXTI_IMR_IM19_Msk: u32 = 524288;
pub const EXTI_IMR_IM19: u32 = 524288;
pub const EXTI_IMR_IM29_Pos: u32 = 29;
pub const EXTI_IMR_IM29_Msk: u32 = 536870912;
pub const EXTI_IMR_IM29: u32 = 536870912;
pub const EXTI_EMR_EM_Pos: u32 = 0;
pub const EXTI_EMR_EM_Msk: u32 = 537919487;
pub const EXTI_EMR_EM: u32 = 537919487;
pub const EXTI_EMR_EM0_Pos: u32 = 0;
pub const EXTI_EMR_EM0_Msk: u32 = 1;
pub const EXTI_EMR_EM0: u32 = 1;
pub const EXTI_EMR_EM1_Pos: u32 = 1;
pub const EXTI_EMR_EM1_Msk: u32 = 2;
pub const EXTI_EMR_EM1: u32 = 2;
pub const EXTI_EMR_EM2_Pos: u32 = 2;
pub const EXTI_EMR_EM2_Msk: u32 = 4;
pub const EXTI_EMR_EM2: u32 = 4;
pub const EXTI_EMR_EM3_Pos: u32 = 3;
pub const EXTI_EMR_EM3_Msk: u32 = 8;
pub const EXTI_EMR_EM3: u32 = 8;
pub const EXTI_EMR_EM4_Pos: u32 = 4;
pub const EXTI_EMR_EM4_Msk: u32 = 16;
pub const EXTI_EMR_EM4: u32 = 16;
pub const EXTI_EMR_EM5_Pos: u32 = 5;
pub const EXTI_EMR_EM5_Msk: u32 = 32;
pub const EXTI_EMR_EM5: u32 = 32;
pub const EXTI_EMR_EM6_Pos: u32 = 6;
pub const EXTI_EMR_EM6_Msk: u32 = 64;
pub const EXTI_EMR_EM6: u32 = 64;
pub const EXTI_EMR_EM7_Pos: u32 = 7;
pub const EXTI_EMR_EM7_Msk: u32 = 128;
pub const EXTI_EMR_EM7: u32 = 128;
pub const EXTI_EMR_EM8_Pos: u32 = 8;
pub const EXTI_EMR_EM8_Msk: u32 = 256;
pub const EXTI_EMR_EM8: u32 = 256;
pub const EXTI_EMR_EM9_Pos: u32 = 9;
pub const EXTI_EMR_EM9_Msk: u32 = 512;
pub const EXTI_EMR_EM9: u32 = 512;
pub const EXTI_EMR_EM10_Pos: u32 = 10;
pub const EXTI_EMR_EM10_Msk: u32 = 1024;
pub const EXTI_EMR_EM10: u32 = 1024;
pub const EXTI_EMR_EM11_Pos: u32 = 11;
pub const EXTI_EMR_EM11_Msk: u32 = 2048;
pub const EXTI_EMR_EM11: u32 = 2048;
pub const EXTI_EMR_EM12_Pos: u32 = 12;
pub const EXTI_EMR_EM12_Msk: u32 = 4096;
pub const EXTI_EMR_EM12: u32 = 4096;
pub const EXTI_EMR_EM13_Pos: u32 = 13;
pub const EXTI_EMR_EM13_Msk: u32 = 8192;
pub const EXTI_EMR_EM13: u32 = 8192;
pub const EXTI_EMR_EM14_Pos: u32 = 14;
pub const EXTI_EMR_EM14_Msk: u32 = 16384;
pub const EXTI_EMR_EM14: u32 = 16384;
pub const EXTI_EMR_EM15_Pos: u32 = 15;
pub const EXTI_EMR_EM15_Msk: u32 = 32768;
pub const EXTI_EMR_EM15: u32 = 32768;
pub const EXTI_EMR_EM16_Pos: u32 = 16;
pub const EXTI_EMR_EM16_Msk: u32 = 65536;
pub const EXTI_EMR_EM16: u32 = 65536;
pub const EXTI_EMR_EM17_Pos: u32 = 17;
pub const EXTI_EMR_EM17_Msk: u32 = 131072;
pub const EXTI_EMR_EM17: u32 = 131072;
pub const EXTI_EMR_EM18_Pos: u32 = 18;
pub const EXTI_EMR_EM18_Msk: u32 = 262144;
pub const EXTI_EMR_EM18: u32 = 262144;
pub const EXTI_EMR_EM19_Pos: u32 = 19;
pub const EXTI_EMR_EM19_Msk: u32 = 524288;
pub const EXTI_EMR_EM19: u32 = 524288;
pub const EXTI_EMR_EM29_Pos: u32 = 29;
pub const EXTI_EMR_EM29_Msk: u32 = 536870912;
pub const EXTI_EMR_EM29: u32 = 536870912;
pub const FLASH_ACR_LATENCY_Pos: u32 = 0;
pub const FLASH_ACR_LATENCY_Msk: u32 = 1;
pub const FLASH_ACR_LATENCY: u32 = 1;
pub const FLASH_KEYR_KEY_Pos: u32 = 0;
pub const FLASH_KEYR_KEY_Msk: u32 = 4294967295;
pub const FLASH_KEYR_KEY: u32 = 4294967295;
pub const FLASH_OPTKEYR_OPTKEY_Pos: u32 = 0;
pub const FLASH_OPTKEYR_OPTKEY_Msk: u32 = 4294967295;
pub const FLASH_OPTKEYR_OPTKEY: u32 = 4294967295;
pub const FLASH_KEY1_Pos: u32 = 0;
pub const FLASH_KEY1_Msk: u32 = 1164378403;
pub const FLASH_KEY1: u32 = 1164378403;
pub const FLASH_KEY2_Pos: u32 = 0;
pub const FLASH_KEY2_Msk: u32 = 3455027627;
pub const FLASH_KEY2: u32 = 3455027627;
pub const FLASH_OPTKEY1_Pos: u32 = 0;
pub const FLASH_OPTKEY1_Msk: u32 = 135866939;
pub const FLASH_OPTKEY1: u32 = 135866939;
pub const FLASH_OPTKEY2_Pos: u32 = 0;
pub const FLASH_OPTKEY2_Msk: u32 = 1281191551;
pub const FLASH_OPTKEY2: u32 = 1281191551;
pub const FLASH_SR_EOP_Pos: u32 = 0;
pub const FLASH_SR_EOP_Msk: u32 = 1;
pub const FLASH_SR_EOP: u32 = 1;
pub const FLASH_SR_WRPERR_Pos: u32 = 4;
pub const FLASH_SR_WRPERR_Msk: u32 = 16;
pub const FLASH_SR_WRPERR: u32 = 16;
pub const FLASH_SR_OPTVERR_Pos: u32 = 15;
pub const FLASH_SR_OPTVERR_Msk: u32 = 32768;
pub const FLASH_SR_OPTVERR: u32 = 32768;
pub const FLASH_SR_BSY_Pos: u32 = 16;
pub const FLASH_SR_BSY_Msk: u32 = 65536;
pub const FLASH_SR_BSY: u32 = 65536;
pub const FLASH_CR_PG_Pos: u32 = 0;
pub const FLASH_CR_PG_Msk: u32 = 1;
pub const FLASH_CR_PG: u32 = 1;
pub const FLASH_CR_PER_Pos: u32 = 1;
pub const FLASH_CR_PER_Msk: u32 = 2;
pub const FLASH_CR_PER: u32 = 2;
pub const FLASH_CR_MER_Pos: u32 = 2;
pub const FLASH_CR_MER_Msk: u32 = 4;
pub const FLASH_CR_MER: u32 = 4;
pub const FLASH_CR_SER_Pos: u32 = 11;
pub const FLASH_CR_SER_Msk: u32 = 2048;
pub const FLASH_CR_SER: u32 = 2048;
pub const FLASH_CR_OPTSTRT_Pos: u32 = 17;
pub const FLASH_CR_OPTSTRT_Msk: u32 = 131072;
pub const FLASH_CR_OPTSTRT: u32 = 131072;
pub const FLASH_CR_PGSTRT_Pos: u32 = 19;
pub const FLASH_CR_PGSTRT_Msk: u32 = 524288;
pub const FLASH_CR_PGSTRT: u32 = 524288;
pub const FLASH_CR_EOPIE_Pos: u32 = 24;
pub const FLASH_CR_EOPIE_Msk: u32 = 16777216;
pub const FLASH_CR_EOPIE: u32 = 16777216;
pub const FLASH_CR_ERRIE_Pos: u32 = 25;
pub const FLASH_CR_ERRIE_Msk: u32 = 33554432;
pub const FLASH_CR_ERRIE: u32 = 33554432;
pub const FLASH_CR_OBL_LAUNCH_Pos: u32 = 27;
pub const FLASH_CR_OBL_LAUNCH_Msk: u32 = 134217728;
pub const FLASH_CR_OBL_LAUNCH: u32 = 134217728;
pub const FLASH_CR_OPTLOCK_Pos: u32 = 30;
pub const FLASH_CR_OPTLOCK_Msk: u32 = 1073741824;
pub const FLASH_CR_OPTLOCK: u32 = 1073741824;
pub const FLASH_CR_LOCK_Pos: u32 = 31;
pub const FLASH_CR_LOCK_Msk: u32 = 2147483648;
pub const FLASH_CR_LOCK: u32 = 2147483648;
pub const FLASH_OPTR_RDP_Pos: u32 = 0;
pub const FLASH_OPTR_RDP_Msk: u32 = 255;
pub const FLASH_OPTR_RDP: u32 = 255;
pub const FLASH_OPTR_BOR_EN_Pos: u32 = 8;
pub const FLASH_OPTR_BOR_EN_Msk: u32 = 256;
pub const FLASH_OPTR_BOR_EN: u32 = 256;
pub const FLASH_OPTR_BOR_LEV_Pos: u32 = 9;
pub const FLASH_OPTR_BOR_LEV_Msk: u32 = 3584;
pub const FLASH_OPTR_BOR_LEV: u32 = 3584;
pub const FLASH_OPTR_BOR_LEV_0: u32 = 512;
pub const FLASH_OPTR_BOR_LEV_1: u32 = 1024;
pub const FLASH_OPTR_BOR_LEV_2: u32 = 2048;
pub const FLASH_OPTR_IWDG_SW_Pos: u32 = 12;
pub const FLASH_OPTR_IWDG_SW_Msk: u32 = 4096;
pub const FLASH_OPTR_IWDG_SW: u32 = 4096;
pub const FLASH_OPTR_WWDG_SW_Pos: u32 = 13;
pub const FLASH_OPTR_WWDG_SW_Msk: u32 = 8192;
pub const FLASH_OPTR_WWDG_SW: u32 = 8192;
pub const FLASH_OPTR_NRST_MODE_Pos: u32 = 14;
pub const FLASH_OPTR_NRST_MODE_Msk: u32 = 16384;
pub const FLASH_OPTR_NRST_MODE: u32 = 16384;
pub const FLASH_OPTR_nBOOT1_Pos: u32 = 15;
pub const FLASH_OPTR_nBOOT1_Msk: u32 = 32768;
pub const FLASH_OPTR_nBOOT1: u32 = 32768;
pub const FLASH_OPTR_RDP_LEVEL_0: u32 = 170;
pub const FLASH_OPTR_RDP_LEVEL_1: u32 = 85;
pub const FLASH_SDKR_SDK_STRT_Pos: u32 = 0;
pub const FLASH_SDKR_SDK_STRT_Msk: u32 = 31;
pub const FLASH_SDKR_SDK_STRT: u32 = 31;
pub const FLASH_SDKR_SDK_STRT_0: u32 = 1;
pub const FLASH_SDKR_SDK_STRT_1: u32 = 2;
pub const FLASH_SDKR_SDK_STRT_2: u32 = 4;
pub const FLASH_SDKR_SDK_STRT_3: u32 = 8;
pub const FLASH_SDKR_SDK_STRT_4: u32 = 16;
pub const FLASH_SDKR_SDK_END_Pos: u32 = 8;
pub const FLASH_SDKR_SDK_END_Msk: u32 = 7936;
pub const FLASH_SDKR_SDK_END: u32 = 7936;
pub const FLASH_SDKR_SDK_END_0: u32 = 256;
pub const FLASH_SDKR_SDK_END_1: u32 = 512;
pub const FLASH_SDKR_SDK_END_2: u32 = 1024;
pub const FLASH_SDKR_SDK_END_3: u32 = 2048;
pub const FLASH_SDKR_SDK_END_4: u32 = 4096;
pub const FLASH_WRPR_WRP_Pos: u32 = 0;
pub const FLASH_WRPR_WRP_Msk: u32 = 65535;
pub const FLASH_WRPR_WRP: u32 = 65535;
pub const FLASH_WRPR_WRP_0: u32 = 1;
pub const FLASH_WRPR_WRP_1: u32 = 2;
pub const FLASH_WRPR_WRP_2: u32 = 4;
pub const FLASH_WRPR_WRP_3: u32 = 8;
pub const FLASH_WRPR_WRP_4: u32 = 16;
pub const FLASH_WRPR_WRP_5: u32 = 32;
pub const FLASH_WRPR_WRP_6: u32 = 64;
pub const FLASH_WRPR_WRP_7: u32 = 128;
pub const FLASH_WRPR_WRP_8: u32 = 256;
pub const FLASH_WRPR_WRP_9: u32 = 512;
pub const FLASH_WRPR_WRP_10: u32 = 1024;
pub const FLASH_WRPR_WRP_11: u32 = 2048;
pub const FLASH_WRPR_WRP_12: u32 = 4096;
pub const FLASH_WRPR_WRP_13: u32 = 8192;
pub const FLASH_WRPR_WRP_14: u32 = 16384;
pub const FLASH_WRPR_WRP_15: u32 = 32768;
pub const FLASH_STCR_SLEEP_EN_Pos: u32 = 0;
pub const FLASH_STCR_SLEEP_EN_Msk: u32 = 1;
pub const FLASH_STCR_SLEEP_EN: u32 = 1;
pub const FLASH_STCR_SLEEP_TIME_Pos: u32 = 8;
pub const FLASH_STCR_SLEEP_TIME_Msk: u32 = 65280;
pub const FLASH_STCR_SLEEP_TIME: u32 = 65280;
pub const FLASH_TS0_TS0_Pos: u32 = 0;
pub const FLASH_TS0_TS0_Msk: u32 = 255;
pub const FLASH_TS0_TS0: u32 = 255;
pub const FLASH_TS0_TS0_0: u32 = 1;
pub const FLASH_TS0_TS0_1: u32 = 2;
pub const FLASH_TS0_TS0_2: u32 = 4;
pub const FLASH_TS0_TS0_3: u32 = 8;
pub const FLASH_TS0_TS0_4: u32 = 16;
pub const FLASH_TS0_TS0_5: u32 = 32;
pub const FLASH_TS0_TS0_6: u32 = 64;
pub const FLASH_TS0_TS0_7: u32 = 128;
pub const FLASH_TS1_TS1_Pos: u32 = 0;
pub const FLASH_TS1_TS1_Msk: u32 = 255;
pub const FLASH_TS1_TS1: u32 = 255;
pub const FLASH_TS1_TS1_0: u32 = 1;
pub const FLASH_TS1_TS1_1: u32 = 2;
pub const FLASH_TS1_TS1_2: u32 = 4;
pub const FLASH_TS1_TS1_3: u32 = 8;
pub const FLASH_TS1_TS1_4: u32 = 16;
pub const FLASH_TS1_TS1_5: u32 = 32;
pub const FLASH_TS1_TS1_6: u32 = 64;
pub const FLASH_TS1_TS1_7: u32 = 128;
pub const FLASH_TS2P_TS2P_Pos: u32 = 0;
pub const FLASH_TS2P_TS2P_Msk: u32 = 255;
pub const FLASH_TS2P_TS2P: u32 = 255;
pub const FLASH_TS2P_TS2P_0: u32 = 1;
pub const FLASH_TS2P_TS2P_1: u32 = 2;
pub const FLASH_TS2P_TS2P_2: u32 = 4;
pub const FLASH_TS2P_TS2P_3: u32 = 8;
pub const FLASH_TS2P_TS2P_4: u32 = 16;
pub const FLASH_TS2P_TS2P_5: u32 = 32;
pub const FLASH_TS2P_TS2P_6: u32 = 64;
pub const FLASH_TS2P_TS2P_7: u32 = 128;
pub const FLASH_TPS3_TPS3_Pos: u32 = 0;
pub const FLASH_TPS3_TPS3_Msk: u32 = 2047;
pub const FLASH_TPS3_TPS3: u32 = 2047;
pub const FLASH_TPS3_TPS3_0: u32 = 1;
pub const FLASH_TPS3_TPS3_1: u32 = 2;
pub const FLASH_TPS3_TPS3_2: u32 = 4;
pub const FLASH_TPS3_TPS3_3: u32 = 8;
pub const FLASH_TPS3_TPS3_4: u32 = 16;
pub const FLASH_TPS3_TPS3_5: u32 = 32;
pub const FLASH_TPS3_TPS3_6: u32 = 64;
pub const FLASH_TPS3_TPS3_7: u32 = 128;
pub const FLASH_TPS3_TPS3_8: u32 = 256;
pub const FLASH_TPS3_TPS3_9: u32 = 512;
pub const FLASH_TPS3_TPS3_10: u32 = 1024;
pub const FLASH_TS3_TS3_Pos: u32 = 0;
pub const FLASH_TS3_TS3_Msk: u32 = 255;
pub const FLASH_TS3_TS3: u32 = 255;
pub const FLASH_TS3_TS3_0: u32 = 1;
pub const FLASH_TS3_TS3_1: u32 = 2;
pub const FLASH_TS3_TS3_2: u32 = 4;
pub const FLASH_TS3_TS3_3: u32 = 8;
pub const FLASH_TS3_TS3_4: u32 = 16;
pub const FLASH_TS3_TS3_5: u32 = 32;
pub const FLASH_TS3_TS3_6: u32 = 64;
pub const FLASH_TS3_TS3_7: u32 = 128;
pub const FLASH_PERTPE_PERTPE_Pos: u32 = 0;
pub const FLASH_PERTPE_PERTPE_Msk: u32 = 131071;
pub const FLASH_PERTPE_PERTPE: u32 = 131071;
pub const FLASH_PERTPE_PERTPE_0: u32 = 1;
pub const FLASH_PERTPE_PERTPE_1: u32 = 2;
pub const FLASH_PERTPE_PERTPE_2: u32 = 4;
pub const FLASH_PERTPE_PERTPE_3: u32 = 8;
pub const FLASH_PERTPE_PERTPE_4: u32 = 16;
pub const FLASH_PERTPE_PERTPE_5: u32 = 32;
pub const FLASH_PERTPE_PERTPE_6: u32 = 64;
pub const FLASH_PERTPE_PERTPE_7: u32 = 128;
pub const FLASH_PERTPE_PERTPE_8: u32 = 256;
pub const FLASH_PERTPE_PERTPE_9: u32 = 512;
pub const FLASH_PERTPE_PERTPE_10: u32 = 1024;
pub const FLASH_PERTPE_PERTPE_11: u32 = 2048;
pub const FLASH_PERTPE_PERTPE_12: u32 = 4096;
pub const FLASH_PERTPE_PERTPE_13: u32 = 8192;
pub const FLASH_PERTPE_PERTPE_14: u32 = 16384;
pub const FLASH_PERTPE_PERTPE_15: u32 = 32768;
pub const FLASH_PERTPE_PERTPE_16: u32 = 65536;
pub const FLASH_SMERTPE_SMERTPE_Pos: u32 = 0;
pub const FLASH_SMERTPE_SMERTPE_Msk: u32 = 131071;
pub const FLASH_SMERTPE_SMERTPE: u32 = 131071;
pub const FLASH_SMERTPE_SMERTPE_0: u32 = 1;
pub const FLASH_SMERTPE_SMERTPE_1: u32 = 2;
pub const FLASH_SMERTPE_SMERTPE_2: u32 = 4;
pub const FLASH_SMERTPE_SMERTPE_3: u32 = 8;
pub const FLASH_SMERTPE_SMERTPE_4: u32 = 16;
pub const FLASH_SMERTPE_SMERTPE_5: u32 = 32;
pub const FLASH_SMERTPE_SMERTPE_6: u32 = 64;
pub const FLASH_SMERTPE_SMERTPE_7: u32 = 128;
pub const FLASH_SMERTPE_SMERTPE_8: u32 = 256;
pub const FLASH_SMERTPE_SMERTPE_9: u32 = 512;
pub const FLASH_SMERTPE_SMERTPE_10: u32 = 1024;
pub const FLASH_SMERTPE_SMERTPE_11: u32 = 2048;
pub const FLASH_SMERTPE_SMERTPE_12: u32 = 4096;
pub const FLASH_SMERTPE_SMERTPE_13: u32 = 8192;
pub const FLASH_SMERTPE_SMERTPE_14: u32 = 16384;
pub const FLASH_SMERTPE_SMERTPE_15: u32 = 32768;
pub const FLASH_SMERTPE_SMERTPE_16: u32 = 65536;
pub const FLASH_PRGTPE_PRGTPE_Pos: u32 = 0;
pub const FLASH_PRGTPE_PRGTPE_Msk: u32 = 65535;
pub const FLASH_PRGTPE_PRGTPE: u32 = 65535;
pub const FLASH_PRGTPE_PRGTPE_0: u32 = 1;
pub const FLASH_PRGTPE_PRGTPE_1: u32 = 2;
pub const FLASH_PRGTPE_PRGTPE_2: u32 = 4;
pub const FLASH_PRGTPE_PRGTPE_3: u32 = 8;
pub const FLASH_PRGTPE_PRGTPE_4: u32 = 16;
pub const FLASH_PRGTPE_PRGTPE_5: u32 = 32;
pub const FLASH_PRGTPE_PRGTPE_6: u32 = 64;
pub const FLASH_PRGTPE_PRGTPE_7: u32 = 128;
pub const FLASH_PRGTPE_PRGTPE_8: u32 = 256;
pub const FLASH_PRGTPE_PRGTPE_9: u32 = 512;
pub const FLASH_PRGTPE_PRGTPE_10: u32 = 1024;
pub const FLASH_PRGTPE_PRGTPE_11: u32 = 2048;
pub const FLASH_PRGTPE_PRGTPE_12: u32 = 4096;
pub const FLASH_PRGTPE_PRGTPE_13: u32 = 8192;
pub const FLASH_PRGTPE_PRGTPE_14: u32 = 16384;
pub const FLASH_PRGTPE_PRGTPE_15: u32 = 32768;
pub const FLASH_PRETPE_PRETPE_Pos: u32 = 0;
pub const FLASH_PRETPE_PRETPE_Msk: u32 = 16383;
pub const FLASH_PRETPE_PRETPE: u32 = 16383;
pub const FLASH_PRETPE_PRETPE_0: u32 = 1;
pub const FLASH_PRETPE_PRETPE_1: u32 = 2;
pub const FLASH_PRETPE_PRETPE_2: u32 = 4;
pub const FLASH_PRETPE_PRETPE_3: u32 = 8;
pub const FLASH_PRETPE_PRETPE_4: u32 = 16;
pub const FLASH_PRETPE_PRETPE_5: u32 = 32;
pub const FLASH_PRETPE_PRETPE_6: u32 = 64;
pub const FLASH_PRETPE_PRETPE_7: u32 = 128;
pub const FLASH_PRETPE_PRETPE_8: u32 = 256;
pub const FLASH_PRETPE_PRETPE_9: u32 = 512;
pub const FLASH_PRETPE_PRETPE_10: u32 = 1024;
pub const FLASH_PRETPE_PRETPE_11: u32 = 2048;
pub const FLASH_PRETPE_PRETPE_12: u32 = 4096;
pub const FLASH_PRETPE_PRETPE_13: u32 = 8192;
pub const GPIO_MODER_MODE0_Pos: u32 = 0;
pub const GPIO_MODER_MODE0_Msk: u32 = 3;
pub const GPIO_MODER_MODE0: u32 = 3;
pub const GPIO_MODER_MODE0_0: u32 = 1;
pub const GPIO_MODER_MODE0_1: u32 = 2;
pub const GPIO_MODER_MODE1_Pos: u32 = 2;
pub const GPIO_MODER_MODE1_Msk: u32 = 12;
pub const GPIO_MODER_MODE1: u32 = 12;
pub const GPIO_MODER_MODE1_0: u32 = 4;
pub const GPIO_MODER_MODE1_1: u32 = 8;
pub const GPIO_MODER_MODE2_Pos: u32 = 4;
pub const GPIO_MODER_MODE2_Msk: u32 = 48;
pub const GPIO_MODER_MODE2: u32 = 48;
pub const GPIO_MODER_MODE2_0: u32 = 16;
pub const GPIO_MODER_MODE2_1: u32 = 32;
pub const GPIO_MODER_MODE3_Pos: u32 = 6;
pub const GPIO_MODER_MODE3_Msk: u32 = 192;
pub const GPIO_MODER_MODE3: u32 = 192;
pub const GPIO_MODER_MODE3_0: u32 = 64;
pub const GPIO_MODER_MODE3_1: u32 = 128;
pub const GPIO_MODER_MODE4_Pos: u32 = 8;
pub const GPIO_MODER_MODE4_Msk: u32 = 768;
pub const GPIO_MODER_MODE4: u32 = 768;
pub const GPIO_MODER_MODE4_0: u32 = 256;
pub const GPIO_MODER_MODE4_1: u32 = 512;
pub const GPIO_MODER_MODE5_Pos: u32 = 10;
pub const GPIO_MODER_MODE5_Msk: u32 = 3072;
pub const GPIO_MODER_MODE5: u32 = 3072;
pub const GPIO_MODER_MODE5_0: u32 = 1024;
pub const GPIO_MODER_MODE5_1: u32 = 2048;
pub const GPIO_MODER_MODE6_Pos: u32 = 12;
pub const GPIO_MODER_MODE6_Msk: u32 = 12288;
pub const GPIO_MODER_MODE6: u32 = 12288;
pub const GPIO_MODER_MODE6_0: u32 = 4096;
pub const GPIO_MODER_MODE6_1: u32 = 8192;
pub const GPIO_MODER_MODE7_Pos: u32 = 14;
pub const GPIO_MODER_MODE7_Msk: u32 = 49152;
pub const GPIO_MODER_MODE7: u32 = 49152;
pub const GPIO_MODER_MODE7_0: u32 = 16384;
pub const GPIO_MODER_MODE7_1: u32 = 32768;
pub const GPIO_MODER_MODE8_Pos: u32 = 16;
pub const GPIO_MODER_MODE8_Msk: u32 = 196608;
pub const GPIO_MODER_MODE8: u32 = 196608;
pub const GPIO_MODER_MODE8_0: u32 = 65536;
pub const GPIO_MODER_MODE8_1: u32 = 131072;
pub const GPIO_MODER_MODE9_Pos: u32 = 18;
pub const GPIO_MODER_MODE9_Msk: u32 = 786432;
pub const GPIO_MODER_MODE9: u32 = 786432;
pub const GPIO_MODER_MODE9_0: u32 = 262144;
pub const GPIO_MODER_MODE9_1: u32 = 524288;
pub const GPIO_MODER_MODE10_Pos: u32 = 20;
pub const GPIO_MODER_MODE10_Msk: u32 = 3145728;
pub const GPIO_MODER_MODE10: u32 = 3145728;
pub const GPIO_MODER_MODE10_0: u32 = 1048576;
pub const GPIO_MODER_MODE10_1: u32 = 2097152;
pub const GPIO_MODER_MODE11_Pos: u32 = 22;
pub const GPIO_MODER_MODE11_Msk: u32 = 12582912;
pub const GPIO_MODER_MODE11: u32 = 12582912;
pub const GPIO_MODER_MODE11_0: u32 = 4194304;
pub const GPIO_MODER_MODE11_1: u32 = 8388608;
pub const GPIO_MODER_MODE12_Pos: u32 = 24;
pub const GPIO_MODER_MODE12_Msk: u32 = 50331648;
pub const GPIO_MODER_MODE12: u32 = 50331648;
pub const GPIO_MODER_MODE12_0: u32 = 16777216;
pub const GPIO_MODER_MODE12_1: u32 = 33554432;
pub const GPIO_MODER_MODE13_Pos: u32 = 26;
pub const GPIO_MODER_MODE13_Msk: u32 = 201326592;
pub const GPIO_MODER_MODE13: u32 = 201326592;
pub const GPIO_MODER_MODE13_0: u32 = 67108864;
pub const GPIO_MODER_MODE13_1: u32 = 134217728;
pub const GPIO_MODER_MODE14_Pos: u32 = 28;
pub const GPIO_MODER_MODE14_Msk: u32 = 805306368;
pub const GPIO_MODER_MODE14: u32 = 805306368;
pub const GPIO_MODER_MODE14_0: u32 = 268435456;
pub const GPIO_MODER_MODE14_1: u32 = 536870912;
pub const GPIO_MODER_MODE15_Pos: u32 = 30;
pub const GPIO_MODER_MODE15_Msk: u32 = 3221225472;
pub const GPIO_MODER_MODE15: u32 = 3221225472;
pub const GPIO_MODER_MODE15_0: u32 = 1073741824;
pub const GPIO_MODER_MODE15_1: u32 = 2147483648;
pub const GPIO_OTYPER_OT0_Pos: u32 = 0;
pub const GPIO_OTYPER_OT0_Msk: u32 = 1;
pub const GPIO_OTYPER_OT0: u32 = 1;
pub const GPIO_OTYPER_OT1_Pos: u32 = 1;
pub const GPIO_OTYPER_OT1_Msk: u32 = 2;
pub const GPIO_OTYPER_OT1: u32 = 2;
pub const GPIO_OTYPER_OT2_Pos: u32 = 2;
pub const GPIO_OTYPER_OT2_Msk: u32 = 4;
pub const GPIO_OTYPER_OT2: u32 = 4;
pub const GPIO_OTYPER_OT3_Pos: u32 = 3;
pub const GPIO_OTYPER_OT3_Msk: u32 = 8;
pub const GPIO_OTYPER_OT3: u32 = 8;
pub const GPIO_OTYPER_OT4_Pos: u32 = 4;
pub const GPIO_OTYPER_OT4_Msk: u32 = 16;
pub const GPIO_OTYPER_OT4: u32 = 16;
pub const GPIO_OTYPER_OT5_Pos: u32 = 5;
pub const GPIO_OTYPER_OT5_Msk: u32 = 32;
pub const GPIO_OTYPER_OT5: u32 = 32;
pub const GPIO_OTYPER_OT6_Pos: u32 = 6;
pub const GPIO_OTYPER_OT6_Msk: u32 = 64;
pub const GPIO_OTYPER_OT6: u32 = 64;
pub const GPIO_OTYPER_OT7_Pos: u32 = 7;
pub const GPIO_OTYPER_OT7_Msk: u32 = 128;
pub const GPIO_OTYPER_OT7: u32 = 128;
pub const GPIO_OTYPER_OT8_Pos: u32 = 8;
pub const GPIO_OTYPER_OT8_Msk: u32 = 256;
pub const GPIO_OTYPER_OT8: u32 = 256;
pub const GPIO_OTYPER_OT9_Pos: u32 = 9;
pub const GPIO_OTYPER_OT9_Msk: u32 = 512;
pub const GPIO_OTYPER_OT9: u32 = 512;
pub const GPIO_OTYPER_OT10_Pos: u32 = 10;
pub const GPIO_OTYPER_OT10_Msk: u32 = 1024;
pub const GPIO_OTYPER_OT10: u32 = 1024;
pub const GPIO_OTYPER_OT11_Pos: u32 = 11;
pub const GPIO_OTYPER_OT11_Msk: u32 = 2048;
pub const GPIO_OTYPER_OT11: u32 = 2048;
pub const GPIO_OTYPER_OT12_Pos: u32 = 12;
pub const GPIO_OTYPER_OT12_Msk: u32 = 4096;
pub const GPIO_OTYPER_OT12: u32 = 4096;
pub const GPIO_OTYPER_OT13_Pos: u32 = 13;
pub const GPIO_OTYPER_OT13_Msk: u32 = 8192;
pub const GPIO_OTYPER_OT13: u32 = 8192;
pub const GPIO_OTYPER_OT14_Pos: u32 = 14;
pub const GPIO_OTYPER_OT14_Msk: u32 = 16384;
pub const GPIO_OTYPER_OT14: u32 = 16384;
pub const GPIO_OTYPER_OT15_Pos: u32 = 15;
pub const GPIO_OTYPER_OT15_Msk: u32 = 32768;
pub const GPIO_OTYPER_OT15: u32 = 32768;
pub const GPIO_OSPEEDR_OSPEED0_Pos: u32 = 0;
pub const GPIO_OSPEEDR_OSPEED0_Msk: u32 = 3;
pub const GPIO_OSPEEDR_OSPEED0: u32 = 3;
pub const GPIO_OSPEEDR_OSPEED0_0: u32 = 1;
pub const GPIO_OSPEEDR_OSPEED0_1: u32 = 2;
pub const GPIO_OSPEEDR_OSPEED1_Pos: u32 = 2;
pub const GPIO_OSPEEDR_OSPEED1_Msk: u32 = 12;
pub const GPIO_OSPEEDR_OSPEED1: u32 = 12;
pub const GPIO_OSPEEDR_OSPEED1_0: u32 = 4;
pub const GPIO_OSPEEDR_OSPEED1_1: u32 = 8;
pub const GPIO_OSPEEDR_OSPEED2_Pos: u32 = 4;
pub const GPIO_OSPEEDR_OSPEED2_Msk: u32 = 48;
pub const GPIO_OSPEEDR_OSPEED2: u32 = 48;
pub const GPIO_OSPEEDR_OSPEED2_0: u32 = 16;
pub const GPIO_OSPEEDR_OSPEED2_1: u32 = 32;
pub const GPIO_OSPEEDR_OSPEED3_Pos: u32 = 6;
pub const GPIO_OSPEEDR_OSPEED3_Msk: u32 = 192;
pub const GPIO_OSPEEDR_OSPEED3: u32 = 192;
pub const GPIO_OSPEEDR_OSPEED3_0: u32 = 64;
pub const GPIO_OSPEEDR_OSPEED3_1: u32 = 128;
pub const GPIO_OSPEEDR_OSPEED4_Pos: u32 = 8;
pub const GPIO_OSPEEDR_OSPEED4_Msk: u32 = 768;
pub const GPIO_OSPEEDR_OSPEED4: u32 = 768;
pub const GPIO_OSPEEDR_OSPEED4_0: u32 = 256;
pub const GPIO_OSPEEDR_OSPEED4_1: u32 = 512;
pub const GPIO_OSPEEDR_OSPEED5_Pos: u32 = 10;
pub const GPIO_OSPEEDR_OSPEED5_Msk: u32 = 3072;
pub const GPIO_OSPEEDR_OSPEED5: u32 = 3072;
pub const GPIO_OSPEEDR_OSPEED5_0: u32 = 1024;
pub const GPIO_OSPEEDR_OSPEED5_1: u32 = 2048;
pub const GPIO_OSPEEDR_OSPEED6_Pos: u32 = 12;
pub const GPIO_OSPEEDR_OSPEED6_Msk: u32 = 12288;
pub const GPIO_OSPEEDR_OSPEED6: u32 = 12288;
pub const GPIO_OSPEEDR_OSPEED6_0: u32 = 4096;
pub const GPIO_OSPEEDR_OSPEED6_1: u32 = 8192;
pub const GPIO_OSPEEDR_OSPEED7_Pos: u32 = 14;
pub const GPIO_OSPEEDR_OSPEED7_Msk: u32 = 49152;
pub const GPIO_OSPEEDR_OSPEED7: u32 = 49152;
pub const GPIO_OSPEEDR_OSPEED7_0: u32 = 16384;
pub const GPIO_OSPEEDR_OSPEED7_1: u32 = 32768;
pub const GPIO_OSPEEDR_OSPEED8_Pos: u32 = 16;
pub const GPIO_OSPEEDR_OSPEED8_Msk: u32 = 196608;
pub const GPIO_OSPEEDR_OSPEED8: u32 = 196608;
pub const GPIO_OSPEEDR_OSPEED8_0: u32 = 65536;
pub const GPIO_OSPEEDR_OSPEED8_1: u32 = 131072;
pub const GPIO_OSPEEDR_OSPEED9_Pos: u32 = 18;
pub const GPIO_OSPEEDR_OSPEED9_Msk: u32 = 786432;
pub const GPIO_OSPEEDR_OSPEED9: u32 = 786432;
pub const GPIO_OSPEEDR_OSPEED9_0: u32 = 262144;
pub const GPIO_OSPEEDR_OSPEED9_1: u32 = 524288;
pub const GPIO_OSPEEDR_OSPEED10_Pos: u32 = 20;
pub const GPIO_OSPEEDR_OSPEED10_Msk: u32 = 3145728;
pub const GPIO_OSPEEDR_OSPEED10: u32 = 3145728;
pub const GPIO_OSPEEDR_OSPEED10_0: u32 = 1048576;
pub const GPIO_OSPEEDR_OSPEED10_1: u32 = 2097152;
pub const GPIO_OSPEEDR_OSPEED11_Pos: u32 = 22;
pub const GPIO_OSPEEDR_OSPEED11_Msk: u32 = 12582912;
pub const GPIO_OSPEEDR_OSPEED11: u32 = 12582912;
pub const GPIO_OSPEEDR_OSPEED11_0: u32 = 4194304;
pub const GPIO_OSPEEDR_OSPEED11_1: u32 = 8388608;
pub const GPIO_OSPEEDR_OSPEED12_Pos: u32 = 24;
pub const GPIO_OSPEEDR_OSPEED12_Msk: u32 = 50331648;
pub const GPIO_OSPEEDR_OSPEED12: u32 = 50331648;
pub const GPIO_OSPEEDR_OSPEED12_0: u32 = 16777216;
pub const GPIO_OSPEEDR_OSPEED12_1: u32 = 33554432;
pub const GPIO_OSPEEDR_OSPEED13_Pos: u32 = 26;
pub const GPIO_OSPEEDR_OSPEED13_Msk: u32 = 201326592;
pub const GPIO_OSPEEDR_OSPEED13: u32 = 201326592;
pub const GPIO_OSPEEDR_OSPEED13_0: u32 = 67108864;
pub const GPIO_OSPEEDR_OSPEED13_1: u32 = 134217728;
pub const GPIO_OSPEEDR_OSPEED14_Pos: u32 = 28;
pub const GPIO_OSPEEDR_OSPEED14_Msk: u32 = 805306368;
pub const GPIO_OSPEEDR_OSPEED14: u32 = 805306368;
pub const GPIO_OSPEEDR_OSPEED14_0: u32 = 268435456;
pub const GPIO_OSPEEDR_OSPEED14_1: u32 = 536870912;
pub const GPIO_OSPEEDR_OSPEED15_Pos: u32 = 30;
pub const GPIO_OSPEEDR_OSPEED15_Msk: u32 = 3221225472;
pub const GPIO_OSPEEDR_OSPEED15: u32 = 3221225472;
pub const GPIO_OSPEEDR_OSPEED15_0: u32 = 1073741824;
pub const GPIO_OSPEEDR_OSPEED15_1: u32 = 2147483648;
pub const GPIO_PUPDR_PUPD0_Pos: u32 = 0;
pub const GPIO_PUPDR_PUPD0_Msk: u32 = 3;
pub const GPIO_PUPDR_PUPD0: u32 = 3;
pub const GPIO_PUPDR_PUPD0_0: u32 = 1;
pub const GPIO_PUPDR_PUPD0_1: u32 = 2;
pub const GPIO_PUPDR_PUPD1_Pos: u32 = 2;
pub const GPIO_PUPDR_PUPD1_Msk: u32 = 12;
pub const GPIO_PUPDR_PUPD1: u32 = 12;
pub const GPIO_PUPDR_PUPD1_0: u32 = 4;
pub const GPIO_PUPDR_PUPD1_1: u32 = 8;
pub const GPIO_PUPDR_PUPD2_Pos: u32 = 4;
pub const GPIO_PUPDR_PUPD2_Msk: u32 = 48;
pub const GPIO_PUPDR_PUPD2: u32 = 48;
pub const GPIO_PUPDR_PUPD2_0: u32 = 16;
pub const GPIO_PUPDR_PUPD2_1: u32 = 32;
pub const GPIO_PUPDR_PUPD3_Pos: u32 = 6;
pub const GPIO_PUPDR_PUPD3_Msk: u32 = 192;
pub const GPIO_PUPDR_PUPD3: u32 = 192;
pub const GPIO_PUPDR_PUPD3_0: u32 = 64;
pub const GPIO_PUPDR_PUPD3_1: u32 = 128;
pub const GPIO_PUPDR_PUPD4_Pos: u32 = 8;
pub const GPIO_PUPDR_PUPD4_Msk: u32 = 768;
pub const GPIO_PUPDR_PUPD4: u32 = 768;
pub const GPIO_PUPDR_PUPD4_0: u32 = 256;
pub const GPIO_PUPDR_PUPD4_1: u32 = 512;
pub const GPIO_PUPDR_PUPD5_Pos: u32 = 10;
pub const GPIO_PUPDR_PUPD5_Msk: u32 = 3072;
pub const GPIO_PUPDR_PUPD5: u32 = 3072;
pub const GPIO_PUPDR_PUPD5_0: u32 = 1024;
pub const GPIO_PUPDR_PUPD5_1: u32 = 2048;
pub const GPIO_PUPDR_PUPD6_Pos: u32 = 12;
pub const GPIO_PUPDR_PUPD6_Msk: u32 = 12288;
pub const GPIO_PUPDR_PUPD6: u32 = 12288;
pub const GPIO_PUPDR_PUPD6_0: u32 = 4096;
pub const GPIO_PUPDR_PUPD6_1: u32 = 8192;
pub const GPIO_PUPDR_PUPD7_Pos: u32 = 14;
pub const GPIO_PUPDR_PUPD7_Msk: u32 = 49152;
pub const GPIO_PUPDR_PUPD7: u32 = 49152;
pub const GPIO_PUPDR_PUPD7_0: u32 = 16384;
pub const GPIO_PUPDR_PUPD7_1: u32 = 32768;
pub const GPIO_PUPDR_PUPD8_Pos: u32 = 16;
pub const GPIO_PUPDR_PUPD8_Msk: u32 = 196608;
pub const GPIO_PUPDR_PUPD8: u32 = 196608;
pub const GPIO_PUPDR_PUPD8_0: u32 = 65536;
pub const GPIO_PUPDR_PUPD8_1: u32 = 131072;
pub const GPIO_PUPDR_PUPD9_Pos: u32 = 18;
pub const GPIO_PUPDR_PUPD9_Msk: u32 = 786432;
pub const GPIO_PUPDR_PUPD9: u32 = 786432;
pub const GPIO_PUPDR_PUPD9_0: u32 = 262144;
pub const GPIO_PUPDR_PUPD9_1: u32 = 524288;
pub const GPIO_PUPDR_PUPD10_Pos: u32 = 20;
pub const GPIO_PUPDR_PUPD10_Msk: u32 = 3145728;
pub const GPIO_PUPDR_PUPD10: u32 = 3145728;
pub const GPIO_PUPDR_PUPD10_0: u32 = 1048576;
pub const GPIO_PUPDR_PUPD10_1: u32 = 2097152;
pub const GPIO_PUPDR_PUPD11_Pos: u32 = 22;
pub const GPIO_PUPDR_PUPD11_Msk: u32 = 12582912;
pub const GPIO_PUPDR_PUPD11: u32 = 12582912;
pub const GPIO_PUPDR_PUPD11_0: u32 = 4194304;
pub const GPIO_PUPDR_PUPD11_1: u32 = 8388608;
pub const GPIO_PUPDR_PUPD12_Pos: u32 = 24;
pub const GPIO_PUPDR_PUPD12_Msk: u32 = 50331648;
pub const GPIO_PUPDR_PUPD12: u32 = 50331648;
pub const GPIO_PUPDR_PUPD12_0: u32 = 16777216;
pub const GPIO_PUPDR_PUPD12_1: u32 = 33554432;
pub const GPIO_PUPDR_PUPD13_Pos: u32 = 26;
pub const GPIO_PUPDR_PUPD13_Msk: u32 = 201326592;
pub const GPIO_PUPDR_PUPD13: u32 = 201326592;
pub const GPIO_PUPDR_PUPD13_0: u32 = 67108864;
pub const GPIO_PUPDR_PUPD13_1: u32 = 134217728;
pub const GPIO_PUPDR_PUPD14_Pos: u32 = 28;
pub const GPIO_PUPDR_PUPD14_Msk: u32 = 805306368;
pub const GPIO_PUPDR_PUPD14: u32 = 805306368;
pub const GPIO_PUPDR_PUPD14_0: u32 = 268435456;
pub const GPIO_PUPDR_PUPD14_1: u32 = 536870912;
pub const GPIO_PUPDR_PUPD15_Pos: u32 = 30;
pub const GPIO_PUPDR_PUPD15_Msk: u32 = 3221225472;
pub const GPIO_PUPDR_PUPD15: u32 = 3221225472;
pub const GPIO_PUPDR_PUPD15_0: u32 = 1073741824;
pub const GPIO_PUPDR_PUPD15_1: u32 = 2147483648;
pub const GPIO_IDR_ID0_Pos: u32 = 0;
pub const GPIO_IDR_ID0_Msk: u32 = 1;
pub const GPIO_IDR_ID0: u32 = 1;
pub const GPIO_IDR_ID1_Pos: u32 = 1;
pub const GPIO_IDR_ID1_Msk: u32 = 2;
pub const GPIO_IDR_ID1: u32 = 2;
pub const GPIO_IDR_ID2_Pos: u32 = 2;
pub const GPIO_IDR_ID2_Msk: u32 = 4;
pub const GPIO_IDR_ID2: u32 = 4;
pub const GPIO_IDR_ID3_Pos: u32 = 3;
pub const GPIO_IDR_ID3_Msk: u32 = 8;
pub const GPIO_IDR_ID3: u32 = 8;
pub const GPIO_IDR_ID4_Pos: u32 = 4;
pub const GPIO_IDR_ID4_Msk: u32 = 16;
pub const GPIO_IDR_ID4: u32 = 16;
pub const GPIO_IDR_ID5_Pos: u32 = 5;
pub const GPIO_IDR_ID5_Msk: u32 = 32;
pub const GPIO_IDR_ID5: u32 = 32;
pub const GPIO_IDR_ID6_Pos: u32 = 6;
pub const GPIO_IDR_ID6_Msk: u32 = 64;
pub const GPIO_IDR_ID6: u32 = 64;
pub const GPIO_IDR_ID7_Pos: u32 = 7;
pub const GPIO_IDR_ID7_Msk: u32 = 128;
pub const GPIO_IDR_ID7: u32 = 128;
pub const GPIO_IDR_ID8_Pos: u32 = 8;
pub const GPIO_IDR_ID8_Msk: u32 = 256;
pub const GPIO_IDR_ID8: u32 = 256;
pub const GPIO_IDR_ID9_Pos: u32 = 9;
pub const GPIO_IDR_ID9_Msk: u32 = 512;
pub const GPIO_IDR_ID9: u32 = 512;
pub const GPIO_IDR_ID10_Pos: u32 = 10;
pub const GPIO_IDR_ID10_Msk: u32 = 1024;
pub const GPIO_IDR_ID10: u32 = 1024;
pub const GPIO_IDR_ID11_Pos: u32 = 11;
pub const GPIO_IDR_ID11_Msk: u32 = 2048;
pub const GPIO_IDR_ID11: u32 = 2048;
pub const GPIO_IDR_ID12_Pos: u32 = 12;
pub const GPIO_IDR_ID12_Msk: u32 = 4096;
pub const GPIO_IDR_ID12: u32 = 4096;
pub const GPIO_IDR_ID13_Pos: u32 = 13;
pub const GPIO_IDR_ID13_Msk: u32 = 8192;
pub const GPIO_IDR_ID13: u32 = 8192;
pub const GPIO_IDR_ID14_Pos: u32 = 14;
pub const GPIO_IDR_ID14_Msk: u32 = 16384;
pub const GPIO_IDR_ID14: u32 = 16384;
pub const GPIO_IDR_ID15_Pos: u32 = 15;
pub const GPIO_IDR_ID15_Msk: u32 = 32768;
pub const GPIO_IDR_ID15: u32 = 32768;
pub const GPIO_ODR_OD0_Pos: u32 = 0;
pub const GPIO_ODR_OD0_Msk: u32 = 1;
pub const GPIO_ODR_OD0: u32 = 1;
pub const GPIO_ODR_OD1_Pos: u32 = 1;
pub const GPIO_ODR_OD1_Msk: u32 = 2;
pub const GPIO_ODR_OD1: u32 = 2;
pub const GPIO_ODR_OD2_Pos: u32 = 2;
pub const GPIO_ODR_OD2_Msk: u32 = 4;
pub const GPIO_ODR_OD2: u32 = 4;
pub const GPIO_ODR_OD3_Pos: u32 = 3;
pub const GPIO_ODR_OD3_Msk: u32 = 8;
pub const GPIO_ODR_OD3: u32 = 8;
pub const GPIO_ODR_OD4_Pos: u32 = 4;
pub const GPIO_ODR_OD4_Msk: u32 = 16;
pub const GPIO_ODR_OD4: u32 = 16;
pub const GPIO_ODR_OD5_Pos: u32 = 5;
pub const GPIO_ODR_OD5_Msk: u32 = 32;
pub const GPIO_ODR_OD5: u32 = 32;
pub const GPIO_ODR_OD6_Pos: u32 = 6;
pub const GPIO_ODR_OD6_Msk: u32 = 64;
pub const GPIO_ODR_OD6: u32 = 64;
pub const GPIO_ODR_OD7_Pos: u32 = 7;
pub const GPIO_ODR_OD7_Msk: u32 = 128;
pub const GPIO_ODR_OD7: u32 = 128;
pub const GPIO_ODR_OD8_Pos: u32 = 8;
pub const GPIO_ODR_OD8_Msk: u32 = 256;
pub const GPIO_ODR_OD8: u32 = 256;
pub const GPIO_ODR_OD9_Pos: u32 = 9;
pub const GPIO_ODR_OD9_Msk: u32 = 512;
pub const GPIO_ODR_OD9: u32 = 512;
pub const GPIO_ODR_OD10_Pos: u32 = 10;
pub const GPIO_ODR_OD10_Msk: u32 = 1024;
pub const GPIO_ODR_OD10: u32 = 1024;
pub const GPIO_ODR_OD11_Pos: u32 = 11;
pub const GPIO_ODR_OD11_Msk: u32 = 2048;
pub const GPIO_ODR_OD11: u32 = 2048;
pub const GPIO_ODR_OD12_Pos: u32 = 12;
pub const GPIO_ODR_OD12_Msk: u32 = 4096;
pub const GPIO_ODR_OD12: u32 = 4096;
pub const GPIO_ODR_OD13_Pos: u32 = 13;
pub const GPIO_ODR_OD13_Msk: u32 = 8192;
pub const GPIO_ODR_OD13: u32 = 8192;
pub const GPIO_ODR_OD14_Pos: u32 = 14;
pub const GPIO_ODR_OD14_Msk: u32 = 16384;
pub const GPIO_ODR_OD14: u32 = 16384;
pub const GPIO_ODR_OD15_Pos: u32 = 15;
pub const GPIO_ODR_OD15_Msk: u32 = 32768;
pub const GPIO_ODR_OD15: u32 = 32768;
pub const GPIO_BSRR_BS0_Pos: u32 = 0;
pub const GPIO_BSRR_BS0_Msk: u32 = 1;
pub const GPIO_BSRR_BS0: u32 = 1;
pub const GPIO_BSRR_BS1_Pos: u32 = 1;
pub const GPIO_BSRR_BS1_Msk: u32 = 2;
pub const GPIO_BSRR_BS1: u32 = 2;
pub const GPIO_BSRR_BS2_Pos: u32 = 2;
pub const GPIO_BSRR_BS2_Msk: u32 = 4;
pub const GPIO_BSRR_BS2: u32 = 4;
pub const GPIO_BSRR_BS3_Pos: u32 = 3;
pub const GPIO_BSRR_BS3_Msk: u32 = 8;
pub const GPIO_BSRR_BS3: u32 = 8;
pub const GPIO_BSRR_BS4_Pos: u32 = 4;
pub const GPIO_BSRR_BS4_Msk: u32 = 16;
pub const GPIO_BSRR_BS4: u32 = 16;
pub const GPIO_BSRR_BS5_Pos: u32 = 5;
pub const GPIO_BSRR_BS5_Msk: u32 = 32;
pub const GPIO_BSRR_BS5: u32 = 32;
pub const GPIO_BSRR_BS6_Pos: u32 = 6;
pub const GPIO_BSRR_BS6_Msk: u32 = 64;
pub const GPIO_BSRR_BS6: u32 = 64;
pub const GPIO_BSRR_BS7_Pos: u32 = 7;
pub const GPIO_BSRR_BS7_Msk: u32 = 128;
pub const GPIO_BSRR_BS7: u32 = 128;
pub const GPIO_BSRR_BS8_Pos: u32 = 8;
pub const GPIO_BSRR_BS8_Msk: u32 = 256;
pub const GPIO_BSRR_BS8: u32 = 256;
pub const GPIO_BSRR_BS9_Pos: u32 = 9;
pub const GPIO_BSRR_BS9_Msk: u32 = 512;
pub const GPIO_BSRR_BS9: u32 = 512;
pub const GPIO_BSRR_BS10_Pos: u32 = 10;
pub const GPIO_BSRR_BS10_Msk: u32 = 1024;
pub const GPIO_BSRR_BS10: u32 = 1024;
pub const GPIO_BSRR_BS11_Pos: u32 = 11;
pub const GPIO_BSRR_BS11_Msk: u32 = 2048;
pub const GPIO_BSRR_BS11: u32 = 2048;
pub const GPIO_BSRR_BS12_Pos: u32 = 12;
pub const GPIO_BSRR_BS12_Msk: u32 = 4096;
pub const GPIO_BSRR_BS12: u32 = 4096;
pub const GPIO_BSRR_BS13_Pos: u32 = 13;
pub const GPIO_BSRR_BS13_Msk: u32 = 8192;
pub const GPIO_BSRR_BS13: u32 = 8192;
pub const GPIO_BSRR_BS14_Pos: u32 = 14;
pub const GPIO_BSRR_BS14_Msk: u32 = 16384;
pub const GPIO_BSRR_BS14: u32 = 16384;
pub const GPIO_BSRR_BS15_Pos: u32 = 15;
pub const GPIO_BSRR_BS15_Msk: u32 = 32768;
pub const GPIO_BSRR_BS15: u32 = 32768;
pub const GPIO_BSRR_BR0_Pos: u32 = 16;
pub const GPIO_BSRR_BR0_Msk: u32 = 65536;
pub const GPIO_BSRR_BR0: u32 = 65536;
pub const GPIO_BSRR_BR1_Pos: u32 = 17;
pub const GPIO_BSRR_BR1_Msk: u32 = 131072;
pub const GPIO_BSRR_BR1: u32 = 131072;
pub const GPIO_BSRR_BR2_Pos: u32 = 18;
pub const GPIO_BSRR_BR2_Msk: u32 = 262144;
pub const GPIO_BSRR_BR2: u32 = 262144;
pub const GPIO_BSRR_BR3_Pos: u32 = 19;
pub const GPIO_BSRR_BR3_Msk: u32 = 524288;
pub const GPIO_BSRR_BR3: u32 = 524288;
pub const GPIO_BSRR_BR4_Pos: u32 = 20;
pub const GPIO_BSRR_BR4_Msk: u32 = 1048576;
pub const GPIO_BSRR_BR4: u32 = 1048576;
pub const GPIO_BSRR_BR5_Pos: u32 = 21;
pub const GPIO_BSRR_BR5_Msk: u32 = 2097152;
pub const GPIO_BSRR_BR5: u32 = 2097152;
pub const GPIO_BSRR_BR6_Pos: u32 = 22;
pub const GPIO_BSRR_BR6_Msk: u32 = 4194304;
pub const GPIO_BSRR_BR6: u32 = 4194304;
pub const GPIO_BSRR_BR7_Pos: u32 = 23;
pub const GPIO_BSRR_BR7_Msk: u32 = 8388608;
pub const GPIO_BSRR_BR7: u32 = 8388608;
pub const GPIO_BSRR_BR8_Pos: u32 = 24;
pub const GPIO_BSRR_BR8_Msk: u32 = 16777216;
pub const GPIO_BSRR_BR8: u32 = 16777216;
pub const GPIO_BSRR_BR9_Pos: u32 = 25;
pub const GPIO_BSRR_BR9_Msk: u32 = 33554432;
pub const GPIO_BSRR_BR9: u32 = 33554432;
pub const GPIO_BSRR_BR10_Pos: u32 = 26;
pub const GPIO_BSRR_BR10_Msk: u32 = 67108864;
pub const GPIO_BSRR_BR10: u32 = 67108864;
pub const GPIO_BSRR_BR11_Pos: u32 = 27;
pub const GPIO_BSRR_BR11_Msk: u32 = 134217728;
pub const GPIO_BSRR_BR11: u32 = 134217728;
pub const GPIO_BSRR_BR12_Pos: u32 = 28;
pub const GPIO_BSRR_BR12_Msk: u32 = 268435456;
pub const GPIO_BSRR_BR12: u32 = 268435456;
pub const GPIO_BSRR_BR13_Pos: u32 = 29;
pub const GPIO_BSRR_BR13_Msk: u32 = 536870912;
pub const GPIO_BSRR_BR13: u32 = 536870912;
pub const GPIO_BSRR_BR14_Pos: u32 = 30;
pub const GPIO_BSRR_BR14_Msk: u32 = 1073741824;
pub const GPIO_BSRR_BR14: u32 = 1073741824;
pub const GPIO_BSRR_BR15_Pos: u32 = 31;
pub const GPIO_BSRR_BR15_Msk: u32 = 2147483648;
pub const GPIO_BSRR_BR15: u32 = 2147483648;
pub const GPIO_LCKR_LCK0_Pos: u32 = 0;
pub const GPIO_LCKR_LCK0_Msk: u32 = 1;
pub const GPIO_LCKR_LCK0: u32 = 1;
pub const GPIO_LCKR_LCK1_Pos: u32 = 1;
pub const GPIO_LCKR_LCK1_Msk: u32 = 2;
pub const GPIO_LCKR_LCK1: u32 = 2;
pub const GPIO_LCKR_LCK2_Pos: u32 = 2;
pub const GPIO_LCKR_LCK2_Msk: u32 = 4;
pub const GPIO_LCKR_LCK2: u32 = 4;
pub const GPIO_LCKR_LCK3_Pos: u32 = 3;
pub const GPIO_LCKR_LCK3_Msk: u32 = 8;
pub const GPIO_LCKR_LCK3: u32 = 8;
pub const GPIO_LCKR_LCK4_Pos: u32 = 4;
pub const GPIO_LCKR_LCK4_Msk: u32 = 16;
pub const GPIO_LCKR_LCK4: u32 = 16;
pub const GPIO_LCKR_LCK5_Pos: u32 = 5;
pub const GPIO_LCKR_LCK5_Msk: u32 = 32;
pub const GPIO_LCKR_LCK5: u32 = 32;
pub const GPIO_LCKR_LCK6_Pos: u32 = 6;
pub const GPIO_LCKR_LCK6_Msk: u32 = 64;
pub const GPIO_LCKR_LCK6: u32 = 64;
pub const GPIO_LCKR_LCK7_Pos: u32 = 7;
pub const GPIO_LCKR_LCK7_Msk: u32 = 128;
pub const GPIO_LCKR_LCK7: u32 = 128;
pub const GPIO_LCKR_LCK8_Pos: u32 = 8;
pub const GPIO_LCKR_LCK8_Msk: u32 = 256;
pub const GPIO_LCKR_LCK8: u32 = 256;
pub const GPIO_LCKR_LCK9_Pos: u32 = 9;
pub const GPIO_LCKR_LCK9_Msk: u32 = 512;
pub const GPIO_LCKR_LCK9: u32 = 512;
pub const GPIO_LCKR_LCK10_Pos: u32 = 10;
pub const GPIO_LCKR_LCK10_Msk: u32 = 1024;
pub const GPIO_LCKR_LCK10: u32 = 1024;
pub const GPIO_LCKR_LCK11_Pos: u32 = 11;
pub const GPIO_LCKR_LCK11_Msk: u32 = 2048;
pub const GPIO_LCKR_LCK11: u32 = 2048;
pub const GPIO_LCKR_LCK12_Pos: u32 = 12;
pub const GPIO_LCKR_LCK12_Msk: u32 = 4096;
pub const GPIO_LCKR_LCK12: u32 = 4096;
pub const GPIO_LCKR_LCK13_Pos: u32 = 13;
pub const GPIO_LCKR_LCK13_Msk: u32 = 8192;
pub const GPIO_LCKR_LCK13: u32 = 8192;
pub const GPIO_LCKR_LCK14_Pos: u32 = 14;
pub const GPIO_LCKR_LCK14_Msk: u32 = 16384;
pub const GPIO_LCKR_LCK14: u32 = 16384;
pub const GPIO_LCKR_LCK15_Pos: u32 = 15;
pub const GPIO_LCKR_LCK15_Msk: u32 = 32768;
pub const GPIO_LCKR_LCK15: u32 = 32768;
pub const GPIO_LCKR_LCKK_Pos: u32 = 16;
pub const GPIO_LCKR_LCKK_Msk: u32 = 65536;
pub const GPIO_LCKR_LCKK: u32 = 65536;
pub const GPIO_AFRL_AFSEL0_Pos: u32 = 0;
pub const GPIO_AFRL_AFSEL0_Msk: u32 = 15;
pub const GPIO_AFRL_AFSEL0: u32 = 15;
pub const GPIO_AFRL_AFSEL0_0: u32 = 1;
pub const GPIO_AFRL_AFSEL0_1: u32 = 2;
pub const GPIO_AFRL_AFSEL0_2: u32 = 4;
pub const GPIO_AFRL_AFSEL0_3: u32 = 8;
pub const GPIO_AFRL_AFSEL1_Pos: u32 = 4;
pub const GPIO_AFRL_AFSEL1_Msk: u32 = 240;
pub const GPIO_AFRL_AFSEL1: u32 = 240;
pub const GPIO_AFRL_AFSEL1_0: u32 = 16;
pub const GPIO_AFRL_AFSEL1_1: u32 = 32;
pub const GPIO_AFRL_AFSEL1_2: u32 = 64;
pub const GPIO_AFRL_AFSEL1_3: u32 = 128;
pub const GPIO_AFRL_AFSEL2_Pos: u32 = 8;
pub const GPIO_AFRL_AFSEL2_Msk: u32 = 3840;
pub const GPIO_AFRL_AFSEL2: u32 = 3840;
pub const GPIO_AFRL_AFSEL2_0: u32 = 256;
pub const GPIO_AFRL_AFSEL2_1: u32 = 512;
pub const GPIO_AFRL_AFSEL2_2: u32 = 1024;
pub const GPIO_AFRL_AFSEL2_3: u32 = 2048;
pub const GPIO_AFRL_AFSEL3_Pos: u32 = 12;
pub const GPIO_AFRL_AFSEL3_Msk: u32 = 61440;
pub const GPIO_AFRL_AFSEL3: u32 = 61440;
pub const GPIO_AFRL_AFSEL3_0: u32 = 4096;
pub const GPIO_AFRL_AFSEL3_1: u32 = 8192;
pub const GPIO_AFRL_AFSEL3_2: u32 = 16384;
pub const GPIO_AFRL_AFSEL3_3: u32 = 32768;
pub const GPIO_AFRL_AFSEL4_Pos: u32 = 16;
pub const GPIO_AFRL_AFSEL4_Msk: u32 = 983040;
pub const GPIO_AFRL_AFSEL4: u32 = 983040;
pub const GPIO_AFRL_AFSEL4_0: u32 = 65536;
pub const GPIO_AFRL_AFSEL4_1: u32 = 131072;
pub const GPIO_AFRL_AFSEL4_2: u32 = 262144;
pub const GPIO_AFRL_AFSEL4_3: u32 = 524288;
pub const GPIO_AFRL_AFSEL5_Pos: u32 = 20;
pub const GPIO_AFRL_AFSEL5_Msk: u32 = 15728640;
pub const GPIO_AFRL_AFSEL5: u32 = 15728640;
pub const GPIO_AFRL_AFSEL5_0: u32 = 1048576;
pub const GPIO_AFRL_AFSEL5_1: u32 = 2097152;
pub const GPIO_AFRL_AFSEL5_2: u32 = 4194304;
pub const GPIO_AFRL_AFSEL5_3: u32 = 8388608;
pub const GPIO_AFRL_AFSEL6_Pos: u32 = 24;
pub const GPIO_AFRL_AFSEL6_Msk: u32 = 251658240;
pub const GPIO_AFRL_AFSEL6: u32 = 251658240;
pub const GPIO_AFRL_AFSEL6_0: u32 = 16777216;
pub const GPIO_AFRL_AFSEL6_1: u32 = 33554432;
pub const GPIO_AFRL_AFSEL6_2: u32 = 67108864;
pub const GPIO_AFRL_AFSEL6_3: u32 = 134217728;
pub const GPIO_AFRL_AFSEL7_Pos: u32 = 28;
pub const GPIO_AFRL_AFSEL7_Msk: u32 = 4026531840;
pub const GPIO_AFRL_AFSEL7: u32 = 4026531840;
pub const GPIO_AFRL_AFSEL7_0: u32 = 268435456;
pub const GPIO_AFRL_AFSEL7_1: u32 = 536870912;
pub const GPIO_AFRL_AFSEL7_2: u32 = 1073741824;
pub const GPIO_AFRL_AFSEL7_3: u32 = 2147483648;
pub const GPIO_AFRH_AFSEL8_Pos: u32 = 0;
pub const GPIO_AFRH_AFSEL8_Msk: u32 = 15;
pub const GPIO_AFRH_AFSEL8: u32 = 15;
pub const GPIO_AFRH_AFSEL8_0: u32 = 1;
pub const GPIO_AFRH_AFSEL8_1: u32 = 2;
pub const GPIO_AFRH_AFSEL8_2: u32 = 4;
pub const GPIO_AFRH_AFSEL8_3: u32 = 8;
pub const GPIO_AFRH_AFSEL9_Pos: u32 = 4;
pub const GPIO_AFRH_AFSEL9_Msk: u32 = 240;
pub const GPIO_AFRH_AFSEL9: u32 = 240;
pub const GPIO_AFRH_AFSEL9_0: u32 = 16;
pub const GPIO_AFRH_AFSEL9_1: u32 = 32;
pub const GPIO_AFRH_AFSEL9_2: u32 = 64;
pub const GPIO_AFRH_AFSEL9_3: u32 = 128;
pub const GPIO_AFRH_AFSEL10_Pos: u32 = 8;
pub const GPIO_AFRH_AFSEL10_Msk: u32 = 3840;
pub const GPIO_AFRH_AFSEL10: u32 = 3840;
pub const GPIO_AFRH_AFSEL10_0: u32 = 256;
pub const GPIO_AFRH_AFSEL10_1: u32 = 512;
pub const GPIO_AFRH_AFSEL10_2: u32 = 1024;
pub const GPIO_AFRH_AFSEL10_3: u32 = 2048;
pub const GPIO_AFRH_AFSEL11_Pos: u32 = 12;
pub const GPIO_AFRH_AFSEL11_Msk: u32 = 61440;
pub const GPIO_AFRH_AFSEL11: u32 = 61440;
pub const GPIO_AFRH_AFSEL11_0: u32 = 4096;
pub const GPIO_AFRH_AFSEL11_1: u32 = 8192;
pub const GPIO_AFRH_AFSEL11_2: u32 = 16384;
pub const GPIO_AFRH_AFSEL11_3: u32 = 32768;
pub const GPIO_AFRH_AFSEL12_Pos: u32 = 16;
pub const GPIO_AFRH_AFSEL12_Msk: u32 = 983040;
pub const GPIO_AFRH_AFSEL12: u32 = 983040;
pub const GPIO_AFRH_AFSEL12_0: u32 = 65536;
pub const GPIO_AFRH_AFSEL12_1: u32 = 131072;
pub const GPIO_AFRH_AFSEL12_2: u32 = 262144;
pub const GPIO_AFRH_AFSEL12_3: u32 = 524288;
pub const GPIO_AFRH_AFSEL13_Pos: u32 = 20;
pub const GPIO_AFRH_AFSEL13_Msk: u32 = 15728640;
pub const GPIO_AFRH_AFSEL13: u32 = 15728640;
pub const GPIO_AFRH_AFSEL13_0: u32 = 1048576;
pub const GPIO_AFRH_AFSEL13_1: u32 = 2097152;
pub const GPIO_AFRH_AFSEL13_2: u32 = 4194304;
pub const GPIO_AFRH_AFSEL13_3: u32 = 8388608;
pub const GPIO_AFRH_AFSEL14_Pos: u32 = 24;
pub const GPIO_AFRH_AFSEL14_Msk: u32 = 251658240;
pub const GPIO_AFRH_AFSEL14: u32 = 251658240;
pub const GPIO_AFRH_AFSEL14_0: u32 = 16777216;
pub const GPIO_AFRH_AFSEL14_1: u32 = 33554432;
pub const GPIO_AFRH_AFSEL14_2: u32 = 67108864;
pub const GPIO_AFRH_AFSEL14_3: u32 = 134217728;
pub const GPIO_AFRH_AFSEL15_Pos: u32 = 28;
pub const GPIO_AFRH_AFSEL15_Msk: u32 = 4026531840;
pub const GPIO_AFRH_AFSEL15: u32 = 4026531840;
pub const GPIO_AFRH_AFSEL15_0: u32 = 268435456;
pub const GPIO_AFRH_AFSEL15_1: u32 = 536870912;
pub const GPIO_AFRH_AFSEL15_2: u32 = 1073741824;
pub const GPIO_AFRH_AFSEL15_3: u32 = 2147483648;
pub const GPIO_BRR_BR0_Pos: u32 = 0;
pub const GPIO_BRR_BR0_Msk: u32 = 1;
pub const GPIO_BRR_BR0: u32 = 1;
pub const GPIO_BRR_BR1_Pos: u32 = 1;
pub const GPIO_BRR_BR1_Msk: u32 = 2;
pub const GPIO_BRR_BR1: u32 = 2;
pub const GPIO_BRR_BR2_Pos: u32 = 2;
pub const GPIO_BRR_BR2_Msk: u32 = 4;
pub const GPIO_BRR_BR2: u32 = 4;
pub const GPIO_BRR_BR3_Pos: u32 = 3;
pub const GPIO_BRR_BR3_Msk: u32 = 8;
pub const GPIO_BRR_BR3: u32 = 8;
pub const GPIO_BRR_BR4_Pos: u32 = 4;
pub const GPIO_BRR_BR4_Msk: u32 = 16;
pub const GPIO_BRR_BR4: u32 = 16;
pub const GPIO_BRR_BR5_Pos: u32 = 5;
pub const GPIO_BRR_BR5_Msk: u32 = 32;
pub const GPIO_BRR_BR5: u32 = 32;
pub const GPIO_BRR_BR6_Pos: u32 = 6;
pub const GPIO_BRR_BR6_Msk: u32 = 64;
pub const GPIO_BRR_BR6: u32 = 64;
pub const GPIO_BRR_BR7_Pos: u32 = 7;
pub const GPIO_BRR_BR7_Msk: u32 = 128;
pub const GPIO_BRR_BR7: u32 = 128;
pub const GPIO_BRR_BR8_Pos: u32 = 8;
pub const GPIO_BRR_BR8_Msk: u32 = 256;
pub const GPIO_BRR_BR8: u32 = 256;
pub const GPIO_BRR_BR9_Pos: u32 = 9;
pub const GPIO_BRR_BR9_Msk: u32 = 512;
pub const GPIO_BRR_BR9: u32 = 512;
pub const GPIO_BRR_BR10_Pos: u32 = 10;
pub const GPIO_BRR_BR10_Msk: u32 = 1024;
pub const GPIO_BRR_BR10: u32 = 1024;
pub const GPIO_BRR_BR11_Pos: u32 = 11;
pub const GPIO_BRR_BR11_Msk: u32 = 2048;
pub const GPIO_BRR_BR11: u32 = 2048;
pub const GPIO_BRR_BR12_Pos: u32 = 12;
pub const GPIO_BRR_BR12_Msk: u32 = 4096;
pub const GPIO_BRR_BR12: u32 = 4096;
pub const GPIO_BRR_BR13_Pos: u32 = 13;
pub const GPIO_BRR_BR13_Msk: u32 = 8192;
pub const GPIO_BRR_BR13: u32 = 8192;
pub const GPIO_BRR_BR14_Pos: u32 = 14;
pub const GPIO_BRR_BR14_Msk: u32 = 16384;
pub const GPIO_BRR_BR14: u32 = 16384;
pub const GPIO_BRR_BR15_Pos: u32 = 15;
pub const GPIO_BRR_BR15_Msk: u32 = 32768;
pub const GPIO_BRR_BR15: u32 = 32768;
pub const I2C_CR1_PE_Pos: u32 = 0;
pub const I2C_CR1_PE_Msk: u32 = 1;
pub const I2C_CR1_PE: u32 = 1;
pub const I2C_CR1_ENGC_Pos: u32 = 6;
pub const I2C_CR1_ENGC_Msk: u32 = 64;
pub const I2C_CR1_ENGC: u32 = 64;
pub const I2C_CR1_NOSTRETCH_Pos: u32 = 7;
pub const I2C_CR1_NOSTRETCH_Msk: u32 = 128;
pub const I2C_CR1_NOSTRETCH: u32 = 128;
pub const I2C_CR1_START_Pos: u32 = 8;
pub const I2C_CR1_START_Msk: u32 = 256;
pub const I2C_CR1_START: u32 = 256;
pub const I2C_CR1_STOP_Pos: u32 = 9;
pub const I2C_CR1_STOP_Msk: u32 = 512;
pub const I2C_CR1_STOP: u32 = 512;
pub const I2C_CR1_ACK_Pos: u32 = 10;
pub const I2C_CR1_ACK_Msk: u32 = 1024;
pub const I2C_CR1_ACK: u32 = 1024;
pub const I2C_CR1_POS_Pos: u32 = 11;
pub const I2C_CR1_POS_Msk: u32 = 2048;
pub const I2C_CR1_POS: u32 = 2048;
pub const I2C_CR1_SWRST_Pos: u32 = 15;
pub const I2C_CR1_SWRST_Msk: u32 = 32768;
pub const I2C_CR1_SWRST: u32 = 32768;
pub const I2C_CR2_FREQ_Pos: u32 = 0;
pub const I2C_CR2_FREQ_Msk: u32 = 63;
pub const I2C_CR2_FREQ: u32 = 63;
pub const I2C_CR2_FREQ_0: u32 = 1;
pub const I2C_CR2_FREQ_1: u32 = 2;
pub const I2C_CR2_FREQ_2: u32 = 4;
pub const I2C_CR2_FREQ_3: u32 = 8;
pub const I2C_CR2_FREQ_4: u32 = 16;
pub const I2C_CR2_FREQ_5: u32 = 32;
pub const I2C_CR2_ITERREN_Pos: u32 = 8;
pub const I2C_CR2_ITERREN_Msk: u32 = 256;
pub const I2C_CR2_ITERREN: u32 = 256;
pub const I2C_CR2_ITEVTEN_Pos: u32 = 9;
pub const I2C_CR2_ITEVTEN_Msk: u32 = 512;
pub const I2C_CR2_ITEVTEN: u32 = 512;
pub const I2C_CR2_ITBUFEN_Pos: u32 = 10;
pub const I2C_CR2_ITBUFEN_Msk: u32 = 1024;
pub const I2C_CR2_ITBUFEN: u32 = 1024;
pub const I2C_CR2_DMAEN_Pos: u32 = 11;
pub const I2C_CR2_DMAEN_Msk: u32 = 2048;
pub const I2C_CR2_DMAEN: u32 = 2048;
pub const I2C_CR2_LAST_Pos: u32 = 12;
pub const I2C_CR2_LAST_Msk: u32 = 4096;
pub const I2C_CR2_LAST: u32 = 4096;
pub const I2C_OAR1_ADD1_7: u32 = 254;
pub const I2C_OAR1_ADD1_Pos: u32 = 1;
pub const I2C_OAR1_ADD1_Msk: u32 = 2;
pub const I2C_OAR1_ADD1: u32 = 2;
pub const I2C_OAR1_ADD2_Pos: u32 = 2;
pub const I2C_OAR1_ADD2_Msk: u32 = 4;
pub const I2C_OAR1_ADD2: u32 = 4;
pub const I2C_OAR1_ADD3_Pos: u32 = 3;
pub const I2C_OAR1_ADD3_Msk: u32 = 8;
pub const I2C_OAR1_ADD3: u32 = 8;
pub const I2C_OAR1_ADD4_Pos: u32 = 4;
pub const I2C_OAR1_ADD4_Msk: u32 = 16;
pub const I2C_OAR1_ADD4: u32 = 16;
pub const I2C_OAR1_ADD5_Pos: u32 = 5;
pub const I2C_OAR1_ADD5_Msk: u32 = 32;
pub const I2C_OAR1_ADD5: u32 = 32;
pub const I2C_OAR1_ADD6_Pos: u32 = 6;
pub const I2C_OAR1_ADD6_Msk: u32 = 64;
pub const I2C_OAR1_ADD6: u32 = 64;
pub const I2C_OAR1_ADD7_Pos: u32 = 7;
pub const I2C_OAR1_ADD7_Msk: u32 = 128;
pub const I2C_OAR1_ADD7: u32 = 128;
pub const I2C_DR_DR_Pos: u32 = 0;
pub const I2C_DR_DR_Msk: u32 = 255;
pub const I2C_DR_DR: u32 = 255;
pub const I2C_DR_DR_0: u32 = 1;
pub const I2C_DR_DR_1: u32 = 2;
pub const I2C_DR_DR_2: u32 = 4;
pub const I2C_DR_DR_3: u32 = 8;
pub const I2C_DR_DR_4: u32 = 16;
pub const I2C_DR_DR_5: u32 = 32;
pub const I2C_DR_DR_6: u32 = 64;
pub const I2C_DR_DR_7: u32 = 128;
pub const I2C_SR1_SB_Pos: u32 = 0;
pub const I2C_SR1_SB_Msk: u32 = 1;
pub const I2C_SR1_SB: u32 = 1;
pub const I2C_SR1_ADDR_Pos: u32 = 1;
pub const I2C_SR1_ADDR_Msk: u32 = 2;
pub const I2C_SR1_ADDR: u32 = 2;
pub const I2C_SR1_BTF_Pos: u32 = 2;
pub const I2C_SR1_BTF_Msk: u32 = 4;
pub const I2C_SR1_BTF: u32 = 4;
pub const I2C_SR1_STOPF_Pos: u32 = 4;
pub const I2C_SR1_STOPF_Msk: u32 = 16;
pub const I2C_SR1_STOPF: u32 = 16;
pub const I2C_SR1_RXNE_Pos: u32 = 6;
pub const I2C_SR1_RXNE_Msk: u32 = 64;
pub const I2C_SR1_RXNE: u32 = 64;
pub const I2C_SR1_TXE_Pos: u32 = 7;
pub const I2C_SR1_TXE_Msk: u32 = 128;
pub const I2C_SR1_TXE: u32 = 128;
pub const I2C_SR1_BERR_Pos: u32 = 8;
pub const I2C_SR1_BERR_Msk: u32 = 256;
pub const I2C_SR1_BERR: u32 = 256;
pub const I2C_SR1_ARLO_Pos: u32 = 9;
pub const I2C_SR1_ARLO_Msk: u32 = 512;
pub const I2C_SR1_ARLO: u32 = 512;
pub const I2C_SR1_AF_Pos: u32 = 10;
pub const I2C_SR1_AF_Msk: u32 = 1024;
pub const I2C_SR1_AF: u32 = 1024;
pub const I2C_SR1_OVR_Pos: u32 = 11;
pub const I2C_SR1_OVR_Msk: u32 = 2048;
pub const I2C_SR1_OVR: u32 = 2048;
pub const I2C_SR1_PECERR_Pos: u32 = 12;
pub const I2C_SR1_PECERR_Msk: u32 = 4096;
pub const I2C_SR1_PECERR: u32 = 4096;
pub const I2C_SR2_MSL_Pos: u32 = 0;
pub const I2C_SR2_MSL_Msk: u32 = 1;
pub const I2C_SR2_MSL: u32 = 1;
pub const I2C_SR2_BUSY_Pos: u32 = 1;
pub const I2C_SR2_BUSY_Msk: u32 = 2;
pub const I2C_SR2_BUSY: u32 = 2;
pub const I2C_SR2_TRA_Pos: u32 = 2;
pub const I2C_SR2_TRA_Msk: u32 = 4;
pub const I2C_SR2_TRA: u32 = 4;
pub const I2C_SR2_GENCALL_Pos: u32 = 4;
pub const I2C_SR2_GENCALL_Msk: u32 = 16;
pub const I2C_SR2_GENCALL: u32 = 16;
pub const I2C_SR2_PEC_Pos: u32 = 8;
pub const I2C_SR2_PEC_Msk: u32 = 65280;
pub const I2C_SR2_PEC: u32 = 65280;
pub const I2C_CCR_CCR_Pos: u32 = 0;
pub const I2C_CCR_CCR_Msk: u32 = 4095;
pub const I2C_CCR_CCR: u32 = 4095;
pub const I2C_CCR_DUTY_Pos: u32 = 14;
pub const I2C_CCR_DUTY_Msk: u32 = 16384;
pub const I2C_CCR_DUTY: u32 = 16384;
pub const I2C_CCR_FS_Pos: u32 = 15;
pub const I2C_CCR_FS_Msk: u32 = 32768;
pub const I2C_CCR_FS: u32 = 32768;
pub const I2C_TRISE_TRISE_Pos: u32 = 0;
pub const I2C_TRISE_TRISE_Msk: u32 = 63;
pub const I2C_TRISE_TRISE: u32 = 63;
pub const IWDG_KR_KEY_Pos: u32 = 0;
pub const IWDG_KR_KEY_Msk: u32 = 65535;
pub const IWDG_KR_KEY: u32 = 65535;
pub const IWDG_PR_PR_Pos: u32 = 0;
pub const IWDG_PR_PR_Msk: u32 = 7;
pub const IWDG_PR_PR: u32 = 7;
pub const IWDG_PR_PR_0: u32 = 1;
pub const IWDG_PR_PR_1: u32 = 2;
pub const IWDG_PR_PR_2: u32 = 4;
pub const IWDG_RLR_RL_Pos: u32 = 0;
pub const IWDG_RLR_RL_Msk: u32 = 4095;
pub const IWDG_RLR_RL: u32 = 4095;
pub const IWDG_SR_PVU_Pos: u32 = 0;
pub const IWDG_SR_PVU_Msk: u32 = 1;
pub const IWDG_SR_PVU: u32 = 1;
pub const IWDG_SR_RVU_Pos: u32 = 1;
pub const IWDG_SR_RVU_Msk: u32 = 2;
pub const IWDG_SR_RVU: u32 = 2;
pub const LED_CR_LEDON_Pos: u32 = 0;
pub const LED_CR_LEDON_Msk: u32 = 1;
pub const LED_CR_LEDON: u32 = 1;
pub const LED_CR_LED_COM_SEL_Pos: u32 = 1;
pub const LED_CR_LED_COM_SEL_Msk: u32 = 6;
pub const LED_CR_LED_COM_SEL: u32 = 6;
pub const LED_CR_LED_COM_SEL_0: u32 = 2;
pub const LED_CR_LED_COM_SEL_1: u32 = 4;
pub const LED_CR_IE_Pos: u32 = 3;
pub const LED_CR_IE_Msk: u32 = 8;
pub const LED_CR_IE: u32 = 8;
pub const LED_CR_EHS_Pos: u32 = 12;
pub const LED_CR_EHS_Msk: u32 = 4096;
pub const LED_CR_EHS: u32 = 4096;
pub const LED_PR_PR_Pos: u32 = 0;
pub const LED_PR_PR_Msk: u32 = 255;
pub const LED_PR_PR: u32 = 255;
pub const LED_PR_PR_0: u32 = 1;
pub const LED_PR_PR_1: u32 = 2;
pub const LED_PR_PR_2: u32 = 4;
pub const LED_PR_PR_3: u32 = 8;
pub const LED_PR_PR_4: u32 = 16;
pub const LED_PR_PR_5: u32 = 32;
pub const LED_PR_PR_6: u32 = 64;
pub const LED_PR_PR_7: u32 = 128;
pub const LED_TR_T1_Pos: u32 = 0;
pub const LED_TR_T1_Msk: u32 = 255;
pub const LED_TR_T1: u32 = 255;
pub const LED_TR_T1_0: u32 = 1;
pub const LED_TR_T1_1: u32 = 2;
pub const LED_TR_T1_2: u32 = 4;
pub const LED_TR_T1_3: u32 = 8;
pub const LED_TR_T1_4: u32 = 16;
pub const LED_TR_T1_5: u32 = 32;
pub const LED_TR_T1_6: u32 = 64;
pub const LED_TR_T1_7: u32 = 128;
pub const LED_TR_T2_Pos: u32 = 8;
pub const LED_TR_T2_Msk: u32 = 65280;
pub const LED_TR_T2: u32 = 65280;
pub const LED_TR_T2_0: u32 = 256;
pub const LED_TR_T2_1: u32 = 512;
pub const LED_TR_T2_2: u32 = 1024;
pub const LED_TR_T2_3: u32 = 2048;
pub const LED_TR_T2_4: u32 = 4096;
pub const LED_TR_T2_5: u32 = 8192;
pub const LED_TR_T2_6: u32 = 16384;
pub const LED_TR_T2_7: u32 = 32768;
pub const LED_DR0_DATA0_Pos: u32 = 0;
pub const LED_DR0_DATA0_Msk: u32 = 255;
pub const LED_DR0_DATA0: u32 = 255;
pub const LED_DR0_DATA0_A: u32 = 1;
pub const LED_DR0_DATA0_B: u32 = 2;
pub const LED_DR0_DATA0_C: u32 = 4;
pub const LED_DR0_DATA0_D: u32 = 8;
pub const LED_DR0_DATA0_E: u32 = 16;
pub const LED_DR0_DATA0_F: u32 = 32;
pub const LED_DR0_DATA0_G: u32 = 64;
pub const LED_DR0_DATA0_DP: u32 = 128;
pub const LED_DR1_DATA1_Pos: u32 = 0;
pub const LED_DR1_DATA1_Msk: u32 = 255;
pub const LED_DR1_DATA1: u32 = 255;
pub const LED_DR1_DATA1_A: u32 = 1;
pub const LED_DR1_DATA1_B: u32 = 2;
pub const LED_DR1_DATA1_C: u32 = 4;
pub const LED_DR1_DATA1_D: u32 = 8;
pub const LED_DR1_DATA1_E: u32 = 16;
pub const LED_DR1_DATA1_F: u32 = 32;
pub const LED_DR1_DATA1_G: u32 = 64;
pub const LED_DR1_DATA1_DP: u32 = 128;
pub const LED_DR2_DATA2_Pos: u32 = 0;
pub const LED_DR2_DATA2_Msk: u32 = 255;
pub const LED_DR2_DATA2: u32 = 255;
pub const LED_DR2_DATA2_A: u32 = 1;
pub const LED_DR2_DATA2_B: u32 = 2;
pub const LED_DR2_DATA2_C: u32 = 4;
pub const LED_DR2_DATA2_D: u32 = 8;
pub const LED_DR2_DATA2_E: u32 = 16;
pub const LED_DR2_DATA2_F: u32 = 32;
pub const LED_DR2_DATA2_G: u32 = 64;
pub const LED_DR2_DATA2_DP: u32 = 128;
pub const LED_DR3_DATA3_Pos: u32 = 0;
pub const LED_DR3_DATA3_Msk: u32 = 255;
pub const LED_DR3_DATA3: u32 = 255;
pub const LED_DR3_DATA3_A: u32 = 1;
pub const LED_DR3_DATA3_B: u32 = 2;
pub const LED_DR3_DATA3_C: u32 = 4;
pub const LED_DR3_DATA3_D: u32 = 8;
pub const LED_DR3_DATA3_E: u32 = 16;
pub const LED_DR3_DATA3_F: u32 = 32;
pub const LED_DR3_DATA3_G: u32 = 64;
pub const LED_DR3_DATA3_DP: u32 = 128;
pub const LED_IR_FLAG_Pos: u32 = 0;
pub const LED_IR_FLAG_Msk: u32 = 1;
pub const LED_IR_FLAG: u32 = 1;
pub const PWR_CR1_BIAS_CR_Pos: u32 = 0;
pub const PWR_CR1_BIAS_CR_Msk: u32 = 15;
pub const PWR_CR1_BIAS_CR: u32 = 15;
pub const PWR_CR1_BIAS_CR_0: u32 = 1;
pub const PWR_CR1_BIAS_CR_1: u32 = 2;
pub const PWR_CR1_BIAS_CR_2: u32 = 4;
pub const PWR_CR1_BIAS_CR_3: u32 = 8;
pub const PWR_CR1_BIAS_CR_SEL_Pos: u32 = 4;
pub const PWR_CR1_BIAS_CR_SEL_Msk: u32 = 16;
pub const PWR_CR1_BIAS_CR_SEL: u32 = 16;
pub const PWR_CR1_DBP_Pos: u32 = 8;
pub const PWR_CR1_DBP_Msk: u32 = 256;
pub const PWR_CR1_DBP: u32 = 256;
pub const PWR_CR1_VOS_Pos: u32 = 9;
pub const PWR_CR1_VOS_Msk: u32 = 512;
pub const PWR_CR1_VOS: u32 = 512;
pub const PWR_CR1_MRRDY_TIME_Pos: u32 = 10;
pub const PWR_CR1_MRRDY_TIME_Msk: u32 = 3072;
pub const PWR_CR1_MRRDY_TIME: u32 = 3072;
pub const PWR_CR1_MRRDY_TIME_0: u32 = 1024;
pub const PWR_CR1_MRRDY_TIME_1: u32 = 2048;
pub const PWR_CR1_FLS_SLPTIME_Pos: u32 = 12;
pub const PWR_CR1_FLS_SLPTIME_Msk: u32 = 12288;
pub const PWR_CR1_FLS_SLPTIME: u32 = 12288;
pub const PWR_CR1_FLS_SLPTIME_0: u32 = 4096;
pub const PWR_CR1_FLS_SLPTIME_1: u32 = 8192;
pub const PWR_CR1_LPR_Pos: u32 = 14;
pub const PWR_CR1_LPR_Msk: u32 = 16384;
pub const PWR_CR1_LPR: u32 = 16384;
pub const PWR_CR1_SRAM_RETV_Pos: u32 = 16;
pub const PWR_CR1_SRAM_RETV_Msk: u32 = 458752;
pub const PWR_CR1_SRAM_RETV: u32 = 458752;
pub const PWR_CR1_SRAM_RETV_0: u32 = 65536;
pub const PWR_CR1_SRAM_RETV_1: u32 = 131072;
pub const PWR_CR1_SRAM_RETV_2: u32 = 262144;
pub const PWR_CR1_HSION_CTRL_Pos: u32 = 19;
pub const PWR_CR1_HSION_CTRL_Msk: u32 = 524288;
pub const PWR_CR1_HSION_CTRL: u32 = 524288;
pub const PWR_CR2_PVDE_Pos: u32 = 0;
pub const PWR_CR2_PVDE_Msk: u32 = 1;
pub const PWR_CR2_PVDE: u32 = 1;
pub const PWR_CR2_SRCSEL_Pos: u32 = 2;
pub const PWR_CR2_SRCSEL_Msk: u32 = 4;
pub const PWR_CR2_SRCSEL: u32 = 4;
pub const PWR_CR2_PVDT_Pos: u32 = 4;
pub const PWR_CR2_PVDT_Msk: u32 = 112;
pub const PWR_CR2_PVDT: u32 = 112;
pub const PWR_CR2_PVDT_0: u32 = 16;
pub const PWR_CR2_PVDT_1: u32 = 32;
pub const PWR_CR2_PVDT_2: u32 = 64;
pub const PWR_CR2_FLTEN_Pos: u32 = 8;
pub const PWR_CR2_FLTEN_Msk: u32 = 256;
pub const PWR_CR2_FLTEN: u32 = 256;
pub const PWR_CR2_FLT_TIME_Pos: u32 = 9;
pub const PWR_CR2_FLT_TIME_Msk: u32 = 3584;
pub const PWR_CR2_FLT_TIME: u32 = 3584;
pub const PWR_CR2_FLT_TIME_0: u32 = 512;
pub const PWR_CR2_FLT_TIME_1: u32 = 1024;
pub const PWR_CR2_FLT_TIME_2: u32 = 2048;
pub const PWR_SR_PVDO_Pos: u32 = 11;
pub const PWR_SR_PVDO_Msk: u32 = 2048;
pub const PWR_SR_PVDO: u32 = 2048;
pub const RCC_CR_HSION_Pos: u32 = 8;
pub const RCC_CR_HSION_Msk: u32 = 256;
pub const RCC_CR_HSION: u32 = 256;
pub const RCC_CR_HSIRDY_Pos: u32 = 10;
pub const RCC_CR_HSIRDY_Msk: u32 = 1024;
pub const RCC_CR_HSIRDY: u32 = 1024;
pub const RCC_CR_HSIDIV_Pos: u32 = 11;
pub const RCC_CR_HSIDIV_Msk: u32 = 14336;
pub const RCC_CR_HSIDIV: u32 = 14336;
pub const RCC_CR_HSIDIV_0: u32 = 2048;
pub const RCC_CR_HSIDIV_1: u32 = 4096;
pub const RCC_CR_HSIDIV_2: u32 = 8192;
pub const RCC_CR_HSEON_Pos: u32 = 16;
pub const RCC_CR_HSEON_Msk: u32 = 65536;
pub const RCC_CR_HSEON: u32 = 65536;
pub const RCC_CR_HSERDY_Pos: u32 = 17;
pub const RCC_CR_HSERDY_Msk: u32 = 131072;
pub const RCC_CR_HSERDY: u32 = 131072;
pub const RCC_CR_HSEBYP_Pos: u32 = 18;
pub const RCC_CR_HSEBYP_Msk: u32 = 262144;
pub const RCC_CR_HSEBYP: u32 = 262144;
pub const RCC_CR_CSSON_Pos: u32 = 19;
pub const RCC_CR_CSSON_Msk: u32 = 524288;
pub const RCC_CR_CSSON: u32 = 524288;
pub const RCC_CR_PLLON_Pos: u32 = 24;
pub const RCC_CR_PLLON_Msk: u32 = 16777216;
pub const RCC_CR_PLLON: u32 = 16777216;
pub const RCC_CR_PLLRDY_Pos: u32 = 25;
pub const RCC_CR_PLLRDY_Msk: u32 = 33554432;
pub const RCC_CR_PLLRDY: u32 = 33554432;
pub const RCC_ICSCR_HSI_TRIM_Pos: u32 = 0;
pub const RCC_ICSCR_HSI_TRIM_Msk: u32 = 8191;
pub const RCC_ICSCR_HSI_TRIM: u32 = 8191;
pub const RCC_ICSCR_HSI_TRIM_0: u32 = 1;
pub const RCC_ICSCR_HSI_TRIM_1: u32 = 2;
pub const RCC_ICSCR_HSI_TRIM_2: u32 = 4;
pub const RCC_ICSCR_HSI_TRIM_3: u32 = 8;
pub const RCC_ICSCR_HSI_TRIM_4: u32 = 16;
pub const RCC_ICSCR_HSI_TRIM_5: u32 = 32;
pub const RCC_ICSCR_HSI_TRIM_6: u32 = 64;
pub const RCC_ICSCR_HSI_TRIM_7: u32 = 128;
pub const RCC_ICSCR_HSI_TRIM_8: u32 = 256;
pub const RCC_ICSCR_HSI_TRIM_9: u32 = 512;
pub const RCC_ICSCR_HSI_TRIM_10: u32 = 1024;
pub const RCC_ICSCR_HSI_TRIM_11: u32 = 2048;
pub const RCC_ICSCR_HSI_TRIM_12: u32 = 4096;
pub const RCC_ICSCR_HSI_FS_Pos: u32 = 13;
pub const RCC_ICSCR_HSI_FS_Msk: u32 = 57344;
pub const RCC_ICSCR_HSI_FS: u32 = 57344;
pub const RCC_ICSCR_HSI_FS_0: u32 = 8192;
pub const RCC_ICSCR_HSI_FS_1: u32 = 16384;
pub const RCC_ICSCR_HSI_FS_2: u32 = 32768;
pub const RCC_ICSCR_LSI_TRIM_Pos: u32 = 16;
pub const RCC_ICSCR_LSI_TRIM_Msk: u32 = 33488896;
pub const RCC_ICSCR_LSI_TRIM: u32 = 33488896;
pub const RCC_ICSCR_LSI_TRIM_0: u32 = 65536;
pub const RCC_ICSCR_LSI_TRIM_1: u32 = 131072;
pub const RCC_ICSCR_LSI_TRIM_2: u32 = 262144;
pub const RCC_ICSCR_LSI_TRIM_3: u32 = 524288;
pub const RCC_ICSCR_LSI_TRIM_4: u32 = 1048576;
pub const RCC_ICSCR_LSI_TRIM_5: u32 = 2097152;
pub const RCC_ICSCR_LSI_TRIM_6: u32 = 4194304;
pub const RCC_ICSCR_LSI_TRIM_7: u32 = 8388608;
pub const RCC_ICSCR_LSI_TRIM_8: u32 = 16777216;
pub const RCC_ICSCR_LSI_STARTUP_Pos: u32 = 26;
pub const RCC_ICSCR_LSI_STARTUP_Msk: u32 = 201326592;
pub const RCC_ICSCR_LSI_STARTUP: u32 = 201326592;
pub const RCC_ICSCR_LSI_STARTUP_0: u32 = 67108864;
pub const RCC_ICSCR_LSI_STARTUP_1: u32 = 134217728;
pub const RCC_CFGR_SW_Pos: u32 = 0;
pub const RCC_CFGR_SW_Msk: u32 = 7;
pub const RCC_CFGR_SW: u32 = 7;
pub const RCC_CFGR_SW_0: u32 = 1;
pub const RCC_CFGR_SW_1: u32 = 2;
pub const RCC_CFGR_SW_2: u32 = 4;
pub const RCC_CFGR_SWS_Pos: u32 = 3;
pub const RCC_CFGR_SWS_Msk: u32 = 56;
pub const RCC_CFGR_SWS: u32 = 56;
pub const RCC_CFGR_SWS_0: u32 = 8;
pub const RCC_CFGR_SWS_1: u32 = 16;
pub const RCC_CFGR_SWS_2: u32 = 32;
pub const RCC_CFGR_SWS_HSI: u32 = 0;
pub const RCC_CFGR_SWS_HSE: u32 = 8;
pub const RCC_CFGR_SWS_PLL: u32 = 16;
pub const RCC_CFGR_SWS_LSI: u32 = 24;
pub const RCC_CFGR_SWS_LSE: u32 = 32;
pub const RCC_CFGR_HPRE_Pos: u32 = 8;
pub const RCC_CFGR_HPRE_Msk: u32 = 3840;
pub const RCC_CFGR_HPRE: u32 = 3840;
pub const RCC_CFGR_HPRE_0: u32 = 256;
pub const RCC_CFGR_HPRE_1: u32 = 512;
pub const RCC_CFGR_HPRE_2: u32 = 1024;
pub const RCC_CFGR_HPRE_3: u32 = 2048;
pub const RCC_CFGR_PPRE_Pos: u32 = 12;
pub const RCC_CFGR_PPRE_Msk: u32 = 28672;
pub const RCC_CFGR_PPRE: u32 = 28672;
pub const RCC_CFGR_PPRE_0: u32 = 4096;
pub const RCC_CFGR_PPRE_1: u32 = 8192;
pub const RCC_CFGR_PPRE_2: u32 = 16384;
pub const RCC_CFGR_MCOSEL_Pos: u32 = 24;
pub const RCC_CFGR_MCOSEL_Msk: u32 = 117440512;
pub const RCC_CFGR_MCOSEL: u32 = 117440512;
pub const RCC_CFGR_MCOSEL_0: u32 = 16777216;
pub const RCC_CFGR_MCOSEL_1: u32 = 33554432;
pub const RCC_CFGR_MCOSEL_2: u32 = 67108864;
pub const RCC_CFGR_MCOPRE_Pos: u32 = 28;
pub const RCC_CFGR_MCOPRE_Msk: u32 = 1879048192;
pub const RCC_CFGR_MCOPRE: u32 = 1879048192;
pub const RCC_CFGR_MCOPRE_0: u32 = 268435456;
pub const RCC_CFGR_MCOPRE_1: u32 = 536870912;
pub const RCC_CFGR_MCOPRE_2: u32 = 1073741824;
pub const RCC_PLLCFGR_PLLSRC_Pos: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_Msk: u32 = 1;
pub const RCC_PLLCFGR_PLLSRC: u32 = 1;
pub const RCC_PLLCFGR_PLLSRC_NONE: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_HSI_Pos: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_HSI_Msk: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_HSI: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_HSE_Pos: u32 = 0;
pub const RCC_PLLCFGR_PLLSRC_HSE_Msk: u32 = 1;
pub const RCC_PLLCFGR_PLLSRC_HSE: u32 = 1;
pub const RCC_ECSCR_HSE_FREQ_Pos: u32 = 2;
pub const RCC_ECSCR_HSE_FREQ_Msk: u32 = 12;
pub const RCC_ECSCR_HSE_FREQ: u32 = 12;
pub const RCC_ECSCR_HSE_FREQ_0: u32 = 4;
pub const RCC_ECSCR_HSE_FREQ_1: u32 = 8;
pub const RCC_ECSCR_LSE_DRIVER_Pos: u32 = 16;
pub const RCC_ECSCR_LSE_DRIVER_Msk: u32 = 196608;
pub const RCC_ECSCR_LSE_DRIVER: u32 = 196608;
pub const RCC_ECSCR_LSE_DRIVER_0: u32 = 65536;
pub const RCC_ECSCR_LSE_DRIVER_1: u32 = 131072;
pub const RCC_CIER_LSIRDYIE_Pos: u32 = 0;
pub const RCC_CIER_LSIRDYIE_Msk: u32 = 1;
pub const RCC_CIER_LSIRDYIE: u32 = 1;
pub const RCC_CIER_LSERDYIE_Pos: u32 = 1;
pub const RCC_CIER_LSERDYIE_Msk: u32 = 2;
pub const RCC_CIER_LSERDYIE: u32 = 2;
pub const RCC_CIER_HSIRDYIE_Pos: u32 = 3;
pub const RCC_CIER_HSIRDYIE_Msk: u32 = 8;
pub const RCC_CIER_HSIRDYIE: u32 = 8;
pub const RCC_CIER_HSERDYIE_Pos: u32 = 4;
pub const RCC_CIER_HSERDYIE_Msk: u32 = 16;
pub const RCC_CIER_HSERDYIE: u32 = 16;
pub const RCC_CIER_PLLRDYIE_Pos: u32 = 5;
pub const RCC_CIER_PLLRDYIE_Msk: u32 = 32;
pub const RCC_CIER_PLLRDYIE: u32 = 32;
pub const RCC_CIFR_LSIRDYF_Pos: u32 = 0;
pub const RCC_CIFR_LSIRDYF_Msk: u32 = 1;
pub const RCC_CIFR_LSIRDYF: u32 = 1;
pub const RCC_CIFR_LSERDYF_Pos: u32 = 1;
pub const RCC_CIFR_LSERDYF_Msk: u32 = 2;
pub const RCC_CIFR_LSERDYF: u32 = 2;
pub const RCC_CIFR_HSIRDYF_Pos: u32 = 3;
pub const RCC_CIFR_HSIRDYF_Msk: u32 = 8;
pub const RCC_CIFR_HSIRDYF: u32 = 8;
pub const RCC_CIFR_HSERDYF_Pos: u32 = 4;
pub const RCC_CIFR_HSERDYF_Msk: u32 = 16;
pub const RCC_CIFR_HSERDYF: u32 = 16;
pub const RCC_CIFR_PLLRDYF_Pos: u32 = 5;
pub const RCC_CIFR_PLLRDYF_Msk: u32 = 32;
pub const RCC_CIFR_PLLRDYF: u32 = 32;
pub const RCC_CIFR_CSSF_Pos: u32 = 8;
pub const RCC_CIFR_CSSF_Msk: u32 = 256;
pub const RCC_CIFR_CSSF: u32 = 256;
pub const RCC_CIFR_LSECSSF_Pos: u32 = 9;
pub const RCC_CIFR_LSECSSF_Msk: u32 = 512;
pub const RCC_CIFR_LSECSSF: u32 = 512;
pub const RCC_CICR_LSIRDYC_Pos: u32 = 0;
pub const RCC_CICR_LSIRDYC_Msk: u32 = 1;
pub const RCC_CICR_LSIRDYC: u32 = 1;
pub const RCC_CICR_LSERDYC_Pos: u32 = 1;
pub const RCC_CICR_LSERDYC_Msk: u32 = 2;
pub const RCC_CICR_LSERDYC: u32 = 2;
pub const RCC_CICR_HSIRDYC_Pos: u32 = 3;
pub const RCC_CICR_HSIRDYC_Msk: u32 = 8;
pub const RCC_CICR_HSIRDYC: u32 = 8;
pub const RCC_CICR_HSERDYC_Pos: u32 = 4;
pub const RCC_CICR_HSERDYC_Msk: u32 = 16;
pub const RCC_CICR_HSERDYC: u32 = 16;
pub const RCC_CICR_PLLRDYC_Pos: u32 = 5;
pub const RCC_CICR_PLLRDYC_Msk: u32 = 32;
pub const RCC_CICR_PLLRDYC: u32 = 32;
pub const RCC_CICR_CSSC_Pos: u32 = 8;
pub const RCC_CICR_CSSC_Msk: u32 = 256;
pub const RCC_CICR_CSSC: u32 = 256;
pub const RCC_CICR_LSECSSC_Pos: u32 = 9;
pub const RCC_CICR_LSECSSC_Msk: u32 = 512;
pub const RCC_CICR_LSECSSC: u32 = 512;
pub const RCC_IOPRSTR_GPIOARST_Pos: u32 = 0;
pub const RCC_IOPRSTR_GPIOARST_Msk: u32 = 1;
pub const RCC_IOPRSTR_GPIOARST: u32 = 1;
pub const RCC_IOPRSTR_GPIOBRST_Pos: u32 = 1;
pub const RCC_IOPRSTR_GPIOBRST_Msk: u32 = 2;
pub const RCC_IOPRSTR_GPIOBRST: u32 = 2;
pub const RCC_IOPRSTR_GPIOFRST_Pos: u32 = 5;
pub const RCC_IOPRSTR_GPIOFRST_Msk: u32 = 32;
pub const RCC_IOPRSTR_GPIOFRST: u32 = 32;
pub const RCC_AHBRSTR_DMARST_Pos: u32 = 0;
pub const RCC_AHBRSTR_DMARST_Msk: u32 = 1;
pub const RCC_AHBRSTR_DMARST: u32 = 1;
pub const RCC_AHBRSTR_CRCRST_Pos: u32 = 12;
pub const RCC_AHBRSTR_CRCRST_Msk: u32 = 4096;
pub const RCC_AHBRSTR_CRCRST: u32 = 4096;
pub const RCC_APBRSTR1_TIM3RST_Pos: u32 = 1;
pub const RCC_APBRSTR1_TIM3RST_Msk: u32 = 2;
pub const RCC_APBRSTR1_TIM3RST: u32 = 2;
pub const RCC_APBRSTR1_SPI2RST_Pos: u32 = 14;
pub const RCC_APBRSTR1_SPI2RST_Msk: u32 = 16384;
pub const RCC_APBRSTR1_SPI2RST: u32 = 16384;
pub const RCC_APBRSTR1_USART2RST_Pos: u32 = 17;
pub const RCC_APBRSTR1_USART2RST_Msk: u32 = 131072;
pub const RCC_APBRSTR1_USART2RST: u32 = 131072;
pub const RCC_APBRSTR1_I2CRST_Pos: u32 = 21;
pub const RCC_APBRSTR1_I2CRST_Msk: u32 = 2097152;
pub const RCC_APBRSTR1_I2CRST: u32 = 2097152;
pub const RCC_APBRSTR1_DBGRST_Pos: u32 = 27;
pub const RCC_APBRSTR1_DBGRST_Msk: u32 = 134217728;
pub const RCC_APBRSTR1_DBGRST: u32 = 134217728;
pub const RCC_APBRSTR1_PWRRST_Pos: u32 = 28;
pub const RCC_APBRSTR1_PWRRST_Msk: u32 = 268435456;
pub const RCC_APBRSTR1_PWRRST: u32 = 268435456;
pub const RCC_APBRSTR1_LPTIMRST_Pos: u32 = 31;
pub const RCC_APBRSTR1_LPTIMRST_Msk: u32 = 2147483648;
pub const RCC_APBRSTR1_LPTIMRST: u32 = 2147483648;
pub const RCC_APBRSTR2_SYSCFGRST_Pos: u32 = 0;
pub const RCC_APBRSTR2_SYSCFGRST_Msk: u32 = 1;
pub const RCC_APBRSTR2_SYSCFGRST: u32 = 1;
pub const RCC_APBRSTR2_TIM1RST_Pos: u32 = 11;
pub const RCC_APBRSTR2_TIM1RST_Msk: u32 = 2048;
pub const RCC_APBRSTR2_TIM1RST: u32 = 2048;
pub const RCC_APBRSTR2_SPI1RST_Pos: u32 = 12;
pub const RCC_APBRSTR2_SPI1RST_Msk: u32 = 4096;
pub const RCC_APBRSTR2_SPI1RST: u32 = 4096;
pub const RCC_APBRSTR2_USART1RST_Pos: u32 = 14;
pub const RCC_APBRSTR2_USART1RST_Msk: u32 = 16384;
pub const RCC_APBRSTR2_USART1RST: u32 = 16384;
pub const RCC_APBRSTR2_TIM14RST_Pos: u32 = 15;
pub const RCC_APBRSTR2_TIM14RST_Msk: u32 = 32768;
pub const RCC_APBRSTR2_TIM14RST: u32 = 32768;
pub const RCC_APBRSTR2_TIM16RST_Pos: u32 = 17;
pub const RCC_APBRSTR2_TIM16RST_Msk: u32 = 131072;
pub const RCC_APBRSTR2_TIM16RST: u32 = 131072;
pub const RCC_APBRSTR2_TIM17RST_Pos: u32 = 18;
pub const RCC_APBRSTR2_TIM17RST_Msk: u32 = 262144;
pub const RCC_APBRSTR2_TIM17RST: u32 = 262144;
pub const RCC_APBRSTR2_ADCRST_Pos: u32 = 20;
pub const RCC_APBRSTR2_ADCRST_Msk: u32 = 1048576;
pub const RCC_APBRSTR2_ADCRST: u32 = 1048576;
pub const RCC_APBRSTR2_COMP1RST_Pos: u32 = 21;
pub const RCC_APBRSTR2_COMP1RST_Msk: u32 = 2097152;
pub const RCC_APBRSTR2_COMP1RST: u32 = 2097152;
pub const RCC_APBRSTR2_COMP2RST_Pos: u32 = 22;
pub const RCC_APBRSTR2_COMP2RST_Msk: u32 = 4194304;
pub const RCC_APBRSTR2_COMP2RST: u32 = 4194304;
pub const RCC_APBRSTR2_LEDRST_Pos: u32 = 23;
pub const RCC_APBRSTR2_LEDRST_Msk: u32 = 8388608;
pub const RCC_APBRSTR2_LEDRST: u32 = 8388608;
pub const RCC_IOPENR_GPIOAEN_Pos: u32 = 0;
pub const RCC_IOPENR_GPIOAEN_Msk: u32 = 1;
pub const RCC_IOPENR_GPIOAEN: u32 = 1;
pub const RCC_IOPENR_GPIOBEN_Pos: u32 = 1;
pub const RCC_IOPENR_GPIOBEN_Msk: u32 = 2;
pub const RCC_IOPENR_GPIOBEN: u32 = 2;
pub const RCC_IOPENR_GPIOFEN_Pos: u32 = 5;
pub const RCC_IOPENR_GPIOFEN_Msk: u32 = 32;
pub const RCC_IOPENR_GPIOFEN: u32 = 32;
pub const RCC_AHBENR_DMAEN_Pos: u32 = 0;
pub const RCC_AHBENR_DMAEN_Msk: u32 = 1;
pub const RCC_AHBENR_DMAEN: u32 = 1;
pub const RCC_AHBENR_FLASHEN_Pos: u32 = 8;
pub const RCC_AHBENR_FLASHEN_Msk: u32 = 256;
pub const RCC_AHBENR_FLASHEN: u32 = 256;
pub const RCC_AHBENR_SRAMEN_Pos: u32 = 9;
pub const RCC_AHBENR_SRAMEN_Msk: u32 = 512;
pub const RCC_AHBENR_SRAMEN: u32 = 512;
pub const RCC_AHBENR_CRCEN_Pos: u32 = 12;
pub const RCC_AHBENR_CRCEN_Msk: u32 = 4096;
pub const RCC_AHBENR_CRCEN: u32 = 4096;
pub const RCC_APBENR1_TIM3EN_Pos: u32 = 1;
pub const RCC_APBENR1_TIM3EN_Msk: u32 = 2;
pub const RCC_APBENR1_TIM3EN: u32 = 2;
pub const RCC_APBENR1_RTCAPBEN_Pos: u32 = 10;
pub const RCC_APBENR1_RTCAPBEN_Msk: u32 = 1024;
pub const RCC_APBENR1_RTCAPBEN: u32 = 1024;
pub const RCC_APBENR1_WWDGEN_Pos: u32 = 11;
pub const RCC_APBENR1_WWDGEN_Msk: u32 = 2048;
pub const RCC_APBENR1_WWDGEN: u32 = 2048;
pub const RCC_APBENR1_SPI2EN_Pos: u32 = 14;
pub const RCC_APBENR1_SPI2EN_Msk: u32 = 16384;
pub const RCC_APBENR1_SPI2EN: u32 = 16384;
pub const RCC_APBENR1_USART2EN_Pos: u32 = 17;
pub const RCC_APBENR1_USART2EN_Msk: u32 = 131072;
pub const RCC_APBENR1_USART2EN: u32 = 131072;
pub const RCC_APBENR1_I2CEN_Pos: u32 = 21;
pub const RCC_APBENR1_I2CEN_Msk: u32 = 2097152;
pub const RCC_APBENR1_I2CEN: u32 = 2097152;
pub const RCC_APBENR1_DBGEN_Pos: u32 = 27;
pub const RCC_APBENR1_DBGEN_Msk: u32 = 134217728;
pub const RCC_APBENR1_DBGEN: u32 = 134217728;
pub const RCC_APBENR1_PWREN_Pos: u32 = 28;
pub const RCC_APBENR1_PWREN_Msk: u32 = 268435456;
pub const RCC_APBENR1_PWREN: u32 = 268435456;
pub const RCC_APBENR1_LPTIMEN_Pos: u32 = 31;
pub const RCC_APBENR1_LPTIMEN_Msk: u32 = 2147483648;
pub const RCC_APBENR1_LPTIMEN: u32 = 2147483648;
pub const RCC_APBENR2_SYSCFGEN_Pos: u32 = 0;
pub const RCC_APBENR2_SYSCFGEN_Msk: u32 = 1;
pub const RCC_APBENR2_SYSCFGEN: u32 = 1;
pub const RCC_APBENR2_TIM1EN_Pos: u32 = 11;
pub const RCC_APBENR2_TIM1EN_Msk: u32 = 2048;
pub const RCC_APBENR2_TIM1EN: u32 = 2048;
pub const RCC_APBENR2_SPI1EN_Pos: u32 = 12;
pub const RCC_APBENR2_SPI1EN_Msk: u32 = 4096;
pub const RCC_APBENR2_SPI1EN: u32 = 4096;
pub const RCC_APBENR2_USART1EN_Pos: u32 = 14;
pub const RCC_APBENR2_USART1EN_Msk: u32 = 16384;
pub const RCC_APBENR2_USART1EN: u32 = 16384;
pub const RCC_APBENR2_TIM14EN_Pos: u32 = 15;
pub const RCC_APBENR2_TIM14EN_Msk: u32 = 32768;
pub const RCC_APBENR2_TIM14EN: u32 = 32768;
pub const RCC_APBENR2_TIM16EN_Pos: u32 = 17;
pub const RCC_APBENR2_TIM16EN_Msk: u32 = 131072;
pub const RCC_APBENR2_TIM16EN: u32 = 131072;
pub const RCC_APBENR2_TIM17EN_Pos: u32 = 18;
pub const RCC_APBENR2_TIM17EN_Msk: u32 = 262144;
pub const RCC_APBENR2_TIM17EN: u32 = 262144;
pub const RCC_APBENR2_ADCEN_Pos: u32 = 20;
pub const RCC_APBENR2_ADCEN_Msk: u32 = 1048576;
pub const RCC_APBENR2_ADCEN: u32 = 1048576;
pub const RCC_APBENR2_COMP1EN_Pos: u32 = 21;
pub const RCC_APBENR2_COMP1EN_Msk: u32 = 2097152;
pub const RCC_APBENR2_COMP1EN: u32 = 2097152;
pub const RCC_APBENR2_COMP2EN_Pos: u32 = 22;
pub const RCC_APBENR2_COMP2EN_Msk: u32 = 4194304;
pub const RCC_APBENR2_COMP2EN: u32 = 4194304;
pub const RCC_APBENR2_LEDEN_Pos: u32 = 23;
pub const RCC_APBENR2_LEDEN_Msk: u32 = 8388608;
pub const RCC_APBENR2_LEDEN: u32 = 8388608;
pub const RCC_CCIPR_PVDSEL_Pos: u32 = 7;
pub const RCC_CCIPR_PVDSEL_Msk: u32 = 128;
pub const RCC_CCIPR_PVDSEL: u32 = 128;
pub const RCC_CCIPR_COMP1SEL_Pos: u32 = 8;
pub const RCC_CCIPR_COMP1SEL_Msk: u32 = 256;
pub const RCC_CCIPR_COMP1SEL: u32 = 256;
pub const RCC_CCIPR_COMP2SEL_Pos: u32 = 9;
pub const RCC_CCIPR_COMP2SEL_Msk: u32 = 512;
pub const RCC_CCIPR_COMP2SEL: u32 = 512;
pub const RCC_CCIPR_LPTIMSEL_Pos: u32 = 18;
pub const RCC_CCIPR_LPTIMSEL_Msk: u32 = 786432;
pub const RCC_CCIPR_LPTIMSEL: u32 = 786432;
pub const RCC_CCIPR_LPTIMSEL_0: u32 = 262144;
pub const RCC_CCIPR_LPTIMSEL_1: u32 = 524288;
pub const RCC_BDCR_LSEON_Pos: u32 = 0;
pub const RCC_BDCR_LSEON_Msk: u32 = 1;
pub const RCC_BDCR_LSEON: u32 = 1;
pub const RCC_BDCR_LSERDY_Pos: u32 = 1;
pub const RCC_BDCR_LSERDY_Msk: u32 = 2;
pub const RCC_BDCR_LSERDY: u32 = 2;
pub const RCC_BDCR_LSEBYP_Pos: u32 = 2;
pub const RCC_BDCR_LSEBYP_Msk: u32 = 4;
pub const RCC_BDCR_LSEBYP: u32 = 4;
pub const RCC_BDCR_LSECSSON_Pos: u32 = 5;
pub const RCC_BDCR_LSECSSON_Msk: u32 = 32;
pub const RCC_BDCR_LSECSSON: u32 = 32;
pub const RCC_BDCR_LSECSSD_Pos: u32 = 6;
pub const RCC_BDCR_LSECSSD_Msk: u32 = 64;
pub const RCC_BDCR_LSECSSD: u32 = 64;
pub const RCC_BDCR_RTCSEL_Pos: u32 = 8;
pub const RCC_BDCR_RTCSEL_Msk: u32 = 768;
pub const RCC_BDCR_RTCSEL: u32 = 768;
pub const RCC_BDCR_RTCSEL_0: u32 = 256;
pub const RCC_BDCR_RTCSEL_1: u32 = 512;
pub const RCC_BDCR_RTCEN_Pos: u32 = 15;
pub const RCC_BDCR_RTCEN_Msk: u32 = 32768;
pub const RCC_BDCR_RTCEN: u32 = 32768;
pub const RCC_BDCR_BDRST_Pos: u32 = 16;
pub const RCC_BDCR_BDRST_Msk: u32 = 65536;
pub const RCC_BDCR_BDRST: u32 = 65536;
pub const RCC_BDCR_LSCOEN_Pos: u32 = 24;
pub const RCC_BDCR_LSCOEN_Msk: u32 = 16777216;
pub const RCC_BDCR_LSCOEN: u32 = 16777216;
pub const RCC_BDCR_LSCOSEL_Pos: u32 = 25;
pub const RCC_BDCR_LSCOSEL_Msk: u32 = 33554432;
pub const RCC_BDCR_LSCOSEL: u32 = 33554432;
pub const RCC_CSR_LSION_Pos: u32 = 0;
pub const RCC_CSR_LSION_Msk: u32 = 1;
pub const RCC_CSR_LSION: u32 = 1;
pub const RCC_CSR_LSIRDY_Pos: u32 = 1;
pub const RCC_CSR_LSIRDY_Msk: u32 = 2;
pub const RCC_CSR_LSIRDY: u32 = 2;
pub const RCC_CSR_NRST_FLTDIS_Pos: u32 = 8;
pub const RCC_CSR_NRST_FLTDIS_Msk: u32 = 256;
pub const RCC_CSR_NRST_FLTDIS: u32 = 256;
pub const RCC_CSR_RMVF_Pos: u32 = 23;
pub const RCC_CSR_RMVF_Msk: u32 = 8388608;
pub const RCC_CSR_RMVF: u32 = 8388608;
pub const RCC_CSR_OBLRSTF_Pos: u32 = 25;
pub const RCC_CSR_OBLRSTF_Msk: u32 = 33554432;
pub const RCC_CSR_OBLRSTF: u32 = 33554432;
pub const RCC_CSR_PINRSTF_Pos: u32 = 26;
pub const RCC_CSR_PINRSTF_Msk: u32 = 67108864;
pub const RCC_CSR_PINRSTF: u32 = 67108864;
pub const RCC_CSR_PWRRSTF_Pos: u32 = 27;
pub const RCC_CSR_PWRRSTF_Msk: u32 = 134217728;
pub const RCC_CSR_PWRRSTF: u32 = 134217728;
pub const RCC_CSR_SFTRSTF_Pos: u32 = 28;
pub const RCC_CSR_SFTRSTF_Msk: u32 = 268435456;
pub const RCC_CSR_SFTRSTF: u32 = 268435456;
pub const RCC_CSR_IWDGRSTF_Pos: u32 = 29;
pub const RCC_CSR_IWDGRSTF_Msk: u32 = 536870912;
pub const RCC_CSR_IWDGRSTF: u32 = 536870912;
pub const RCC_CSR_WWDGRSTF_Pos: u32 = 30;
pub const RCC_CSR_WWDGRSTF_Msk: u32 = 1073741824;
pub const RCC_CSR_WWDGRSTF: u32 = 1073741824;
pub const RTC_CRH_SECIE_Pos: u32 = 0;
pub const RTC_CRH_SECIE_Msk: u32 = 1;
pub const RTC_CRH_SECIE: u32 = 1;
pub const RTC_CRH_ALRIE_Pos: u32 = 1;
pub const RTC_CRH_ALRIE_Msk: u32 = 2;
pub const RTC_CRH_ALRIE: u32 = 2;
pub const RTC_CRH_OWIE_Pos: u32 = 2;
pub const RTC_CRH_OWIE_Msk: u32 = 4;
pub const RTC_CRH_OWIE: u32 = 4;
pub const RTC_CRL_SECF_Pos: u32 = 0;
pub const RTC_CRL_SECF_Msk: u32 = 1;
pub const RTC_CRL_SECF: u32 = 1;
pub const RTC_CRL_ALRF_Pos: u32 = 1;
pub const RTC_CRL_ALRF_Msk: u32 = 2;
pub const RTC_CRL_ALRF: u32 = 2;
pub const RTC_CRL_OWF_Pos: u32 = 2;
pub const RTC_CRL_OWF_Msk: u32 = 4;
pub const RTC_CRL_OWF: u32 = 4;
pub const RTC_CRL_RSF_Pos: u32 = 3;
pub const RTC_CRL_RSF_Msk: u32 = 8;
pub const RTC_CRL_RSF: u32 = 8;
pub const RTC_CRL_CNF_Pos: u32 = 4;
pub const RTC_CRL_CNF_Msk: u32 = 16;
pub const RTC_CRL_CNF: u32 = 16;
pub const RTC_CRL_RTOFF_Pos: u32 = 5;
pub const RTC_CRL_RTOFF_Msk: u32 = 32;
pub const RTC_CRL_RTOFF: u32 = 32;
pub const RTC_PRLH_PRL_Pos: u32 = 0;
pub const RTC_PRLH_PRL_Msk: u32 = 15;
pub const RTC_PRLH_PRL: u32 = 15;
pub const RTC_PRLL_PRL_Pos: u32 = 0;
pub const RTC_PRLL_PRL_Msk: u32 = 65535;
pub const RTC_PRLL_PRL: u32 = 65535;
pub const RTC_DIVH_RTC_DIV_Pos: u32 = 0;
pub const RTC_DIVH_RTC_DIV_Msk: u32 = 15;
pub const RTC_DIVH_RTC_DIV: u32 = 15;
pub const RTC_DIVL_RTC_DIV_Pos: u32 = 0;
pub const RTC_DIVL_RTC_DIV_Msk: u32 = 65535;
pub const RTC_DIVL_RTC_DIV: u32 = 65535;
pub const RTC_CNTH_RTC_CNT_Pos: u32 = 0;
pub const RTC_CNTH_RTC_CNT_Msk: u32 = 65535;
pub const RTC_CNTH_RTC_CNT: u32 = 65535;
pub const RTC_CNTL_RTC_CNT_Pos: u32 = 0;
pub const RTC_CNTL_RTC_CNT_Msk: u32 = 65535;
pub const RTC_CNTL_RTC_CNT: u32 = 65535;
pub const RTC_ALRH_RTC_ALR_Pos: u32 = 0;
pub const RTC_ALRH_RTC_ALR_Msk: u32 = 65535;
pub const RTC_ALRH_RTC_ALR: u32 = 65535;
pub const RTC_ALRL_RTC_ALR_Pos: u32 = 0;
pub const RTC_ALRL_RTC_ALR_Msk: u32 = 65535;
pub const RTC_ALRL_RTC_ALR: u32 = 65535;
pub const BKP_RTCCR_CAL_Pos: u32 = 0;
pub const BKP_RTCCR_CAL_Msk: u32 = 127;
pub const BKP_RTCCR_CAL: u32 = 127;
pub const BKP_RTCCR_CAL_0: u32 = 1;
pub const BKP_RTCCR_CAL_1: u32 = 2;
pub const BKP_RTCCR_CAL_2: u32 = 4;
pub const BKP_RTCCR_CAL_3: u32 = 8;
pub const BKP_RTCCR_CAL_4: u32 = 16;
pub const BKP_RTCCR_CAL_5: u32 = 32;
pub const BKP_RTCCR_CAL_6: u32 = 64;
pub const BKP_RTCCR_CCO_Pos: u32 = 7;
pub const BKP_RTCCR_CCO_Msk: u32 = 128;
pub const BKP_RTCCR_CCO: u32 = 128;
pub const BKP_RTCCR_ASOE_Pos: u32 = 8;
pub const BKP_RTCCR_ASOE_Msk: u32 = 256;
pub const BKP_RTCCR_ASOE: u32 = 256;
pub const BKP_RTCCR_ASOS_Pos: u32 = 9;
pub const BKP_RTCCR_ASOS_Msk: u32 = 512;
pub const BKP_RTCCR_ASOS: u32 = 512;
pub const SPI_CR1_CPHA_Pos: u32 = 0;
pub const SPI_CR1_CPHA_Msk: u32 = 1;
pub const SPI_CR1_CPHA: u32 = 1;
pub const SPI_CR1_CPOL_Pos: u32 = 1;
pub const SPI_CR1_CPOL_Msk: u32 = 2;
pub const SPI_CR1_CPOL: u32 = 2;
pub const SPI_CR1_MSTR_Pos: u32 = 2;
pub const SPI_CR1_MSTR_Msk: u32 = 4;
pub const SPI_CR1_MSTR: u32 = 4;
pub const SPI_CR1_BR_Pos: u32 = 3;
pub const SPI_CR1_BR_Msk: u32 = 56;
pub const SPI_CR1_BR: u32 = 56;
pub const SPI_CR1_BR_0: u32 = 8;
pub const SPI_CR1_BR_1: u32 = 16;
pub const SPI_CR1_BR_2: u32 = 32;
pub const SPI_CR1_SPE_Pos: u32 = 6;
pub const SPI_CR1_SPE_Msk: u32 = 64;
pub const SPI_CR1_SPE: u32 = 64;
pub const SPI_CR1_LSBFIRST_Pos: u32 = 7;
pub const SPI_CR1_LSBFIRST_Msk: u32 = 128;
pub const SPI_CR1_LSBFIRST: u32 = 128;
pub const SPI_CR1_SSI_Pos: u32 = 8;
pub const SPI_CR1_SSI_Msk: u32 = 256;
pub const SPI_CR1_SSI: u32 = 256;
pub const SPI_CR1_SSM_Pos: u32 = 9;
pub const SPI_CR1_SSM_Msk: u32 = 512;
pub const SPI_CR1_SSM: u32 = 512;
pub const SPI_CR1_RXONLY_Pos: u32 = 10;
pub const SPI_CR1_RXONLY_Msk: u32 = 1024;
pub const SPI_CR1_RXONLY: u32 = 1024;
pub const SPI_CR1_BIDIOE_Pos: u32 = 14;
pub const SPI_CR1_BIDIOE_Msk: u32 = 16384;
pub const SPI_CR1_BIDIOE: u32 = 16384;
pub const SPI_CR1_BIDIMODE_Pos: u32 = 15;
pub const SPI_CR1_BIDIMODE_Msk: u32 = 32768;
pub const SPI_CR1_BIDIMODE: u32 = 32768;
pub const SPI_CR2_RXDMAEN_Pos: u32 = 0;
pub const SPI_CR2_RXDMAEN_Msk: u32 = 1;
pub const SPI_CR2_RXDMAEN: u32 = 1;
pub const SPI_CR2_TXDMAEN_Pos: u32 = 1;
pub const SPI_CR2_TXDMAEN_Msk: u32 = 2;
pub const SPI_CR2_TXDMAEN: u32 = 2;
pub const SPI_CR2_SSOE_Pos: u32 = 2;
pub const SPI_CR2_SSOE_Msk: u32 = 4;
pub const SPI_CR2_SSOE: u32 = 4;
pub const SPI_CR2_ERRIE_Pos: u32 = 5;
pub const SPI_CR2_ERRIE_Msk: u32 = 32;
pub const SPI_CR2_ERRIE: u32 = 32;
pub const SPI_CR2_RXNEIE_Pos: u32 = 6;
pub const SPI_CR2_RXNEIE_Msk: u32 = 64;
pub const SPI_CR2_RXNEIE: u32 = 64;
pub const SPI_CR2_TXEIE_Pos: u32 = 7;
pub const SPI_CR2_TXEIE_Msk: u32 = 128;
pub const SPI_CR2_TXEIE: u32 = 128;
pub const SPI_CR2_DS_Pos: u32 = 11;
pub const SPI_CR2_DS_Msk: u32 = 2048;
pub const SPI_CR2_DS: u32 = 2048;
pub const SPI_CR2_FRXTH_Pos: u32 = 12;
pub const SPI_CR2_FRXTH_Msk: u32 = 4096;
pub const SPI_CR2_FRXTH: u32 = 4096;
pub const SPI_CR2_LDMA_RX_Pos: u32 = 13;
pub const SPI_CR2_LDMA_RX_Msk: u32 = 8192;
pub const SPI_CR2_LDMA_RX: u32 = 8192;
pub const SPI_CR2_LDMA_TX_Pos: u32 = 14;
pub const SPI_CR2_LDMA_TX_Msk: u32 = 16384;
pub const SPI_CR2_LDMA_TX: u32 = 16384;
pub const SPI_CR2_SLVFM_Pos: u32 = 15;
pub const SPI_CR2_SLVFM_Msk: u32 = 32768;
pub const SPI_CR2_SLVFM: u32 = 32768;
pub const SPI_SR_RXNE_Pos: u32 = 0;
pub const SPI_SR_RXNE_Msk: u32 = 1;
pub const SPI_SR_RXNE: u32 = 1;
pub const SPI_SR_TXE_Pos: u32 = 1;
pub const SPI_SR_TXE_Msk: u32 = 2;
pub const SPI_SR_TXE: u32 = 2;
pub const SPI_SR_MODF_Pos: u32 = 5;
pub const SPI_SR_MODF_Msk: u32 = 32;
pub const SPI_SR_MODF: u32 = 32;
pub const SPI_SR_OVR_Pos: u32 = 6;
pub const SPI_SR_OVR_Msk: u32 = 64;
pub const SPI_SR_OVR: u32 = 64;
pub const SPI_SR_BSY_Pos: u32 = 7;
pub const SPI_SR_BSY_Msk: u32 = 128;
pub const SPI_SR_BSY: u32 = 128;
pub const SPI_SR_FRLVL_Pos: u32 = 9;
pub const SPI_SR_FRLVL_Msk: u32 = 1536;
pub const SPI_SR_FRLVL: u32 = 1536;
pub const SPI_SR_FRLVL_0: u32 = 512;
pub const SPI_SR_FRLVL_1: u32 = 1024;
pub const SPI_SR_FTLVL_Pos: u32 = 11;
pub const SPI_SR_FTLVL_Msk: u32 = 6144;
pub const SPI_SR_FTLVL: u32 = 6144;
pub const SPI_SR_FTLVL_0: u32 = 2048;
pub const SPI_SR_FTLVL_1: u32 = 4096;
pub const SPI_DR_DR_Pos: u32 = 0;
pub const SPI_DR_DR_Msk: u32 = 65535;
pub const SPI_DR_DR: u32 = 65535;
pub const SYSCFG_CFGR1_MEM_MODE_Pos: u32 = 0;
pub const SYSCFG_CFGR1_MEM_MODE_Msk: u32 = 3;
pub const SYSCFG_CFGR1_MEM_MODE: u32 = 3;
pub const SYSCFG_CFGR1_MEM_MODE_0: u32 = 1;
pub const SYSCFG_CFGR1_MEM_MODE_1: u32 = 2;
pub const SYSCFG_CFGR1_I2C_PA2_ANF_Pos: u32 = 18;
pub const SYSCFG_CFGR1_I2C_PA2_ANF_Msk: u32 = 262144;
pub const SYSCFG_CFGR1_I2C_PA2_ANF: u32 = 262144;
pub const SYSCFG_CFGR1_I2C_PA3_ANF_Pos: u32 = 19;
pub const SYSCFG_CFGR1_I2C_PA3_ANF_Msk: u32 = 524288;
pub const SYSCFG_CFGR1_I2C_PA3_ANF: u32 = 524288;
pub const SYSCFG_CFGR1_I2C_PA7_ANF_Pos: u32 = 20;
pub const SYSCFG_CFGR1_I2C_PA7_ANF_Msk: u32 = 1048576;
pub const SYSCFG_CFGR1_I2C_PA7_ANF: u32 = 1048576;
pub const SYSCFG_CFGR1_I2C_PA8_ANF_Pos: u32 = 21;
pub const SYSCFG_CFGR1_I2C_PA8_ANF_Msk: u32 = 2097152;
pub const SYSCFG_CFGR1_I2C_PA8_ANF: u32 = 2097152;
pub const SYSCFG_CFGR1_I2C_PA9_ANF_Pos: u32 = 22;
pub const SYSCFG_CFGR1_I2C_PA9_ANF_Msk: u32 = 4194304;
pub const SYSCFG_CFGR1_I2C_PA9_ANF: u32 = 4194304;
pub const SYSCFG_CFGR1_I2C_PA10_ANF_Pos: u32 = 23;
pub const SYSCFG_CFGR1_I2C_PA10_ANF_Msk: u32 = 8388608;
pub const SYSCFG_CFGR1_I2C_PA10_ANF: u32 = 8388608;
pub const SYSCFG_CFGR1_I2C_PA11_ANF_Pos: u32 = 24;
pub const SYSCFG_CFGR1_I2C_PA11_ANF_Msk: u32 = 16777216;
pub const SYSCFG_CFGR1_I2C_PA11_ANF: u32 = 16777216;
pub const SYSCFG_CFGR1_I2C_PA12_ANF_Pos: u32 = 25;
pub const SYSCFG_CFGR1_I2C_PA12_ANF_Msk: u32 = 33554432;
pub const SYSCFG_CFGR1_I2C_PA12_ANF: u32 = 33554432;
pub const SYSCFG_CFGR1_I2C_PB6_ANF_Pos: u32 = 26;
pub const SYSCFG_CFGR1_I2C_PB6_ANF_Msk: u32 = 67108864;
pub const SYSCFG_CFGR1_I2C_PB6_ANF: u32 = 67108864;
pub const SYSCFG_CFGR1_I2C_PB7_ANF_Pos: u32 = 27;
pub const SYSCFG_CFGR1_I2C_PB7_ANF_Msk: u32 = 134217728;
pub const SYSCFG_CFGR1_I2C_PB7_ANF: u32 = 134217728;
pub const SYSCFG_CFGR1_I2C_PB8_ANF_Pos: u32 = 28;
pub const SYSCFG_CFGR1_I2C_PB8_ANF_Msk: u32 = 268435456;
pub const SYSCFG_CFGR1_I2C_PB8_ANF: u32 = 268435456;
pub const SYSCFG_CFGR1_I2C_PF0_ANF_Pos: u32 = 29;
pub const SYSCFG_CFGR1_I2C_PF0_ANF_Msk: u32 = 536870912;
pub const SYSCFG_CFGR1_I2C_PF0_ANF: u32 = 536870912;
pub const SYSCFG_CFGR1_I2C_PF1_ANF_Pos: u32 = 30;
pub const SYSCFG_CFGR1_I2C_PF1_ANF_Msk: u32 = 1073741824;
pub const SYSCFG_CFGR1_I2C_PF1_ANF: u32 = 1073741824;
pub const SYSCFG_CFGR2_LOCKUP_LOCK_Pos: u32 = 0;
pub const SYSCFG_CFGR2_LOCKUP_LOCK_Msk: u32 = 1;
pub const SYSCFG_CFGR2_LOCKUP_LOCK: u32 = 1;
pub const SYSCFG_CFGR2_PVD_LOCK_Pos: u32 = 2;
pub const SYSCFG_CFGR2_PVD_LOCK_Msk: u32 = 4;
pub const SYSCFG_CFGR2_PVD_LOCK: u32 = 4;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM1_Pos: u32 = 3;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM1_Msk: u32 = 8;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM1: u32 = 8;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM1_Pos: u32 = 4;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM1_Msk: u32 = 16;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM1: u32 = 16;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM16_Pos: u32 = 5;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM16_Msk: u32 = 32;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM16: u32 = 32;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM16_Pos: u32 = 6;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM16_Msk: u32 = 64;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM16: u32 = 64;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM17_Pos: u32 = 7;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM17_Msk: u32 = 128;
pub const SYSCFG_CFGR2_COMP1_BRK_TIM17: u32 = 128;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM17_Pos: u32 = 8;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM17_Msk: u32 = 256;
pub const SYSCFG_CFGR2_COMP2_BRK_TIM17: u32 = 256;
pub const SYSCFG_CFGR2_ETR_SRC_TIM1_Pos: u32 = 9;
pub const SYSCFG_CFGR2_ETR_SRC_TIM1_Msk: u32 = 1536;
pub const SYSCFG_CFGR2_ETR_SRC_TIM1: u32 = 1536;
pub const SYSCFG_CFGR2_ETR_SRC_TIM1_0: u32 = 512;
pub const SYSCFG_CFGR2_ETR_SRC_TIM1_1: u32 = 1024;
pub const SYSCFG_CFGR3_DMA1_MAP_Pos: u32 = 0;
pub const SYSCFG_CFGR3_DMA1_MAP_Msk: u32 = 31;
pub const SYSCFG_CFGR3_DMA1_MAP: u32 = 31;
pub const SYSCFG_CFGR3_DMA1_MAP_0: u32 = 1;
pub const SYSCFG_CFGR3_DMA1_MAP_1: u32 = 2;
pub const SYSCFG_CFGR3_DMA1_MAP_2: u32 = 4;
pub const SYSCFG_CFGR3_DMA1_MAP_3: u32 = 8;
pub const SYSCFG_CFGR3_DMA1_MAP_4: u32 = 16;
pub const SYSCFG_CFGR3_DMA1_ACKLVL_Pos: u32 = 5;
pub const SYSCFG_CFGR3_DMA1_ACKLVL_Msk: u32 = 32;
pub const SYSCFG_CFGR3_DMA1_ACKLVL: u32 = 32;
pub const SYSCFG_CFGR3_DMA2_MAP_Pos: u32 = 8;
pub const SYSCFG_CFGR3_DMA2_MAP_Msk: u32 = 7936;
pub const SYSCFG_CFGR3_DMA2_MAP: u32 = 7936;
pub const SYSCFG_CFGR3_DMA2_MAP_0: u32 = 256;
pub const SYSCFG_CFGR3_DMA2_MAP_1: u32 = 512;
pub const SYSCFG_CFGR3_DMA2_MAP_2: u32 = 1024;
pub const SYSCFG_CFGR3_DMA2_MAP_3: u32 = 2048;
pub const SYSCFG_CFGR3_DMA2_MAP_4: u32 = 4096;
pub const SYSCFG_CFGR3_DMA2_ACKLVL_Pos: u32 = 13;
pub const SYSCFG_CFGR3_DMA2_ACKLVL_Msk: u32 = 8192;
pub const SYSCFG_CFGR3_DMA2_ACKLVL: u32 = 8192;
pub const SYSCFG_CFGR3_DMA3_MAP_Pos: u32 = 16;
pub const SYSCFG_CFGR3_DMA3_MAP_Msk: u32 = 2031616;
pub const SYSCFG_CFGR3_DMA3_MAP: u32 = 2031616;
pub const SYSCFG_CFGR3_DMA3_MAP_0: u32 = 65536;
pub const SYSCFG_CFGR3_DMA3_MAP_1: u32 = 131072;
pub const SYSCFG_CFGR3_DMA3_MAP_2: u32 = 262144;
pub const SYSCFG_CFGR3_DMA3_MAP_3: u32 = 524288;
pub const SYSCFG_CFGR3_DMA3_MAP_4: u32 = 1048576;
pub const SYSCFG_CFGR3_DMA3_ACKLVL_Pos: u32 = 21;
pub const SYSCFG_CFGR3_DMA3_ACKLVL_Msk: u32 = 2097152;
pub const SYSCFG_CFGR3_DMA3_ACKLVL: u32 = 2097152;
pub const TIM_CR1_CEN_Pos: u32 = 0;
pub const TIM_CR1_CEN_Msk: u32 = 1;
pub const TIM_CR1_CEN: u32 = 1;
pub const TIM_CR1_UDIS_Pos: u32 = 1;
pub const TIM_CR1_UDIS_Msk: u32 = 2;
pub const TIM_CR1_UDIS: u32 = 2;
pub const TIM_CR1_URS_Pos: u32 = 2;
pub const TIM_CR1_URS_Msk: u32 = 4;
pub const TIM_CR1_URS: u32 = 4;
pub const TIM_CR1_OPM_Pos: u32 = 3;
pub const TIM_CR1_OPM_Msk: u32 = 8;
pub const TIM_CR1_OPM: u32 = 8;
pub const TIM_CR1_DIR_Pos: u32 = 4;
pub const TIM_CR1_DIR_Msk: u32 = 16;
pub const TIM_CR1_DIR: u32 = 16;
pub const TIM_CR1_CMS_Pos: u32 = 5;
pub const TIM_CR1_CMS_Msk: u32 = 96;
pub const TIM_CR1_CMS: u32 = 96;
pub const TIM_CR1_CMS_0: u32 = 32;
pub const TIM_CR1_CMS_1: u32 = 64;
pub const TIM_CR1_ARPE_Pos: u32 = 7;
pub const TIM_CR1_ARPE_Msk: u32 = 128;
pub const TIM_CR1_ARPE: u32 = 128;
pub const TIM_CR1_CKD_Pos: u32 = 8;
pub const TIM_CR1_CKD_Msk: u32 = 768;
pub const TIM_CR1_CKD: u32 = 768;
pub const TIM_CR1_CKD_0: u32 = 256;
pub const TIM_CR1_CKD_1: u32 = 512;
pub const TIM_CR2_CCPC_Pos: u32 = 0;
pub const TIM_CR2_CCPC_Msk: u32 = 1;
pub const TIM_CR2_CCPC: u32 = 1;
pub const TIM_CR2_CCUS_Pos: u32 = 2;
pub const TIM_CR2_CCUS_Msk: u32 = 4;
pub const TIM_CR2_CCUS: u32 = 4;
pub const TIM_CR2_CCDS_Pos: u32 = 3;
pub const TIM_CR2_CCDS_Msk: u32 = 8;
pub const TIM_CR2_CCDS: u32 = 8;
pub const TIM_CR2_MMS_Pos: u32 = 4;
pub const TIM_CR2_MMS_Msk: u32 = 112;
pub const TIM_CR2_MMS: u32 = 112;
pub const TIM_CR2_MMS_0: u32 = 16;
pub const TIM_CR2_MMS_1: u32 = 32;
pub const TIM_CR2_MMS_2: u32 = 64;
pub const TIM_CR2_TI1S_Pos: u32 = 7;
pub const TIM_CR2_TI1S_Msk: u32 = 128;
pub const TIM_CR2_TI1S: u32 = 128;
pub const TIM_CR2_OIS1_Pos: u32 = 8;
pub const TIM_CR2_OIS1_Msk: u32 = 256;
pub const TIM_CR2_OIS1: u32 = 256;
pub const TIM_CR2_OIS1N_Pos: u32 = 9;
pub const TIM_CR2_OIS1N_Msk: u32 = 512;
pub const TIM_CR2_OIS1N: u32 = 512;
pub const TIM_CR2_OIS2_Pos: u32 = 10;
pub const TIM_CR2_OIS2_Msk: u32 = 1024;
pub const TIM_CR2_OIS2: u32 = 1024;
pub const TIM_CR2_OIS2N_Pos: u32 = 11;
pub const TIM_CR2_OIS2N_Msk: u32 = 2048;
pub const TIM_CR2_OIS2N: u32 = 2048;
pub const TIM_CR2_OIS3_Pos: u32 = 12;
pub const TIM_CR2_OIS3_Msk: u32 = 4096;
pub const TIM_CR2_OIS3: u32 = 4096;
pub const TIM_CR2_OIS3N_Pos: u32 = 13;
pub const TIM_CR2_OIS3N_Msk: u32 = 8192;
pub const TIM_CR2_OIS3N: u32 = 8192;
pub const TIM_CR2_OIS4_Pos: u32 = 14;
pub const TIM_CR2_OIS4_Msk: u32 = 16384;
pub const TIM_CR2_OIS4: u32 = 16384;
pub const TIM_SMCR_SMS_Pos: u32 = 0;
pub const TIM_SMCR_SMS_Msk: u32 = 7;
pub const TIM_SMCR_SMS: u32 = 7;
pub const TIM_SMCR_SMS_0: u32 = 1;
pub const TIM_SMCR_SMS_1: u32 = 2;
pub const TIM_SMCR_SMS_2: u32 = 4;
pub const TIM_SMCR_OCCS_Pos: u32 = 3;
pub const TIM_SMCR_OCCS_Msk: u32 = 8;
pub const TIM_SMCR_OCCS: u32 = 8;
pub const TIM_SMCR_TS_Pos: u32 = 4;
pub const TIM_SMCR_TS_Msk: u32 = 112;
pub const TIM_SMCR_TS: u32 = 112;
pub const TIM_SMCR_TS_0: u32 = 16;
pub const TIM_SMCR_TS_1: u32 = 32;
pub const TIM_SMCR_TS_2: u32 = 64;
pub const TIM_SMCR_MSM_Pos: u32 = 7;
pub const TIM_SMCR_MSM_Msk: u32 = 128;
pub const TIM_SMCR_MSM: u32 = 128;
pub const TIM_SMCR_ETF_Pos: u32 = 8;
pub const TIM_SMCR_ETF_Msk: u32 = 3840;
pub const TIM_SMCR_ETF: u32 = 3840;
pub const TIM_SMCR_ETF_0: u32 = 256;
pub const TIM_SMCR_ETF_1: u32 = 512;
pub const TIM_SMCR_ETF_2: u32 = 1024;
pub const TIM_SMCR_ETF_3: u32 = 2048;
pub const TIM_SMCR_ETPS_Pos: u32 = 12;
pub const TIM_SMCR_ETPS_Msk: u32 = 12288;
pub const TIM_SMCR_ETPS: u32 = 12288;
pub const TIM_SMCR_ETPS_0: u32 = 4096;
pub const TIM_SMCR_ETPS_1: u32 = 8192;
pub const TIM_SMCR_ECE_Pos: u32 = 14;
pub const TIM_SMCR_ECE_Msk: u32 = 16384;
pub const TIM_SMCR_ECE: u32 = 16384;
pub const TIM_SMCR_ETP_Pos: u32 = 15;
pub const TIM_SMCR_ETP_Msk: u32 = 32768;
pub const TIM_SMCR_ETP: u32 = 32768;
pub const TIM_DIER_UIE_Pos: u32 = 0;
pub const TIM_DIER_UIE_Msk: u32 = 1;
pub const TIM_DIER_UIE: u32 = 1;
pub const TIM_DIER_CC1IE_Pos: u32 = 1;
pub const TIM_DIER_CC1IE_Msk: u32 = 2;
pub const TIM_DIER_CC1IE: u32 = 2;
pub const TIM_DIER_CC2IE_Pos: u32 = 2;
pub const TIM_DIER_CC2IE_Msk: u32 = 4;
pub const TIM_DIER_CC2IE: u32 = 4;
pub const TIM_DIER_CC3IE_Pos: u32 = 3;
pub const TIM_DIER_CC3IE_Msk: u32 = 8;
pub const TIM_DIER_CC3IE: u32 = 8;
pub const TIM_DIER_CC4IE_Pos: u32 = 4;
pub const TIM_DIER_CC4IE_Msk: u32 = 16;
pub const TIM_DIER_CC4IE: u32 = 16;
pub const TIM_DIER_COMIE_Pos: u32 = 5;
pub const TIM_DIER_COMIE_Msk: u32 = 32;
pub const TIM_DIER_COMIE: u32 = 32;
pub const TIM_DIER_TIE_Pos: u32 = 6;
pub const TIM_DIER_TIE_Msk: u32 = 64;
pub const TIM_DIER_TIE: u32 = 64;
pub const TIM_DIER_BIE_Pos: u32 = 7;
pub const TIM_DIER_BIE_Msk: u32 = 128;
pub const TIM_DIER_BIE: u32 = 128;
pub const TIM_DIER_UDE_Pos: u32 = 8;
pub const TIM_DIER_UDE_Msk: u32 = 256;
pub const TIM_DIER_UDE: u32 = 256;
pub const TIM_DIER_CC1DE_Pos: u32 = 9;
pub const TIM_DIER_CC1DE_Msk: u32 = 512;
pub const TIM_DIER_CC1DE: u32 = 512;
pub const TIM_DIER_CC2DE_Pos: u32 = 10;
pub const TIM_DIER_CC2DE_Msk: u32 = 1024;
pub const TIM_DIER_CC2DE: u32 = 1024;
pub const TIM_DIER_CC3DE_Pos: u32 = 11;
pub const TIM_DIER_CC3DE_Msk: u32 = 2048;
pub const TIM_DIER_CC3DE: u32 = 2048;
pub const TIM_DIER_CC4DE_Pos: u32 = 12;
pub const TIM_DIER_CC4DE_Msk: u32 = 4096;
pub const TIM_DIER_CC4DE: u32 = 4096;
pub const TIM_DIER_COMDE_Pos: u32 = 13;
pub const TIM_DIER_COMDE_Msk: u32 = 8192;
pub const TIM_DIER_COMDE: u32 = 8192;
pub const TIM_DIER_TDE_Pos: u32 = 14;
pub const TIM_DIER_TDE_Msk: u32 = 16384;
pub const TIM_DIER_TDE: u32 = 16384;
pub const TIM_SR_UIF_Pos: u32 = 0;
pub const TIM_SR_UIF_Msk: u32 = 1;
pub const TIM_SR_UIF: u32 = 1;
pub const TIM_SR_CC1IF_Pos: u32 = 1;
pub const TIM_SR_CC1IF_Msk: u32 = 2;
pub const TIM_SR_CC1IF: u32 = 2;
pub const TIM_SR_CC2IF_Pos: u32 = 2;
pub const TIM_SR_CC2IF_Msk: u32 = 4;
pub const TIM_SR_CC2IF: u32 = 4;
pub const TIM_SR_CC3IF_Pos: u32 = 3;
pub const TIM_SR_CC3IF_Msk: u32 = 8;
pub const TIM_SR_CC3IF: u32 = 8;
pub const TIM_SR_CC4IF_Pos: u32 = 4;
pub const TIM_SR_CC4IF_Msk: u32 = 16;
pub const TIM_SR_CC4IF: u32 = 16;
pub const TIM_SR_COMIF_Pos: u32 = 5;
pub const TIM_SR_COMIF_Msk: u32 = 32;
pub const TIM_SR_COMIF: u32 = 32;
pub const TIM_SR_TIF_Pos: u32 = 6;
pub const TIM_SR_TIF_Msk: u32 = 64;
pub const TIM_SR_TIF: u32 = 64;
pub const TIM_SR_BIF_Pos: u32 = 7;
pub const TIM_SR_BIF_Msk: u32 = 128;
pub const TIM_SR_BIF: u32 = 128;
pub const TIM_SR_CC1OF_Pos: u32 = 9;
pub const TIM_SR_CC1OF_Msk: u32 = 512;
pub const TIM_SR_CC1OF: u32 = 512;
pub const TIM_SR_CC2OF_Pos: u32 = 10;
pub const TIM_SR_CC2OF_Msk: u32 = 1024;
pub const TIM_SR_CC2OF: u32 = 1024;
pub const TIM_SR_CC3OF_Pos: u32 = 11;
pub const TIM_SR_CC3OF_Msk: u32 = 2048;
pub const TIM_SR_CC3OF: u32 = 2048;
pub const TIM_SR_CC4OF_Pos: u32 = 12;
pub const TIM_SR_CC4OF_Msk: u32 = 4096;
pub const TIM_SR_CC4OF: u32 = 4096;
pub const TIM_EGR_UG_Pos: u32 = 0;
pub const TIM_EGR_UG_Msk: u32 = 1;
pub const TIM_EGR_UG: u32 = 1;
pub const TIM_EGR_CC1G_Pos: u32 = 1;
pub const TIM_EGR_CC1G_Msk: u32 = 2;
pub const TIM_EGR_CC1G: u32 = 2;
pub const TIM_EGR_CC2G_Pos: u32 = 2;
pub const TIM_EGR_CC2G_Msk: u32 = 4;
pub const TIM_EGR_CC2G: u32 = 4;
pub const TIM_EGR_CC3G_Pos: u32 = 3;
pub const TIM_EGR_CC3G_Msk: u32 = 8;
pub const TIM_EGR_CC3G: u32 = 8;
pub const TIM_EGR_CC4G_Pos: u32 = 4;
pub const TIM_EGR_CC4G_Msk: u32 = 16;
pub const TIM_EGR_CC4G: u32 = 16;
pub const TIM_EGR_COMG_Pos: u32 = 5;
pub const TIM_EGR_COMG_Msk: u32 = 32;
pub const TIM_EGR_COMG: u32 = 32;
pub const TIM_EGR_TG_Pos: u32 = 6;
pub const TIM_EGR_TG_Msk: u32 = 64;
pub const TIM_EGR_TG: u32 = 64;
pub const TIM_EGR_BG_Pos: u32 = 7;
pub const TIM_EGR_BG_Msk: u32 = 128;
pub const TIM_EGR_BG: u32 = 128;
pub const TIM_CCMR1_CC1S_Pos: u32 = 0;
pub const TIM_CCMR1_CC1S_Msk: u32 = 3;
pub const TIM_CCMR1_CC1S: u32 = 3;
pub const TIM_CCMR1_CC1S_0: u32 = 1;
pub const TIM_CCMR1_CC1S_1: u32 = 2;
pub const TIM_CCMR1_OC1FE_Pos: u32 = 2;
pub const TIM_CCMR1_OC1FE_Msk: u32 = 4;
pub const TIM_CCMR1_OC1FE: u32 = 4;
pub const TIM_CCMR1_OC1PE_Pos: u32 = 3;
pub const TIM_CCMR1_OC1PE_Msk: u32 = 8;
pub const TIM_CCMR1_OC1PE: u32 = 8;
pub const TIM_CCMR1_OC1M_Pos: u32 = 4;
pub const TIM_CCMR1_OC1M_Msk: u32 = 112;
pub const TIM_CCMR1_OC1M: u32 = 112;
pub const TIM_CCMR1_OC1M_0: u32 = 16;
pub const TIM_CCMR1_OC1M_1: u32 = 32;
pub const TIM_CCMR1_OC1M_2: u32 = 64;
pub const TIM_CCMR1_OC1CE_Pos: u32 = 7;
pub const TIM_CCMR1_OC1CE_Msk: u32 = 128;
pub const TIM_CCMR1_OC1CE: u32 = 128;
pub const TIM_CCMR1_CC2S_Pos: u32 = 8;
pub const TIM_CCMR1_CC2S_Msk: u32 = 768;
pub const TIM_CCMR1_CC2S: u32 = 768;
pub const TIM_CCMR1_CC2S_0: u32 = 256;
pub const TIM_CCMR1_CC2S_1: u32 = 512;
pub const TIM_CCMR1_OC2FE_Pos: u32 = 10;
pub const TIM_CCMR1_OC2FE_Msk: u32 = 1024;
pub const TIM_CCMR1_OC2FE: u32 = 1024;
pub const TIM_CCMR1_OC2PE_Pos: u32 = 11;
pub const TIM_CCMR1_OC2PE_Msk: u32 = 2048;
pub const TIM_CCMR1_OC2PE: u32 = 2048;
pub const TIM_CCMR1_OC2M_Pos: u32 = 12;
pub const TIM_CCMR1_OC2M_Msk: u32 = 28672;
pub const TIM_CCMR1_OC2M: u32 = 28672;
pub const TIM_CCMR1_OC2M_0: u32 = 4096;
pub const TIM_CCMR1_OC2M_1: u32 = 8192;
pub const TIM_CCMR1_OC2M_2: u32 = 16384;
pub const TIM_CCMR1_OC2CE_Pos: u32 = 15;
pub const TIM_CCMR1_OC2CE_Msk: u32 = 32768;
pub const TIM_CCMR1_OC2CE: u32 = 32768;
pub const TIM_CCMR1_IC1PSC_Pos: u32 = 2;
pub const TIM_CCMR1_IC1PSC_Msk: u32 = 12;
pub const TIM_CCMR1_IC1PSC: u32 = 12;
pub const TIM_CCMR1_IC1PSC_0: u32 = 4;
pub const TIM_CCMR1_IC1PSC_1: u32 = 8;
pub const TIM_CCMR1_IC1F_Pos: u32 = 4;
pub const TIM_CCMR1_IC1F_Msk: u32 = 240;
pub const TIM_CCMR1_IC1F: u32 = 240;
pub const TIM_CCMR1_IC1F_0: u32 = 16;
pub const TIM_CCMR1_IC1F_1: u32 = 32;
pub const TIM_CCMR1_IC1F_2: u32 = 64;
pub const TIM_CCMR1_IC1F_3: u32 = 128;
pub const TIM_CCMR1_IC2PSC_Pos: u32 = 10;
pub const TIM_CCMR1_IC2PSC_Msk: u32 = 3072;
pub const TIM_CCMR1_IC2PSC: u32 = 3072;
pub const TIM_CCMR1_IC2PSC_0: u32 = 1024;
pub const TIM_CCMR1_IC2PSC_1: u32 = 2048;
pub const TIM_CCMR1_IC2F_Pos: u32 = 12;
pub const TIM_CCMR1_IC2F_Msk: u32 = 61440;
pub const TIM_CCMR1_IC2F: u32 = 61440;
pub const TIM_CCMR1_IC2F_0: u32 = 4096;
pub const TIM_CCMR1_IC2F_1: u32 = 8192;
pub const TIM_CCMR1_IC2F_2: u32 = 16384;
pub const TIM_CCMR1_IC2F_3: u32 = 32768;
pub const TIM_CCMR2_CC3S_Pos: u32 = 0;
pub const TIM_CCMR2_CC3S_Msk: u32 = 3;
pub const TIM_CCMR2_CC3S: u32 = 3;
pub const TIM_CCMR2_CC3S_0: u32 = 1;
pub const TIM_CCMR2_CC3S_1: u32 = 2;
pub const TIM_CCMR2_OC3FE_Pos: u32 = 2;
pub const TIM_CCMR2_OC3FE_Msk: u32 = 4;
pub const TIM_CCMR2_OC3FE: u32 = 4;
pub const TIM_CCMR2_OC3PE_Pos: u32 = 3;
pub const TIM_CCMR2_OC3PE_Msk: u32 = 8;
pub const TIM_CCMR2_OC3PE: u32 = 8;
pub const TIM_CCMR2_OC3M_Pos: u32 = 4;
pub const TIM_CCMR2_OC3M_Msk: u32 = 112;
pub const TIM_CCMR2_OC3M: u32 = 112;
pub const TIM_CCMR2_OC3M_0: u32 = 16;
pub const TIM_CCMR2_OC3M_1: u32 = 32;
pub const TIM_CCMR2_OC3M_2: u32 = 64;
pub const TIM_CCMR2_OC3CE_Pos: u32 = 7;
pub const TIM_CCMR2_OC3CE_Msk: u32 = 128;
pub const TIM_CCMR2_OC3CE: u32 = 128;
pub const TIM_CCMR2_CC4S_Pos: u32 = 8;
pub const TIM_CCMR2_CC4S_Msk: u32 = 768;
pub const TIM_CCMR2_CC4S: u32 = 768;
pub const TIM_CCMR2_CC4S_0: u32 = 256;
pub const TIM_CCMR2_CC4S_1: u32 = 512;
pub const TIM_CCMR2_OC4FE_Pos: u32 = 10;
pub const TIM_CCMR2_OC4FE_Msk: u32 = 1024;
pub const TIM_CCMR2_OC4FE: u32 = 1024;
pub const TIM_CCMR2_OC4PE_Pos: u32 = 11;
pub const TIM_CCMR2_OC4PE_Msk: u32 = 2048;
pub const TIM_CCMR2_OC4PE: u32 = 2048;
pub const TIM_CCMR2_OC4M_Pos: u32 = 12;
pub const TIM_CCMR2_OC4M_Msk: u32 = 28672;
pub const TIM_CCMR2_OC4M: u32 = 28672;
pub const TIM_CCMR2_OC4M_0: u32 = 4096;
pub const TIM_CCMR2_OC4M_1: u32 = 8192;
pub const TIM_CCMR2_OC4M_2: u32 = 16384;
pub const TIM_CCMR2_OC4CE_Pos: u32 = 15;
pub const TIM_CCMR2_OC4CE_Msk: u32 = 32768;
pub const TIM_CCMR2_OC4CE: u32 = 32768;
pub const TIM_CCMR2_IC3PSC_Pos: u32 = 2;
pub const TIM_CCMR2_IC3PSC_Msk: u32 = 12;
pub const TIM_CCMR2_IC3PSC: u32 = 12;
pub const TIM_CCMR2_IC3PSC_0: u32 = 4;
pub const TIM_CCMR2_IC3PSC_1: u32 = 8;
pub const TIM_CCMR2_IC3F_Pos: u32 = 4;
pub const TIM_CCMR2_IC3F_Msk: u32 = 240;
pub const TIM_CCMR2_IC3F: u32 = 240;
pub const TIM_CCMR2_IC3F_0: u32 = 16;
pub const TIM_CCMR2_IC3F_1: u32 = 32;
pub const TIM_CCMR2_IC3F_2: u32 = 64;
pub const TIM_CCMR2_IC3F_3: u32 = 128;
pub const TIM_CCMR2_IC4PSC_Pos: u32 = 10;
pub const TIM_CCMR2_IC4PSC_Msk: u32 = 3072;
pub const TIM_CCMR2_IC4PSC: u32 = 3072;
pub const TIM_CCMR2_IC4PSC_0: u32 = 1024;
pub const TIM_CCMR2_IC4PSC_1: u32 = 2048;
pub const TIM_CCMR2_IC4F_Pos: u32 = 12;
pub const TIM_CCMR2_IC4F_Msk: u32 = 61440;
pub const TIM_CCMR2_IC4F: u32 = 61440;
pub const TIM_CCMR2_IC4F_0: u32 = 4096;
pub const TIM_CCMR2_IC4F_1: u32 = 8192;
pub const TIM_CCMR2_IC4F_2: u32 = 16384;
pub const TIM_CCMR2_IC4F_3: u32 = 32768;
pub const TIM_CCER_CC1E_Pos: u32 = 0;
pub const TIM_CCER_CC1E_Msk: u32 = 1;
pub const TIM_CCER_CC1E: u32 = 1;
pub const TIM_CCER_CC1P_Pos: u32 = 1;
pub const TIM_CCER_CC1P_Msk: u32 = 2;
pub const TIM_CCER_CC1P: u32 = 2;
pub const TIM_CCER_CC1NE_Pos: u32 = 2;
pub const TIM_CCER_CC1NE_Msk: u32 = 4;
pub const TIM_CCER_CC1NE: u32 = 4;
pub const TIM_CCER_CC1NP_Pos: u32 = 3;
pub const TIM_CCER_CC1NP_Msk: u32 = 8;
pub const TIM_CCER_CC1NP: u32 = 8;
pub const TIM_CCER_CC2E_Pos: u32 = 4;
pub const TIM_CCER_CC2E_Msk: u32 = 16;
pub const TIM_CCER_CC2E: u32 = 16;
pub const TIM_CCER_CC2P_Pos: u32 = 5;
pub const TIM_CCER_CC2P_Msk: u32 = 32;
pub const TIM_CCER_CC2P: u32 = 32;
pub const TIM_CCER_CC2NE_Pos: u32 = 6;
pub const TIM_CCER_CC2NE_Msk: u32 = 64;
pub const TIM_CCER_CC2NE: u32 = 64;
pub const TIM_CCER_CC2NP_Pos: u32 = 7;
pub const TIM_CCER_CC2NP_Msk: u32 = 128;
pub const TIM_CCER_CC2NP: u32 = 128;
pub const TIM_CCER_CC3E_Pos: u32 = 8;
pub const TIM_CCER_CC3E_Msk: u32 = 256;
pub const TIM_CCER_CC3E: u32 = 256;
pub const TIM_CCER_CC3P_Pos: u32 = 9;
pub const TIM_CCER_CC3P_Msk: u32 = 512;
pub const TIM_CCER_CC3P: u32 = 512;
pub const TIM_CCER_CC3NE_Pos: u32 = 10;
pub const TIM_CCER_CC3NE_Msk: u32 = 1024;
pub const TIM_CCER_CC3NE: u32 = 1024;
pub const TIM_CCER_CC3NP_Pos: u32 = 11;
pub const TIM_CCER_CC3NP_Msk: u32 = 2048;
pub const TIM_CCER_CC3NP: u32 = 2048;
pub const TIM_CCER_CC4E_Pos: u32 = 12;
pub const TIM_CCER_CC4E_Msk: u32 = 4096;
pub const TIM_CCER_CC4E: u32 = 4096;
pub const TIM_CCER_CC4P_Pos: u32 = 13;
pub const TIM_CCER_CC4P_Msk: u32 = 8192;
pub const TIM_CCER_CC4P: u32 = 8192;
pub const TIM_CCER_CC4NP_Pos: u32 = 15;
pub const TIM_CCER_CC4NP_Msk: u32 = 32768;
pub const TIM_CCER_CC4NP: u32 = 32768;
pub const TIM_CNT_CNT_Pos: u32 = 0;
pub const TIM_CNT_CNT_Msk: u32 = 65535;
pub const TIM_CNT_CNT: u32 = 65535;
pub const TIM_PSC_PSC_Pos: u32 = 0;
pub const TIM_PSC_PSC_Msk: u32 = 65535;
pub const TIM_PSC_PSC: u32 = 65535;
pub const TIM_ARR_ARR_Pos: u32 = 0;
pub const TIM_ARR_ARR_Msk: u32 = 65535;
pub const TIM_ARR_ARR: u32 = 65535;
pub const TIM_RCR_REP_Pos: u32 = 0;
pub const TIM_RCR_REP_Msk: u32 = 255;
pub const TIM_RCR_REP: u32 = 255;
pub const TIM_CCR1_CCR1_Pos: u32 = 0;
pub const TIM_CCR1_CCR1_Msk: u32 = 65535;
pub const TIM_CCR1_CCR1: u32 = 65535;
pub const TIM_CCR2_CCR2_Pos: u32 = 0;
pub const TIM_CCR2_CCR2_Msk: u32 = 65535;
pub const TIM_CCR2_CCR2: u32 = 65535;
pub const TIM_CCR3_CCR3_Pos: u32 = 0;
pub const TIM_CCR3_CCR3_Msk: u32 = 65535;
pub const TIM_CCR3_CCR3: u32 = 65535;
pub const TIM_CCR4_CCR4_Pos: u32 = 0;
pub const TIM_CCR4_CCR4_Msk: u32 = 65535;
pub const TIM_CCR4_CCR4: u32 = 65535;
pub const TIM_BDTR_DTG_Pos: u32 = 0;
pub const TIM_BDTR_DTG_Msk: u32 = 255;
pub const TIM_BDTR_DTG: u32 = 255;
pub const TIM_BDTR_DTG_0: u32 = 1;
pub const TIM_BDTR_DTG_1: u32 = 2;
pub const TIM_BDTR_DTG_2: u32 = 4;
pub const TIM_BDTR_DTG_3: u32 = 8;
pub const TIM_BDTR_DTG_4: u32 = 16;
pub const TIM_BDTR_DTG_5: u32 = 32;
pub const TIM_BDTR_DTG_6: u32 = 64;
pub const TIM_BDTR_DTG_7: u32 = 128;
pub const TIM_BDTR_LOCK_Pos: u32 = 8;
pub const TIM_BDTR_LOCK_Msk: u32 = 768;
pub const TIM_BDTR_LOCK: u32 = 768;
pub const TIM_BDTR_LOCK_0: u32 = 256;
pub const TIM_BDTR_LOCK_1: u32 = 512;
pub const TIM_BDTR_OSSI_Pos: u32 = 10;
pub const TIM_BDTR_OSSI_Msk: u32 = 1024;
pub const TIM_BDTR_OSSI: u32 = 1024;
pub const TIM_BDTR_OSSR_Pos: u32 = 11;
pub const TIM_BDTR_OSSR_Msk: u32 = 2048;
pub const TIM_BDTR_OSSR: u32 = 2048;
pub const TIM_BDTR_BKE_Pos: u32 = 12;
pub const TIM_BDTR_BKE_Msk: u32 = 4096;
pub const TIM_BDTR_BKE: u32 = 4096;
pub const TIM_BDTR_BKP_Pos: u32 = 13;
pub const TIM_BDTR_BKP_Msk: u32 = 8192;
pub const TIM_BDTR_BKP: u32 = 8192;
pub const TIM_BDTR_AOE_Pos: u32 = 14;
pub const TIM_BDTR_AOE_Msk: u32 = 16384;
pub const TIM_BDTR_AOE: u32 = 16384;
pub const TIM_BDTR_MOE_Pos: u32 = 15;
pub const TIM_BDTR_MOE_Msk: u32 = 32768;
pub const TIM_BDTR_MOE: u32 = 32768;
pub const TIM_DCR_DBA_Pos: u32 = 0;
pub const TIM_DCR_DBA_Msk: u32 = 31;
pub const TIM_DCR_DBA: u32 = 31;
pub const TIM_DCR_DBA_0: u32 = 1;
pub const TIM_DCR_DBA_1: u32 = 2;
pub const TIM_DCR_DBA_2: u32 = 4;
pub const TIM_DCR_DBA_3: u32 = 8;
pub const TIM_DCR_DBA_4: u32 = 16;
pub const TIM_DCR_DBL_Pos: u32 = 8;
pub const TIM_DCR_DBL_Msk: u32 = 7936;
pub const TIM_DCR_DBL: u32 = 7936;
pub const TIM_DCR_DBL_0: u32 = 256;
pub const TIM_DCR_DBL_1: u32 = 512;
pub const TIM_DCR_DBL_2: u32 = 1024;
pub const TIM_DCR_DBL_3: u32 = 2048;
pub const TIM_DCR_DBL_4: u32 = 4096;
pub const TIM_DMAR_DMAB_Pos: u32 = 0;
pub const TIM_DMAR_DMAB_Msk: u32 = 65535;
pub const TIM_DMAR_DMAB: u32 = 65535;
pub const TIM14_OR_TI1_RMP_Pos: u32 = 0;
pub const TIM14_OR_TI1_RMP_Msk: u32 = 3;
pub const TIM14_OR_TI1_RMP: u32 = 3;
pub const TIM14_OR_TI1_RMP_0: u32 = 1;
pub const TIM14_OR_TI1_RMP_1: u32 = 2;
pub const LPTIM_ISR_ARRM_Pos: u32 = 1;
pub const LPTIM_ISR_ARRM_Msk: u32 = 2;
pub const LPTIM_ISR_ARRM: u32 = 2;
pub const LPTIM_ICR_ARRMCF_Pos: u32 = 1;
pub const LPTIM_ICR_ARRMCF_Msk: u32 = 2;
pub const LPTIM_ICR_ARRMCF: u32 = 2;
pub const LPTIM_IER_ARRMIE_Pos: u32 = 1;
pub const LPTIM_IER_ARRMIE_Msk: u32 = 2;
pub const LPTIM_IER_ARRMIE: u32 = 2;
pub const LPTIM_CFGR_PRESC_Pos: u32 = 9;
pub const LPTIM_CFGR_PRESC_Msk: u32 = 3584;
pub const LPTIM_CFGR_PRESC: u32 = 3584;
pub const LPTIM_CFGR_PRESC_0: u32 = 512;
pub const LPTIM_CFGR_PRESC_1: u32 = 1024;
pub const LPTIM_CFGR_PRESC_2: u32 = 2048;
pub const LPTIM_CFGR_PRELOAD_Pos: u32 = 22;
pub const LPTIM_CFGR_PRELOAD_Msk: u32 = 4194304;
pub const LPTIM_CFGR_PRELOAD: u32 = 4194304;
pub const LPTIM_CR_ENABLE_Pos: u32 = 0;
pub const LPTIM_CR_ENABLE_Msk: u32 = 1;
pub const LPTIM_CR_ENABLE: u32 = 1;
pub const LPTIM_CR_SNGSTRT_Pos: u32 = 1;
pub const LPTIM_CR_SNGSTRT_Msk: u32 = 2;
pub const LPTIM_CR_SNGSTRT: u32 = 2;
pub const LPTIM_CR_RSTARE_Pos: u32 = 4;
pub const LPTIM_CR_RSTARE_Msk: u32 = 16;
pub const LPTIM_CR_RSTARE: u32 = 16;
pub const LPTIM_ARR_ARR_Pos: u32 = 0;
pub const LPTIM_ARR_ARR_Msk: u32 = 65535;
pub const LPTIM_ARR_ARR: u32 = 65535;
pub const LPTIM_CNT_CNT_Pos: u32 = 0;
pub const LPTIM_CNT_CNT_Msk: u32 = 65535;
pub const LPTIM_CNT_CNT: u32 = 65535;
pub const COMP_CSR_EN_Pos: u32 = 0;
pub const COMP_CSR_EN_Msk: u32 = 1;
pub const COMP_CSR_EN: u32 = 1;
pub const COMP_CSR_COMP1_EN: u32 = 1;
pub const COMP_CSR_COMP2_EN: u32 = 1;
pub const COMP_CSR_SCALER_EN_Pos: u32 = 1;
pub const COMP_CSR_SCALER_EN_Msk: u32 = 2;
pub const COMP_CSR_SCALER_EN: u32 = 2;
pub const COMP_CSR_INMSEL_Pos: u32 = 4;
pub const COMP_CSR_INMSEL_Msk: u32 = 240;
pub const COMP_CSR_INMSEL: u32 = 240;
pub const COMP_CSR_INMSEL_0: u32 = 16;
pub const COMP_CSR_INMSEL_1: u32 = 32;
pub const COMP_CSR_INMSEL_2: u32 = 64;
pub const COMP_CSR_INMSEL_3: u32 = 128;
pub const COMP_CSR_INPSEL_Pos: u32 = 8;
pub const COMP_CSR_INPSEL_Msk: u32 = 768;
pub const COMP_CSR_INPSEL: u32 = 768;
pub const COMP_CSR_INPSEL_0: u32 = 256;
pub const COMP_CSR_INPSEL_1: u32 = 512;
pub const COMP_CSR_WINMODE_Pos: u32 = 11;
pub const COMP_CSR_WINMODE_Msk: u32 = 2048;
pub const COMP_CSR_WINMODE: u32 = 2048;
pub const COMP_CSR_POLARITY_Pos: u32 = 15;
pub const COMP_CSR_POLARITY_Msk: u32 = 32768;
pub const COMP_CSR_POLARITY: u32 = 32768;
pub const COMP_CSR_HYST_Pos: u32 = 16;
pub const COMP_CSR_HYST_Msk: u32 = 65536;
pub const COMP_CSR_HYST: u32 = 65536;
pub const COMP_CSR_PWRMODE_Pos: u32 = 18;
pub const COMP_CSR_PWRMODE_Msk: u32 = 786432;
pub const COMP_CSR_PWRMODE: u32 = 786432;
pub const COMP_CSR_PWRMODE_0: u32 = 262144;
pub const COMP_CSR_PWRMODE_1: u32 = 524288;
pub const COMP_CSR_COMP_OUT_Pos: u32 = 30;
pub const COMP_CSR_COMP_OUT_Msk: u32 = 1073741824;
pub const COMP_CSR_COMP_OUT: u32 = 1073741824;
pub const COMP_CSR_LOCK_Pos: u32 = 31;
pub const COMP_CSR_LOCK_Msk: u32 = 2147483648;
pub const COMP_CSR_LOCK: u32 = 2147483648;
pub const COMP_FR_FLTEN_Pos: u32 = 0;
pub const COMP_FR_FLTEN_Msk: u32 = 1;
pub const COMP_FR_FLTEN: u32 = 1;
pub const COMP_FR_FLTCNT_Pos: u32 = 16;
pub const COMP_FR_FLTCNT_Msk: u32 = 4294901760;
pub const COMP_FR_FLTCNT: u32 = 4294901760;
pub const USART_SR_PE_Pos: u32 = 0;
pub const USART_SR_PE_Msk: u32 = 1;
pub const USART_SR_PE: u32 = 1;
pub const USART_SR_FE_Pos: u32 = 1;
pub const USART_SR_FE_Msk: u32 = 2;
pub const USART_SR_FE: u32 = 2;
pub const USART_SR_NE_Pos: u32 = 2;
pub const USART_SR_NE_Msk: u32 = 4;
pub const USART_SR_NE: u32 = 4;
pub const USART_SR_ORE_Pos: u32 = 3;
pub const USART_SR_ORE_Msk: u32 = 8;
pub const USART_SR_ORE: u32 = 8;
pub const USART_SR_IDLE_Pos: u32 = 4;
pub const USART_SR_IDLE_Msk: u32 = 16;
pub const USART_SR_IDLE: u32 = 16;
pub const USART_SR_RXNE_Pos: u32 = 5;
pub const USART_SR_RXNE_Msk: u32 = 32;
pub const USART_SR_RXNE: u32 = 32;
pub const USART_SR_TC_Pos: u32 = 6;
pub const USART_SR_TC_Msk: u32 = 64;
pub const USART_SR_TC: u32 = 64;
pub const USART_SR_TXE_Pos: u32 = 7;
pub const USART_SR_TXE_Msk: u32 = 128;
pub const USART_SR_TXE: u32 = 128;
pub const USART_SR_CTS_Pos: u32 = 9;
pub const USART_SR_CTS_Msk: u32 = 512;
pub const USART_SR_CTS: u32 = 512;
pub const USART_SR_ABRF_Pos: u32 = 10;
pub const USART_SR_ABRF_Msk: u32 = 1024;
pub const USART_SR_ABRF: u32 = 1024;
pub const USART_SR_ABRE_Pos: u32 = 11;
pub const USART_SR_ABRE_Msk: u32 = 2048;
pub const USART_SR_ABRE: u32 = 2048;
pub const USART_SR_ABRRQ_Pos: u32 = 12;
pub const USART_SR_ABRRQ_Msk: u32 = 4096;
pub const USART_SR_ABRRQ: u32 = 4096;
pub const USART_DR_DR_Pos: u32 = 0;
pub const USART_DR_DR_Msk: u32 = 511;
pub const USART_DR_DR: u32 = 511;
pub const USART_BRR_DIV_Fraction_Pos: u32 = 0;
pub const USART_BRR_DIV_Fraction_Msk: u32 = 15;
pub const USART_BRR_DIV_Fraction: u32 = 15;
pub const USART_BRR_DIV_Mantissa_Pos: u32 = 4;
pub const USART_BRR_DIV_Mantissa_Msk: u32 = 65520;
pub const USART_BRR_DIV_Mantissa: u32 = 65520;
pub const USART_CR1_SBK_Pos: u32 = 0;
pub const USART_CR1_SBK_Msk: u32 = 1;
pub const USART_CR1_SBK: u32 = 1;
pub const USART_CR1_RWU_Pos: u32 = 1;
pub const USART_CR1_RWU_Msk: u32 = 2;
pub const USART_CR1_RWU: u32 = 2;
pub const USART_CR1_RE_Pos: u32 = 2;
pub const USART_CR1_RE_Msk: u32 = 4;
pub const USART_CR1_RE: u32 = 4;
pub const USART_CR1_TE_Pos: u32 = 3;
pub const USART_CR1_TE_Msk: u32 = 8;
pub const USART_CR1_TE: u32 = 8;
pub const USART_CR1_IDLEIE_Pos: u32 = 4;
pub const USART_CR1_IDLEIE_Msk: u32 = 16;
pub const USART_CR1_IDLEIE: u32 = 16;
pub const USART_CR1_RXNEIE_Pos: u32 = 5;
pub const USART_CR1_RXNEIE_Msk: u32 = 32;
pub const USART_CR1_RXNEIE: u32 = 32;
pub const USART_CR1_TCIE_Pos: u32 = 6;
pub const USART_CR1_TCIE_Msk: u32 = 64;
pub const USART_CR1_TCIE: u32 = 64;
pub const USART_CR1_TXEIE_Pos: u32 = 7;
pub const USART_CR1_TXEIE_Msk: u32 = 128;
pub const USART_CR1_TXEIE: u32 = 128;
pub const USART_CR1_PEIE_Pos: u32 = 8;
pub const USART_CR1_PEIE_Msk: u32 = 256;
pub const USART_CR1_PEIE: u32 = 256;
pub const USART_CR1_PS_Pos: u32 = 9;
pub const USART_CR1_PS_Msk: u32 = 512;
pub const USART_CR1_PS: u32 = 512;
pub const USART_CR1_PCE_Pos: u32 = 10;
pub const USART_CR1_PCE_Msk: u32 = 1024;
pub const USART_CR1_PCE: u32 = 1024;
pub const USART_CR1_WAKE_Pos: u32 = 11;
pub const USART_CR1_WAKE_Msk: u32 = 2048;
pub const USART_CR1_WAKE: u32 = 2048;
pub const USART_CR1_M_Pos: u32 = 12;
pub const USART_CR1_M_Msk: u32 = 4096;
pub const USART_CR1_M: u32 = 4096;
pub const USART_CR1_UE_Pos: u32 = 13;
pub const USART_CR1_UE_Msk: u32 = 8192;
pub const USART_CR1_UE: u32 = 8192;
pub const USART_CR2_ADD_Pos: u32 = 0;
pub const USART_CR2_ADD_Msk: u32 = 15;
pub const USART_CR2_ADD: u32 = 15;
pub const USART_CR2_LBCL_Pos: u32 = 8;
pub const USART_CR2_LBCL_Msk: u32 = 256;
pub const USART_CR2_LBCL: u32 = 256;
pub const USART_CR2_CPHA_Pos: u32 = 9;
pub const USART_CR2_CPHA_Msk: u32 = 512;
pub const USART_CR2_CPHA: u32 = 512;
pub const USART_CR2_CPOL_Pos: u32 = 10;
pub const USART_CR2_CPOL_Msk: u32 = 1024;
pub const USART_CR2_CPOL: u32 = 1024;
pub const USART_CR2_CLKEN_Pos: u32 = 11;
pub const USART_CR2_CLKEN_Msk: u32 = 2048;
pub const USART_CR2_CLKEN: u32 = 2048;
pub const USART_CR2_STOP_Pos: u32 = 13;
pub const USART_CR2_STOP_Msk: u32 = 8192;
pub const USART_CR2_STOP: u32 = 8192;
pub const USART_CR3_EIE_Pos: u32 = 0;
pub const USART_CR3_EIE_Msk: u32 = 1;
pub const USART_CR3_EIE: u32 = 1;
pub const USART_CR3_HDSEL_Pos: u32 = 3;
pub const USART_CR3_HDSEL_Msk: u32 = 8;
pub const USART_CR3_HDSEL: u32 = 8;
pub const USART_CR3_DMAR_Pos: u32 = 6;
pub const USART_CR3_DMAR_Msk: u32 = 64;
pub const USART_CR3_DMAR: u32 = 64;
pub const USART_CR3_DMAT_Pos: u32 = 7;
pub const USART_CR3_DMAT_Msk: u32 = 128;
pub const USART_CR3_DMAT: u32 = 128;
pub const USART_CR3_RTSE_Pos: u32 = 8;
pub const USART_CR3_RTSE_Msk: u32 = 256;
pub const USART_CR3_RTSE: u32 = 256;
pub const USART_CR3_CTSE_Pos: u32 = 9;
pub const USART_CR3_CTSE_Msk: u32 = 512;
pub const USART_CR3_CTSE: u32 = 512;
pub const USART_CR3_CTSIE_Pos: u32 = 10;
pub const USART_CR3_CTSIE_Msk: u32 = 1024;
pub const USART_CR3_CTSIE: u32 = 1024;
pub const USART_CR3_OVER8_Pos: u32 = 11;
pub const USART_CR3_OVER8_Msk: u32 = 2048;
pub const USART_CR3_OVER8: u32 = 2048;
pub const USART_CR3_ABREN_Pos: u32 = 12;
pub const USART_CR3_ABREN_Msk: u32 = 4096;
pub const USART_CR3_ABREN: u32 = 4096;
pub const USART_CR3_ABRMODE_Pos: u32 = 13;
pub const USART_CR3_ABRMODE_Msk: u32 = 24576;
pub const USART_CR3_ABRMODE: u32 = 24576;
pub const USART_CR3_ABRMODE_0: u32 = 8192;
pub const USART_CR3_ABRMODE_1: u32 = 16384;
pub const WWDG_CR_T_Pos: u32 = 0;
pub const WWDG_CR_T_Msk: u32 = 127;
pub const WWDG_CR_T: u32 = 127;
pub const WWDG_CR_T_0: u32 = 1;
pub const WWDG_CR_T_1: u32 = 2;
pub const WWDG_CR_T_2: u32 = 4;
pub const WWDG_CR_T_3: u32 = 8;
pub const WWDG_CR_T_4: u32 = 16;
pub const WWDG_CR_T_5: u32 = 32;
pub const WWDG_CR_T_6: u32 = 64;
pub const WWDG_CR_WDGA_Pos: u32 = 7;
pub const WWDG_CR_WDGA_Msk: u32 = 128;
pub const WWDG_CR_WDGA: u32 = 128;
pub const WWDG_CFR_W_Pos: u32 = 0;
pub const WWDG_CFR_W_Msk: u32 = 127;
pub const WWDG_CFR_W: u32 = 127;
pub const WWDG_CFR_W_0: u32 = 1;
pub const WWDG_CFR_W_1: u32 = 2;
pub const WWDG_CFR_W_2: u32 = 4;
pub const WWDG_CFR_W_3: u32 = 8;
pub const WWDG_CFR_W_4: u32 = 16;
pub const WWDG_CFR_W_5: u32 = 32;
pub const WWDG_CFR_W_6: u32 = 64;
pub const WWDG_CFR_WDGTB_Pos: u32 = 7;
pub const WWDG_CFR_WDGTB_Msk: u32 = 384;
pub const WWDG_CFR_WDGTB: u32 = 384;
pub const WWDG_CFR_WDGTB_0: u32 = 128;
pub const WWDG_CFR_WDGTB_1: u32 = 256;
pub const WWDG_CFR_EWI_Pos: u32 = 9;
pub const WWDG_CFR_EWI_Msk: u32 = 512;
pub const WWDG_CFR_EWI: u32 = 512;
pub const WWDG_SR_EWIF_Pos: u32 = 0;
pub const WWDG_SR_EWIF_Msk: u32 = 1;
pub const WWDG_SR_EWIF: u32 = 1;
pub const FlagStatus_RESET: FlagStatus = 0;
pub const FlagStatus_SET: FlagStatus = 1;
#[doc = " @brief Exported_types"]
pub type FlagStatus = ::core::ffi::c_uint;
#[doc = " @brief Exported_types"]
pub use self::FlagStatus as ITStatus;
pub const FunctionalState_DISABLE: FunctionalState = 0;
pub const FunctionalState_ENABLE: FunctionalState = 1;
pub type FunctionalState = ::core::ffi::c_uint;
pub const ErrorStatus_SUCCESS: ErrorStatus = 0;
pub const ErrorStatus_ERROR: ErrorStatus = 1;
pub type ErrorStatus = ::core::ffi::c_uint;
pub const HAL_StatusTypeDef_HAL_OK: HAL_StatusTypeDef = 0;
pub const HAL_StatusTypeDef_HAL_ERROR: HAL_StatusTypeDef = 1;
pub const HAL_StatusTypeDef_HAL_BUSY: HAL_StatusTypeDef = 2;
pub const HAL_StatusTypeDef_HAL_TIMEOUT: HAL_StatusTypeDef = 3;
#[doc = " @brief  HAL Status structures definition"]
pub type HAL_StatusTypeDef = ::core::ffi::c_uint;
pub const HAL_LockTypeDef_HAL_UNLOCKED: HAL_LockTypeDef = 0;
pub const HAL_LockTypeDef_HAL_LOCKED: HAL_LockTypeDef = 1;
#[doc = " @brief  HAL Lock structures definition"]
pub type HAL_LockTypeDef = ::core::ffi::c_uint;
pub const HAL_MAX_DELAY: u32 = 4294967295;
pub const CR_REG_INDEX: u32 = 1;
pub const BDCR_REG_INDEX: u32 = 2;
pub const CSR_REG_INDEX: u32 = 3;
pub const RCC_FLAG_MASK: u32 = 31;
pub const RCC_CLOCKTYPE_ALL: u32 = 7;
#[doc = " @brief  RCC PLL configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RCC_PLLInitTypeDef {
    #[doc = "< The new state of the PLL.\nThis parameter can be a value of @ref RCC_PLL_Config"]
    pub PLLState: u32,
    #[doc = "< RCC_PLLSource: PLL entry clock source.\nThis parameter must be a value of @ref RCC_PLL_Clock_Source"]
    pub PLLSource: u32,
}
const _: () = {
    ["Size of RCC_PLLInitTypeDef"][::core::mem::size_of::<RCC_PLLInitTypeDef>() - 8usize];
    ["Alignment of RCC_PLLInitTypeDef"][::core::mem::align_of::<RCC_PLLInitTypeDef>() - 4usize];
    ["Offset of field: RCC_PLLInitTypeDef::PLLState"]
        [::core::mem::offset_of!(RCC_PLLInitTypeDef, PLLState) - 0usize];
    ["Offset of field: RCC_PLLInitTypeDef::PLLSource"]
        [::core::mem::offset_of!(RCC_PLLInitTypeDef, PLLSource) - 4usize];
};
#[doc = " @brief  RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RCC_OscInitTypeDef {
    #[doc = "< The oscillators to be configured.\nThis parameter can be a value of @ref RCC_Oscillator_Type"]
    pub OscillatorType: u32,
    #[doc = "< The new state of the HSE.\nThis parameter can be a value of @ref RCC_HSE_Config"]
    pub HSEState: u32,
    #[doc = "< The frequency range of the HSE.\nThis parameter can be a value of @ref RCC_HSE_Freq"]
    pub HSEFreq: u32,
    #[doc = "< The new state of the LSE.\nThis parameter can be a value of @ref RCC_LSE_Config"]
    pub LSEState: u32,
    #[doc = "< The driver factor of the LSE.\nThis parameter can be a value of @ref RCC_LSE_Driver"]
    pub LSEDriver: u32,
    #[doc = "< The new state of the HSI.\nThis parameter can be a value of @ref RCC_HSI_Config"]
    pub HSIState: u32,
    #[doc = "< The division factor of the HSI.\nThis parameter can be a value of @ref RCC_HSI_Div"]
    pub HSIDiv: u32,
    #[doc = "< The calibration trimming value (default is RCC_HSICALIBRATION_8MHz).\nThis parameter can be a value of @ref RCC_HSI_Calibration"]
    pub HSICalibrationValue: u32,
    #[doc = "< The new state of the LSI.\nThis parameter can be a value of @ref RCC_LSI_Config"]
    pub LSIState: u32,
    #[doc = "< Main PLL structure parameters"]
    pub PLL: RCC_PLLInitTypeDef,
}
const _: () = {
    ["Size of RCC_OscInitTypeDef"][::core::mem::size_of::<RCC_OscInitTypeDef>() - 44usize];
    ["Alignment of RCC_OscInitTypeDef"][::core::mem::align_of::<RCC_OscInitTypeDef>() - 4usize];
    ["Offset of field: RCC_OscInitTypeDef::OscillatorType"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, OscillatorType) - 0usize];
    ["Offset of field: RCC_OscInitTypeDef::HSEState"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, HSEState) - 4usize];
    ["Offset of field: RCC_OscInitTypeDef::HSEFreq"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, HSEFreq) - 8usize];
    ["Offset of field: RCC_OscInitTypeDef::LSEState"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, LSEState) - 12usize];
    ["Offset of field: RCC_OscInitTypeDef::LSEDriver"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, LSEDriver) - 16usize];
    ["Offset of field: RCC_OscInitTypeDef::HSIState"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, HSIState) - 20usize];
    ["Offset of field: RCC_OscInitTypeDef::HSIDiv"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, HSIDiv) - 24usize];
    ["Offset of field: RCC_OscInitTypeDef::HSICalibrationValue"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, HSICalibrationValue) - 28usize];
    ["Offset of field: RCC_OscInitTypeDef::LSIState"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, LSIState) - 32usize];
    ["Offset of field: RCC_OscInitTypeDef::PLL"]
        [::core::mem::offset_of!(RCC_OscInitTypeDef, PLL) - 36usize];
};
#[doc = " @brief  RCC System, AHB and APB busses clock configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RCC_ClkInitTypeDef {
    #[doc = "< The clock to be configured.\nThis parameter can be a combination of @ref RCC_System_Clock_Type"]
    pub ClockType: u32,
    #[doc = "< The clock source used as system clock (SYSCLK).\nThis parameter can be a value of @ref RCC_System_Clock_Source"]
    pub SYSCLKSource: u32,
    #[doc = "< The AHB clock (HCLK) divider. This clock is derived from the system clock (SYSCLK).\nThis parameter can be a value of @ref RCC_AHB_Clock_Source"]
    pub AHBCLKDivider: u32,
    #[doc = "< The APB1 clock (PCLK1) divider. This clock is derived from the AHB clock (HCLK).\nThis parameter can be a value of @ref RCC_APB1_Clock_Source"]
    pub APB1CLKDivider: u32,
}
const _: () = {
    ["Size of RCC_ClkInitTypeDef"][::core::mem::size_of::<RCC_ClkInitTypeDef>() - 16usize];
    ["Alignment of RCC_ClkInitTypeDef"][::core::mem::align_of::<RCC_ClkInitTypeDef>() - 4usize];
    ["Offset of field: RCC_ClkInitTypeDef::ClockType"]
        [::core::mem::offset_of!(RCC_ClkInitTypeDef, ClockType) - 0usize];
    ["Offset of field: RCC_ClkInitTypeDef::SYSCLKSource"]
        [::core::mem::offset_of!(RCC_ClkInitTypeDef, SYSCLKSource) - 4usize];
    ["Offset of field: RCC_ClkInitTypeDef::AHBCLKDivider"]
        [::core::mem::offset_of!(RCC_ClkInitTypeDef, AHBCLKDivider) - 8usize];
    ["Offset of field: RCC_ClkInitTypeDef::APB1CLKDivider"]
        [::core::mem::offset_of!(RCC_ClkInitTypeDef, APB1CLKDivider) - 12usize];
};
pub const RCC_DBP_TIMEOUT_VALUE: u32 = 2;
pub const RCC_LSE_TIMEOUT_VALUE: u32 = 5000u16 as u32;
pub const RCC_OSCILLATORTYPE_NONE: u32 = 0;
pub const RCC_OSCILLATORTYPE_HSE: u32 = 1;
pub const RCC_OSCILLATORTYPE_HSI: u32 = 2;
pub const RCC_OSCILLATORTYPE_LSE: u32 = 4;
pub const RCC_OSCILLATORTYPE_LSI: u32 = 8;
pub const RCC_HSE_OFF: u32 = 0;
pub const RCC_HSE_ON: u32 = 65536;
pub const RCC_HSE_BYPASS: u32 = 327680u32 as u32;
pub const RCC_HSE_4_8MHz: u32 = 4;
pub const RCC_HSE_8_16MHz: u32 = 8;
pub const RCC_HSE_16_32MHz: u32 = 12;
pub const RCC_LSE_OFF: u32 = 0;
pub const RCC_LSE_ON: u32 = 1;
pub const RCC_LSE_BYPASS: u32 = 5u8 as u32;
pub const RCC_LSEDRIVE_LOW: u32 = 65536;
pub const RCC_LSEDRIVE_MEDIUM: u32 = 131072;
pub const RCC_LSEDRIVE_HIGH: u32 = 196608;
pub const RCC_HSI_OFF: u32 = 0;
pub const RCC_HSI_ON: u32 = 256;
pub const RCC_HSI_DIV1: u32 = 0;
pub const RCC_HSI_DIV2: u32 = 2048;
pub const RCC_HSI_DIV4: u32 = 4096;
pub const RCC_HSI_DIV8: u32 = 6144;
pub const RCC_HSI_DIV16: u32 = 8192;
pub const RCC_HSI_DIV32: u32 = 10240;
pub const RCC_HSI_DIV64: u32 = 12288;
pub const RCC_HSI_DIV128: u32 = 14336;
pub const RCC_LSI_OFF: u32 = 0;
pub const RCC_LSI_ON: u32 = 1;
pub const RCC_PLL_NONE: u32 = 0;
pub const RCC_PLL_OFF: u32 = 1;
pub const RCC_PLL_ON: u32 = 2;
pub const RCC_PLLSOURCE_NONE: u32 = 0;
pub const RCC_PLLSOURCE_HSI: u32 = 0;
pub const RCC_PLLSOURCE_HSE: u32 = 1;
pub const RCC_CLOCKTYPE_SYSCLK: u32 = 1;
pub const RCC_CLOCKTYPE_HCLK: u32 = 2;
pub const RCC_CLOCKTYPE_PCLK1: u32 = 4;
pub const RCC_SYSCLKSOURCE_HSI: u32 = 0;
pub const RCC_SYSCLKSOURCE_HSE: u32 = 1;
pub const RCC_SYSCLKSOURCE_PLLCLK: u32 = 2;
pub const RCC_SYSCLKSOURCE_LSI: u32 = 3;
pub const RCC_SYSCLKSOURCE_LSE: u32 = 4;
pub const RCC_SYSCLKSOURCE_STATUS_HSI: u32 = 0;
pub const RCC_SYSCLKSOURCE_STATUS_HSE: u32 = 8;
pub const RCC_SYSCLKSOURCE_STATUS_PLLCLK: u32 = 16;
pub const RCC_SYSCLKSOURCE_STATUS_LSI: u32 = 24;
pub const RCC_SYSCLKSOURCE_STATUS_LSE: u32 = 32;
pub const RCC_SYSCLK_DIV1: u32 = 0;
pub const RCC_SYSCLK_DIV2: u32 = 2048;
pub const RCC_SYSCLK_DIV4: u32 = 2304;
pub const RCC_SYSCLK_DIV8: u32 = 2560;
pub const RCC_SYSCLK_DIV16: u32 = 2816;
pub const RCC_SYSCLK_DIV64: u32 = 3072;
pub const RCC_SYSCLK_DIV128: u32 = 3328;
pub const RCC_SYSCLK_DIV256: u32 = 3584;
pub const RCC_SYSCLK_DIV512: u32 = 3840;
pub const RCC_HCLK_DIV1: u32 = 0;
pub const RCC_HCLK_DIV2: u32 = 16384;
pub const RCC_HCLK_DIV4: u32 = 20480;
pub const RCC_HCLK_DIV8: u32 = 24576;
pub const RCC_HCLK_DIV16: u32 = 28672;
pub const RCC_RTCCLKSOURCE_NONE: u32 = 0;
pub const RCC_RTCCLKSOURCE_LSE: u32 = 256;
pub const RCC_RTCCLKSOURCE_LSI: u32 = 512;
pub const RCC_RTCCLKSOURCE_HSE_DIV128: u32 = 768;
pub const RCC_MCO: u32 = 0;
pub const RCC_MCO1: u32 = 0;
pub const RCC_MCO2: u32 = 1;
pub const RCC_MCO3: u32 = 2;
pub const RCC_MCO4: u32 = 3;
pub const RCC_MCO5: u32 = 4;
pub const RCC_MCO6: u32 = 5;
pub const RCC_MCO7: u32 = 6;
pub const RCC_MCO1SOURCE_NOCLOCK: u32 = 0;
pub const RCC_MCO1SOURCE_SYSCLK: u32 = 16777216;
pub const RCC_MCO1SOURCE_HSI10M: u32 = 33554432;
pub const RCC_MCO1SOURCE_HSI: u32 = 50331648;
pub const RCC_MCO1SOURCE_HSE: u32 = 67108864;
pub const RCC_MCO1SOURCE_PLLCLK: u32 = 83886080;
pub const RCC_MCO1SOURCE_LSI: u32 = 100663296;
pub const RCC_MCO1SOURCE_LSE: u32 = 117440512;
pub const RCC_MCODIV_1: u32 = 0;
pub const RCC_MCODIV_2: u32 = 268435456;
pub const RCC_MCODIV_4: u32 = 536870912;
pub const RCC_MCODIV_8: u32 = 805306368;
pub const RCC_MCODIV_16: u32 = 1073741824;
pub const RCC_MCODIV_32: u32 = 1342177280;
pub const RCC_MCODIV_64: u32 = 1610612736;
pub const RCC_MCODIV_128: u32 = 1879048192;
pub const RCC_IT_LSIRDY: u32 = 1;
pub const RCC_IT_LSERDY: u32 = 2;
pub const RCC_IT_LSECSS: u32 = 512;
pub const RCC_IT_HSIRDY: u32 = 8;
pub const RCC_IT_HSERDY: u32 = 16;
pub const RCC_IT_PLLRDY: u32 = 32;
pub const RCC_IT_CSS: u32 = 256;
pub const RCC_FLAG_HSIRDY: u32 = 42;
pub const RCC_FLAG_HSERDY: u32 = 49;
pub const RCC_FLAG_PLLRDY: u32 = 57;
pub const RCC_FLAG_LSERDY: u32 = 65;
pub const RCC_FLAG_LSIRDY: u32 = 97;
pub const RCC_FLAG_OBLRST: u32 = 121;
pub const RCC_FLAG_PINRST: u32 = 122;
pub const RCC_FLAG_PWRRST: u32 = 123;
pub const RCC_FLAG_SFTRST: u32 = 124;
pub const RCC_FLAG_IWDGRST: u32 = 125;
pub const RCC_FLAG_WWDGRST: u32 = 126;
#[doc = " @brief  RCC extended clocks structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RCC_PeriphCLKInitTypeDef {
    #[doc = "< The Extended Clock to be configured.\nThis parameter can be a value of @ref RCCEx_Periph_Clock_Selection"]
    pub PeriphClockSelection: u32,
    #[doc = "< Specifies PVD clock source.\nThis parameter can be a value of @ref RCCEx_PVD_Clock_Source"]
    pub PvdClockSelection: u32,
    #[doc = "< Specifies COMP1 clock source.\nThis parameter can be a value of @ref RCCEx_COMP1_Clock_Source"]
    pub Comp1ClockSelection: u32,
    #[doc = "< Specifies COMP2 clock source.\nThis parameter can be a value of @ref RCCEx_COMP2_Clock_Source"]
    pub Comp2ClockSelection: u32,
    #[doc = "< Specifies LPTIM1 clock source\nThis parameter can be a value of @ref RCCEx_LPTIM1_Clock_Source"]
    pub LptimClockSelection: u32,
    #[doc = "< Specifies RTC clock source.\nThis parameter can be a value of @ref RCC_RTC_Clock_Source"]
    pub RTCClockSelection: u32,
}
const _: () = {
    ["Size of RCC_PeriphCLKInitTypeDef"]
        [::core::mem::size_of::<RCC_PeriphCLKInitTypeDef>() - 24usize];
    ["Alignment of RCC_PeriphCLKInitTypeDef"]
        [::core::mem::align_of::<RCC_PeriphCLKInitTypeDef>() - 4usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::PeriphClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, PeriphClockSelection) - 0usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::PvdClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, PvdClockSelection) - 4usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::Comp1ClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, Comp1ClockSelection) - 8usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::Comp2ClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, Comp2ClockSelection) - 12usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::LptimClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, LptimClockSelection) - 16usize];
    ["Offset of field: RCC_PeriphCLKInitTypeDef::RTCClockSelection"]
        [::core::mem::offset_of!(RCC_PeriphCLKInitTypeDef, RTCClockSelection) - 20usize];
};
pub const RCC_LSCOSOURCE_LSI: u32 = 0;
pub const RCC_LSCOSOURCE_LSE: u32 = 33554432;
pub const RCC_PERIPHCLK_PVD: u32 = 1;
pub const RCC_PERIPHCLK_COMP1: u32 = 2;
pub const RCC_PERIPHCLK_COMP2: u32 = 32;
pub const RCC_PERIPHCLK_LPTIM: u32 = 512;
pub const RCC_PERIPHCLK_RTC: u32 = 131072;
pub const RCC_PVDCLKSOURCE_PCLK: u32 = 0;
pub const RCC_PVDCLKSOURCE_LSC: u32 = 128;
pub const RCC_COMP1CLKSOURCE_PCLK: u32 = 0;
pub const RCC_COMP1CLKSOURCE_LSC: u32 = 256;
pub const RCC_COMP2CLKSOURCE_PCLK: u32 = 0;
pub const RCC_COMP2CLKSOURCE_LSC: u32 = 512;
pub const RCC_LPTIMCLKSOURCE_PCLK: u32 = 0;
pub const RCC_LPTIMCLKSOURCE_LSI: u32 = 262144;
pub const RCC_LPTIMCLKSOURCE_LSE: u32 = 786432;
extern "C" {
    #[doc = " @addtogroup RCCEx_Exported_Functions_Group1\n @{"]
    pub fn HAL_RCCEx_PeriphCLKConfig(
        PeriphClkInit: *mut RCC_PeriphCLKInitTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RCCEx_GetPeriphCLKConfig(PeriphClkInit: *mut RCC_PeriphCLKInitTypeDef);
}
extern "C" {
    pub fn HAL_RCCEx_GetPeriphCLKFreq(PeriphClk: u32) -> u32;
}
extern "C" {
    pub fn HAL_RCCEx_EnableLSCO(LSCOSource: u32);
}
extern "C" {
    pub fn HAL_RCCEx_DisableLSCO();
}
extern "C" {
    #[doc = " @addtogroup RCC_Exported_Functions_Group1\n @{"]
    pub fn HAL_RCC_DeInit() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RCC_OscConfig(RCC_OscInitStruct: *mut RCC_OscInitTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RCC_ClockConfig(
        RCC_ClkInitStruct: *mut RCC_ClkInitTypeDef,
        FLatency: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup RCC_Exported_Functions_Group2\n @{"]
    pub fn HAL_RCC_MCOConfig(RCC_MCOx: u32, RCC_MCOSource: u32, RCC_MCODiv: u32);
}
extern "C" {
    pub fn HAL_RCC_EnableCSS();
}
extern "C" {
    pub fn HAL_RCC_EnableLSECSS();
}
extern "C" {
    pub fn HAL_RCC_DisableLSECSS();
}
extern "C" {
    pub fn HAL_RCC_LSECSSCallback();
}
extern "C" {
    pub fn HAL_RCC_GetSysClockFreq() -> u32;
}
extern "C" {
    pub fn HAL_RCC_GetHCLKFreq() -> u32;
}
extern "C" {
    pub fn HAL_RCC_GetPCLK1Freq() -> u32;
}
extern "C" {
    pub fn HAL_RCC_GetOscConfig(RCC_OscInitStruct: *mut RCC_OscInitTypeDef);
}
extern "C" {
    pub fn HAL_RCC_GetClockConfig(RCC_ClkInitStruct: *mut RCC_ClkInitTypeDef, pFLatency: *mut u32);
}
extern "C" {
    pub fn HAL_RCC_NMI_IRQHandler();
}
extern "C" {
    pub fn HAL_RCC_CSSCallback();
}
pub const EXTI_CallbackIDTypeDef_HAL_EXTI_COMMON_CB_ID: EXTI_CallbackIDTypeDef = 0;
#[doc = " @defgroup EXTI_Exported_Types EXTI Exported Types\n @{"]
pub type EXTI_CallbackIDTypeDef = ::core::ffi::c_uint;
#[doc = " @brief  EXTI Handle structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EXTI_HandleTypeDef {
    #[doc = "<  Exti line number"]
    pub Line: u32,
    #[doc = "<  Exti pending callback"]
    pub PendingCallback: ::core::option::Option<unsafe extern "C" fn()>,
}
const _: () = {
    ["Size of EXTI_HandleTypeDef"][::core::mem::size_of::<EXTI_HandleTypeDef>() - 8usize];
    ["Alignment of EXTI_HandleTypeDef"][::core::mem::align_of::<EXTI_HandleTypeDef>() - 4usize];
    ["Offset of field: EXTI_HandleTypeDef::Line"]
        [::core::mem::offset_of!(EXTI_HandleTypeDef, Line) - 0usize];
    ["Offset of field: EXTI_HandleTypeDef::PendingCallback"]
        [::core::mem::offset_of!(EXTI_HandleTypeDef, PendingCallback) - 4usize];
};
#[doc = " @brief  EXTI Configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct EXTI_ConfigTypeDef {
    #[doc = "< The Exti line to be configured. This parameter\ncan be a value of @ref EXTI_Line"]
    pub Line: u32,
    #[doc = "< The Exit Mode to be configured for a core.\nThis parameter can be a combination of @ref EXTI_Mode"]
    pub Mode: u32,
    #[doc = "< The Exti Trigger to be configured. This parameter\ncan be a value of @ref EXTI_Trigger"]
    pub Trigger: u32,
    #[doc = "< The Exti GPIO multiplexer selection to be configured.\nThis parameter is only possible for line 0 to 15. It\ncan be a value of @ref EXTI_GPIOSel"]
    pub GPIOSel: u32,
}
const _: () = {
    ["Size of EXTI_ConfigTypeDef"][::core::mem::size_of::<EXTI_ConfigTypeDef>() - 16usize];
    ["Alignment of EXTI_ConfigTypeDef"][::core::mem::align_of::<EXTI_ConfigTypeDef>() - 4usize];
    ["Offset of field: EXTI_ConfigTypeDef::Line"]
        [::core::mem::offset_of!(EXTI_ConfigTypeDef, Line) - 0usize];
    ["Offset of field: EXTI_ConfigTypeDef::Mode"]
        [::core::mem::offset_of!(EXTI_ConfigTypeDef, Mode) - 4usize];
    ["Offset of field: EXTI_ConfigTypeDef::Trigger"]
        [::core::mem::offset_of!(EXTI_ConfigTypeDef, Trigger) - 8usize];
    ["Offset of field: EXTI_ConfigTypeDef::GPIOSel"]
        [::core::mem::offset_of!(EXTI_ConfigTypeDef, GPIOSel) - 12usize];
};
pub const EXTI_LINE_0: u32 = 100663296;
pub const EXTI_LINE_1: u32 = 100663297;
pub const EXTI_LINE_2: u32 = 100663298;
pub const EXTI_LINE_3: u32 = 100663299;
pub const EXTI_LINE_4: u32 = 100663300;
pub const EXTI_LINE_5: u32 = 100663301;
pub const EXTI_LINE_6: u32 = 100663302;
pub const EXTI_LINE_7: u32 = 100663303;
pub const EXTI_LINE_8: u32 = 100663304;
pub const EXTI_LINE_9: u32 = 100663305;
pub const EXTI_LINE_10: u32 = 100663306;
pub const EXTI_LINE_11: u32 = 100663307;
pub const EXTI_LINE_12: u32 = 100663308;
pub const EXTI_LINE_13: u32 = 100663309;
pub const EXTI_LINE_14: u32 = 100663310;
pub const EXTI_LINE_15: u32 = 100663311;
pub const EXTI_LINE_16: u32 = 33554448;
pub const EXTI_LINE_17: u32 = 33554449;
pub const EXTI_LINE_18: u32 = 33554450;
pub const EXTI_LINE_19: u32 = 16777235;
pub const EXTI_LINE_20: u32 = 134217748;
pub const EXTI_LINE_21: u32 = 134217749;
pub const EXTI_LINE_22: u32 = 134217750;
pub const EXTI_LINE_23: u32 = 134217751;
pub const EXTI_LINE_24: u32 = 134217752;
pub const EXTI_LINE_25: u32 = 134217753;
pub const EXTI_LINE_26: u32 = 134217754;
pub const EXTI_LINE_27: u32 = 134217755;
pub const EXTI_LINE_28: u32 = 134217756;
pub const EXTI_LINE_29: u32 = 16777245;
pub const EXTI_LINE_30: u32 = 134217758;
pub const EXTI_LINE_31: u32 = 134217759;
pub const EXTI_MODE_NONE: u32 = 0;
pub const EXTI_MODE_INTERRUPT: u32 = 1;
pub const EXTI_MODE_EVENT: u32 = 2;
pub const EXTI_TRIGGER_NONE: u32 = 0;
pub const EXTI_TRIGGER_RISING: u32 = 1;
pub const EXTI_TRIGGER_FALLING: u32 = 2;
pub const EXTI_TRIGGER_RISING_FALLING: u32 = 3;
pub const EXTI_GPIOA: u32 = 0;
pub const EXTI_GPIOB: u32 = 1;
pub const EXTI_GPIOF: u32 = 2;
pub const EXTI_PROPERTY_SHIFT: u32 = 24;
pub const EXTI_DIRECT: u32 = 16777216;
pub const EXTI_CONFIG: u32 = 33554432;
pub const EXTI_GPIO: u32 = 100663296;
pub const EXTI_RESERVED: u32 = 134217728;
pub const EXTI_PROPERTY_MASK: u32 = 117440512;
pub const EXTI_REG_SHIFT: u32 = 16;
pub const EXTI_REG1: u32 = 0;
pub const EXTI_REG2: u32 = 65536;
pub const EXTI_REG_MASK: u32 = 65536;
pub const EXTI_PIN_MASK: u32 = 31;
pub const EXTI_MODE_MASK: u32 = 3;
pub const EXTI_TRIGGER_MASK: u32 = 3;
pub const EXTI_LINE_NB: u32 = 32;
extern "C" {
    #[doc = " @defgroup EXTI_Exported_Functions_Group1 Configuration functions\n @brief    Configuration functions\n @{"]
    pub fn HAL_EXTI_SetConfigLine(
        hexti: *mut EXTI_HandleTypeDef,
        pExtiConfig: *mut EXTI_ConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_EXTI_GetConfigLine(
        hexti: *mut EXTI_HandleTypeDef,
        pExtiConfig: *mut EXTI_ConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_EXTI_ClearConfigLine(hexti: *mut EXTI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_EXTI_RegisterCallback(
        hexti: *mut EXTI_HandleTypeDef,
        CallbackID: EXTI_CallbackIDTypeDef,
        pPendingCbfn: ::core::option::Option<unsafe extern "C" fn()>,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_EXTI_GetHandle(hexti: *mut EXTI_HandleTypeDef, ExtiLine: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @defgroup EXTI_Exported_Functions_Group2 IO operation functions\n @brief    IO operation functions\n @{"]
    pub fn HAL_EXTI_IRQHandler(hexti: *mut EXTI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_EXTI_GetPending(hexti: *mut EXTI_HandleTypeDef, Edge: u32) -> u32;
}
extern "C" {
    pub fn HAL_EXTI_ClearPending(hexti: *mut EXTI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_EXTI_GenerateSWI(hexti: *mut EXTI_HandleTypeDef);
}
#[doc = " @defgroup GPIO_Exported_Types GPIO Exported Types\n @{\n/\n/**\n @brief   GPIO Init structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct GPIO_InitTypeDef {
    #[doc = "< Specifies the GPIO pins to be configured.\nThis parameter can be any value of @ref GPIO_pins"]
    pub Pin: u32,
    #[doc = "< Specifies the operating mode for the selected pins.\nThis parameter can be a value of @ref GPIO_mode"]
    pub Mode: u32,
    #[doc = "< Specifies the Pull-Up or Pull-Down activation for the selected pins.\nThis parameter can be a value of @ref GPIO_pull"]
    pub Pull: u32,
    #[doc = "< Specifies the speed for the selected pins.\nThis parameter can be a value of @ref GPIO_speed"]
    pub Speed: u32,
    #[doc = "< Peripheral to be connected to the selected pins\nThis parameter can be a value of @ref GPIOEx_Alternate_function_selection"]
    pub Alternate: u32,
}
const _: () = {
    ["Size of GPIO_InitTypeDef"][::core::mem::size_of::<GPIO_InitTypeDef>() - 20usize];
    ["Alignment of GPIO_InitTypeDef"][::core::mem::align_of::<GPIO_InitTypeDef>() - 4usize];
    ["Offset of field: GPIO_InitTypeDef::Pin"]
        [::core::mem::offset_of!(GPIO_InitTypeDef, Pin) - 0usize];
    ["Offset of field: GPIO_InitTypeDef::Mode"]
        [::core::mem::offset_of!(GPIO_InitTypeDef, Mode) - 4usize];
    ["Offset of field: GPIO_InitTypeDef::Pull"]
        [::core::mem::offset_of!(GPIO_InitTypeDef, Pull) - 8usize];
    ["Offset of field: GPIO_InitTypeDef::Speed"]
        [::core::mem::offset_of!(GPIO_InitTypeDef, Speed) - 12usize];
    ["Offset of field: GPIO_InitTypeDef::Alternate"]
        [::core::mem::offset_of!(GPIO_InitTypeDef, Alternate) - 16usize];
};
pub const GPIO_PinState_GPIO_PIN_RESET: GPIO_PinState = 0;
pub const GPIO_PinState_GPIO_PIN_SET: GPIO_PinState = 1;
#[doc = " @brief  GPIO Bit SET and Bit RESET enumeration"]
pub type GPIO_PinState = ::core::ffi::c_uint;
pub const GPIO_PIN_0: u16 = 1u8 as u16;
pub const GPIO_PIN_1: u16 = 2u8 as u16;
pub const GPIO_PIN_2: u16 = 4u8 as u16;
pub const GPIO_PIN_3: u16 = 8u8 as u16;
pub const GPIO_PIN_4: u16 = 16u8 as u16;
pub const GPIO_PIN_5: u16 = 32u8 as u16;
pub const GPIO_PIN_6: u16 = 64u8 as u16;
pub const GPIO_PIN_7: u16 = 128u8 as u16;
pub const GPIO_PIN_8: u16 = 256u16 as u16;
pub const GPIO_PIN_9: u16 = 512u16 as u16;
pub const GPIO_PIN_10: u16 = 1024u16 as u16;
pub const GPIO_PIN_11: u16 = 2048u16 as u16;
pub const GPIO_PIN_12: u16 = 4096u16 as u16;
pub const GPIO_PIN_13: u16 = 8192u16 as u16;
pub const GPIO_PIN_14: u16 = 16384u16 as u16;
pub const GPIO_PIN_15: u16 = 32768u16 as u16;
pub const GPIO_PIN_All: u16 = 65535u16 as u16;
pub const GPIO_PIN_MASK: u32 = 65535;
pub const GPIO_MODE_INPUT: u32 = 0;
pub const GPIO_MODE_OUTPUT_PP: u32 = 1;
pub const GPIO_MODE_OUTPUT_OD: u32 = 17;
pub const GPIO_MODE_AF_PP: u32 = 2;
pub const GPIO_MODE_AF_OD: u32 = 18;
pub const GPIO_MODE_ANALOG: u32 = 3;
pub const GPIO_MODE_IT_RISING: u32 = 269549568;
pub const GPIO_MODE_IT_FALLING: u32 = 270598144;
pub const GPIO_MODE_IT_RISING_FALLING: u32 = 271646720;
pub const GPIO_MODE_EVT_RISING: u32 = 269615104;
pub const GPIO_MODE_EVT_FALLING: u32 = 270663680;
pub const GPIO_MODE_EVT_RISING_FALLING: u32 = 271712256;
pub const GPIO_SPEED_FREQ_LOW: u32 = 0;
pub const GPIO_SPEED_FREQ_MEDIUM: u32 = 1;
pub const GPIO_SPEED_FREQ_HIGH: u32 = 2;
pub const GPIO_SPEED_FREQ_VERY_HIGH: u32 = 3;
pub const GPIO_NOPULL: u32 = 0;
pub const GPIO_PULLUP: u32 = 1;
pub const GPIO_PULLDOWN: u32 = 2;
pub const GPIO_AF0_SWJ: u8 = 0u8 as u8;
pub const GPIO_AF0_SPI1: u8 = 0u8 as u8;
pub const GPIO_AF0_SPI2: u8 = 0u8 as u8;
pub const GPIO_AF0_TIM14: u8 = 0u8 as u8;
pub const GPIO_AF0_USART1: u8 = 0u8 as u8;
pub const GPIO_AF1_IR: u8 = 1u8 as u8;
pub const GPIO_AF1_SPI2: u8 = 1u8 as u8;
pub const GPIO_AF1_TIM1: u8 = 1u8 as u8;
pub const GPIO_AF1_TIM3: u8 = 1u8 as u8;
pub const GPIO_AF1_USART1: u8 = 1u8 as u8;
pub const GPIO_AF2_SPI2: u8 = 2u8 as u8;
pub const GPIO_AF2_TIM1: u8 = 2u8 as u8;
pub const GPIO_AF2_TIM14: u8 = 2u8 as u8;
pub const GPIO_AF2_TIM16: u8 = 2u8 as u8;
pub const GPIO_AF2_TIM17: u8 = 2u8 as u8;
pub const GPIO_AF3_LED: u8 = 3u8 as u8;
pub const GPIO_AF3_USART1: u8 = 3u8 as u8;
pub const GPIO_AF3_USART2: u8 = 3u8 as u8;
pub const GPIO_AF3_SPI2: u8 = 3u8 as u8;
pub const GPIO_AF4_TIM14: u8 = 4u8 as u8;
pub const GPIO_AF4_USART2: u8 = 4u8 as u8;
pub const GPIO_AF5_LPTIM: u8 = 5u8 as u8;
pub const GPIO_AF5_USART2: u8 = 5u8 as u8;
pub const GPIO_AF5_EVENTOUT: u8 = 5u8 as u8;
pub const GPIO_AF5_TIM16: u8 = 5u8 as u8;
pub const GPIO_AF5_TIM17: u8 = 5u8 as u8;
pub const GPIO_AF5_MCO: u8 = 5u8 as u8;
pub const GPIO_AF6_I2C: u8 = 6u8 as u8;
pub const GPIO_AF6_LED: u8 = 6u8 as u8;
pub const GPIO_AF6_MCO: u8 = 6u8 as u8;
pub const GPIO_AF6_EVENTOUT: u8 = 6u8 as u8;
pub const GPIO_AF7_EVENTOUT: u8 = 7u8 as u8;
pub const GPIO_AF7_COMP1: u8 = 7u8 as u8;
pub const GPIO_AF7_COMP2: u8 = 7u8 as u8;
pub const GPIO_AF8_USART1: u8 = 8u8 as u8;
pub const GPIO_AF9_USART2: u8 = 9u8 as u8;
pub const GPIO_AF10_SPI1: u8 = 10u8 as u8;
pub const GPIO_AF11_SPI2: u8 = 11u8 as u8;
pub const GPIO_AF12_I2C: u8 = 12u8 as u8;
pub const GPIO_AF13_TIM1: u8 = 13u8 as u8;
pub const GPIO_AF13_TIM3: u8 = 13u8 as u8;
pub const GPIO_AF13_TIM14: u8 = 13u8 as u8;
pub const GPIO_AF13_TIM17: u8 = 13u8 as u8;
pub const GPIO_AF14_TIM1: u8 = 14u8 as u8;
pub const GPIO_AF15_RTCOUT: u8 = 15u8 as u8;
pub const GPIO_AF15_MCO: u8 = 15u8 as u8;
pub const GPIO_AF15_IR: u8 = 15u8 as u8;
extern "C" {
    #[doc = " @defgroup GPIO_Exported_Functions_Group1 Initialization/de-initialization functions\n  @brief    Initialization and Configuration functions\n @{"]
    pub fn HAL_GPIO_Init(GPIOx: *mut GPIO_TypeDef, GPIO_Init: *mut GPIO_InitTypeDef);
}
extern "C" {
    pub fn HAL_GPIO_DeInit(GPIOx: *mut GPIO_TypeDef, GPIO_Pin: u32);
}
extern "C" {
    #[doc = " @defgroup GPIO_Exported_Functions_Group2 IO operation functions\n  @brief    IO operation functions\n @{"]
    pub fn HAL_GPIO_ReadPin(GPIOx: *mut GPIO_TypeDef, GPIO_Pin: u16) -> GPIO_PinState;
}
extern "C" {
    pub fn HAL_GPIO_WritePin(GPIOx: *mut GPIO_TypeDef, GPIO_Pin: u16, PinState: GPIO_PinState);
}
extern "C" {
    pub fn HAL_GPIO_TogglePin(GPIOx: *mut GPIO_TypeDef, GPIO_Pin: u16);
}
extern "C" {
    pub fn HAL_GPIO_LockPin(GPIOx: *mut GPIO_TypeDef, GPIO_Pin: u16) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_GPIO_EXTI_IRQHandler(GPIO_Pin: u16);
}
extern "C" {
    pub fn HAL_GPIO_EXTI_Callback(GPIO_Pin: u16);
}
pub const SYSTICK_CLKSOURCE_HCLK_DIV8: u32 = 0;
pub const SYSTICK_CLKSOURCE_HCLK: u32 = 4;
extern "C" {
    #[doc = " @defgroup CORTEX_Exported_Functions_Group1 Initialization and Configuration functions\n  @brief    Initialization and Configuration functions\n @{"]
    pub fn HAL_NVIC_SetPriority(IRQn: IRQn_Type, PreemptPriority: u32, SubPriority: u32);
}
extern "C" {
    pub fn HAL_NVIC_EnableIRQ(IRQn: IRQn_Type);
}
extern "C" {
    pub fn HAL_NVIC_DisableIRQ(IRQn: IRQn_Type);
}
extern "C" {
    pub fn HAL_NVIC_SystemReset();
}
extern "C" {
    pub fn HAL_SYSTICK_Config(TicksNumb: u32) -> u32;
}
extern "C" {
    #[doc = " @defgroup CORTEX_Exported_Functions_Group2 Peripheral Control functions\n  @brief   Cortex control functions\n @{"]
    pub fn HAL_NVIC_GetPriority(IRQn: IRQn_Type) -> u32;
}
extern "C" {
    pub fn HAL_NVIC_GetPendingIRQ(IRQn: IRQn_Type) -> u32;
}
extern "C" {
    pub fn HAL_NVIC_SetPendingIRQ(IRQn: IRQn_Type);
}
extern "C" {
    pub fn HAL_NVIC_ClearPendingIRQ(IRQn: IRQn_Type);
}
extern "C" {
    pub fn HAL_SYSTICK_CLKSourceConfig(CLKSource: u32);
}
extern "C" {
    pub fn HAL_SYSTICK_IRQHandler();
}
extern "C" {
    pub fn HAL_SYSTICK_Callback();
}
#[doc = " @brief  DMA Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct DMA_InitTypeDef {
    #[doc = "< Specifies if the data will be transferred from memory to peripheral,\nfrom memory to memory or from peripheral to memory.\nThis parameter can be a value of @ref DMA_Data_transfer_direction"]
    pub Direction: u32,
    #[doc = "< Specifies whether the Peripheral address register should be incremented or not.\nThis parameter can be a value of @ref DMA_Peripheral_incremented_mode"]
    pub PeriphInc: u32,
    #[doc = "< Specifies whether the memory address register should be incremented or not.\nThis parameter can be a value of @ref DMA_Memory_incremented_mode"]
    pub MemInc: u32,
    #[doc = "< Specifies the Peripheral data width.\nThis parameter can be a value of @ref DMA_Peripheral_data_size"]
    pub PeriphDataAlignment: u32,
    #[doc = "< Specifies the Memory data width.\nThis parameter can be a value of @ref DMA_Memory_data_size"]
    pub MemDataAlignment: u32,
    #[doc = "< Specifies the operation mode of the DMAy Channelx.\nThis parameter can be a value of @ref DMA_mode\n@note The circular buffer mode cannot be used if the memory-to-memory\ndata transfer is configured on the selected Channel"]
    pub Mode: u32,
    #[doc = "< Specifies the software priority for the DMAy Channelx.\nThis parameter can be a value of @ref DMA_Priority_level"]
    pub Priority: u32,
}
const _: () = {
    ["Size of DMA_InitTypeDef"][::core::mem::size_of::<DMA_InitTypeDef>() - 28usize];
    ["Alignment of DMA_InitTypeDef"][::core::mem::align_of::<DMA_InitTypeDef>() - 4usize];
    ["Offset of field: DMA_InitTypeDef::Direction"]
        [::core::mem::offset_of!(DMA_InitTypeDef, Direction) - 0usize];
    ["Offset of field: DMA_InitTypeDef::PeriphInc"]
        [::core::mem::offset_of!(DMA_InitTypeDef, PeriphInc) - 4usize];
    ["Offset of field: DMA_InitTypeDef::MemInc"]
        [::core::mem::offset_of!(DMA_InitTypeDef, MemInc) - 8usize];
    ["Offset of field: DMA_InitTypeDef::PeriphDataAlignment"]
        [::core::mem::offset_of!(DMA_InitTypeDef, PeriphDataAlignment) - 12usize];
    ["Offset of field: DMA_InitTypeDef::MemDataAlignment"]
        [::core::mem::offset_of!(DMA_InitTypeDef, MemDataAlignment) - 16usize];
    ["Offset of field: DMA_InitTypeDef::Mode"]
        [::core::mem::offset_of!(DMA_InitTypeDef, Mode) - 20usize];
    ["Offset of field: DMA_InitTypeDef::Priority"]
        [::core::mem::offset_of!(DMA_InitTypeDef, Priority) - 24usize];
};
#[doc = "< DMA not yet initialized or disabled"]
pub const HAL_DMA_StateTypeDef_HAL_DMA_STATE_RESET: HAL_DMA_StateTypeDef = 0;
#[doc = "< DMA initialized and ready for use"]
pub const HAL_DMA_StateTypeDef_HAL_DMA_STATE_READY: HAL_DMA_StateTypeDef = 1;
#[doc = "< DMA process is ongoing"]
pub const HAL_DMA_StateTypeDef_HAL_DMA_STATE_BUSY: HAL_DMA_StateTypeDef = 2;
#[doc = "< DMA timeout state"]
pub const HAL_DMA_StateTypeDef_HAL_DMA_STATE_TIMEOUT: HAL_DMA_StateTypeDef = 3;
#[doc = " @brief  HAL DMA State structures definition"]
pub type HAL_DMA_StateTypeDef = ::core::ffi::c_uint;
#[doc = "< Full transfer"]
pub const HAL_DMA_LevelCompleteTypeDef_HAL_DMA_FULL_TRANSFER: HAL_DMA_LevelCompleteTypeDef = 0;
#[doc = "< Half Transfer"]
pub const HAL_DMA_LevelCompleteTypeDef_HAL_DMA_HALF_TRANSFER: HAL_DMA_LevelCompleteTypeDef = 1;
#[doc = " @brief  HAL DMA Error Code structure definition"]
pub type HAL_DMA_LevelCompleteTypeDef = ::core::ffi::c_uint;
#[doc = "< Full transfer"]
pub const HAL_DMA_CallbackIDTypeDef_HAL_DMA_XFER_CPLT_CB_ID: HAL_DMA_CallbackIDTypeDef = 0;
#[doc = "< Half transfer"]
pub const HAL_DMA_CallbackIDTypeDef_HAL_DMA_XFER_HALFCPLT_CB_ID: HAL_DMA_CallbackIDTypeDef = 1;
#[doc = "< Error"]
pub const HAL_DMA_CallbackIDTypeDef_HAL_DMA_XFER_ERROR_CB_ID: HAL_DMA_CallbackIDTypeDef = 2;
#[doc = "< Abort"]
pub const HAL_DMA_CallbackIDTypeDef_HAL_DMA_XFER_ABORT_CB_ID: HAL_DMA_CallbackIDTypeDef = 3;
#[doc = "< All"]
pub const HAL_DMA_CallbackIDTypeDef_HAL_DMA_XFER_ALL_CB_ID: HAL_DMA_CallbackIDTypeDef = 4;
#[doc = " @brief  HAL DMA Callback ID structure definition"]
pub type HAL_DMA_CallbackIDTypeDef = ::core::ffi::c_uint;
#[doc = " @brief  DMA handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __DMA_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut DMA_Channel_TypeDef,
    #[doc = "< DMA communication parameters"]
    pub Init: DMA_InitTypeDef,
    #[doc = "< DMA locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< DMA transfer state"]
    pub State: HAL_DMA_StateTypeDef,
    #[doc = "< Parent object state"]
    pub Parent: *mut ::core::ffi::c_void,
    #[doc = "< DMA transfer complete callback"]
    pub XferCpltCallback:
        ::core::option::Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
    #[doc = "< DMA Half transfer complete callback"]
    pub XferHalfCpltCallback:
        ::core::option::Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
    #[doc = "< DMA transfer error callback"]
    pub XferErrorCallback:
        ::core::option::Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
    #[doc = "< DMA transfer abort callback"]
    pub XferAbortCallback:
        ::core::option::Option<unsafe extern "C" fn(hdma: *mut __DMA_HandleTypeDef)>,
    #[doc = "< DMA Error code"]
    pub ErrorCode: u32,
    #[doc = "< DMA Channel Base Address"]
    pub DmaBaseAddress: *mut DMA_TypeDef,
    #[doc = "< DMA Channel Index"]
    pub ChannelIndex: u32,
}
const _: () = {
    ["Size of __DMA_HandleTypeDef"][::core::mem::size_of::<__DMA_HandleTypeDef>() - 72usize];
    ["Alignment of __DMA_HandleTypeDef"][::core::mem::align_of::<__DMA_HandleTypeDef>() - 4usize];
    ["Offset of field: __DMA_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: __DMA_HandleTypeDef::Init"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, Init) - 4usize];
    ["Offset of field: __DMA_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, Lock) - 32usize];
    ["Offset of field: __DMA_HandleTypeDef::State"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, State) - 36usize];
    ["Offset of field: __DMA_HandleTypeDef::Parent"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, Parent) - 40usize];
    ["Offset of field: __DMA_HandleTypeDef::XferCpltCallback"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, XferCpltCallback) - 44usize];
    ["Offset of field: __DMA_HandleTypeDef::XferHalfCpltCallback"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, XferHalfCpltCallback) - 48usize];
    ["Offset of field: __DMA_HandleTypeDef::XferErrorCallback"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, XferErrorCallback) - 52usize];
    ["Offset of field: __DMA_HandleTypeDef::XferAbortCallback"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, XferAbortCallback) - 56usize];
    ["Offset of field: __DMA_HandleTypeDef::ErrorCode"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, ErrorCode) - 60usize];
    ["Offset of field: __DMA_HandleTypeDef::DmaBaseAddress"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, DmaBaseAddress) - 64usize];
    ["Offset of field: __DMA_HandleTypeDef::ChannelIndex"]
        [::core::mem::offset_of!(__DMA_HandleTypeDef, ChannelIndex) - 68usize];
};
#[doc = " @brief  DMA handle Structure definition"]
pub type DMA_HandleTypeDef = __DMA_HandleTypeDef;
pub const HAL_DMA_ERROR_NONE: u32 = 0;
pub const HAL_DMA_ERROR_TE: u32 = 1;
pub const HAL_DMA_ERROR_NO_XFER: u32 = 4;
pub const HAL_DMA_ERROR_TIMEOUT: u32 = 32;
pub const HAL_DMA_ERROR_NOT_SUPPORTED: u32 = 256;
pub const DMA_PERIPH_TO_MEMORY: u32 = 0;
pub const DMA_MEMORY_TO_PERIPH: u32 = 16u8 as u32;
pub const DMA_MEMORY_TO_MEMORY: u32 = 16384u16 as u32;
pub const DMA_PINC_ENABLE: u32 = 64u8 as u32;
pub const DMA_PINC_DISABLE: u32 = 0;
pub const DMA_MINC_ENABLE: u32 = 128u8 as u32;
pub const DMA_MINC_DISABLE: u32 = 0;
pub const DMA_PDATAALIGN_BYTE: u32 = 0;
pub const DMA_PDATAALIGN_HALFWORD: u32 = 256u16 as u32;
pub const DMA_PDATAALIGN_WORD: u32 = 512u16 as u32;
pub const DMA_MDATAALIGN_BYTE: u32 = 0;
pub const DMA_MDATAALIGN_HALFWORD: u32 = 1024u16 as u32;
pub const DMA_MDATAALIGN_WORD: u32 = 2048u16 as u32;
pub const DMA_NORMAL: u32 = 0;
pub const DMA_CIRCULAR: u32 = 32u8 as u32;
pub const DMA_PRIORITY_LOW: u32 = 0;
pub const DMA_PRIORITY_MEDIUM: u32 = 4096u16 as u32;
pub const DMA_PRIORITY_HIGH: u32 = 8192u16 as u32;
pub const DMA_PRIORITY_VERY_HIGH: u32 = 12288u16 as u32;
pub const DMA_IT_TC: u32 = 2u8 as u32;
pub const DMA_IT_HT: u32 = 4u8 as u32;
pub const DMA_IT_TE: u32 = 8u8 as u32;
pub const DMA_FLAG_GL1: u32 = 1;
pub const DMA_FLAG_TC1: u32 = 2;
pub const DMA_FLAG_HT1: u32 = 4;
pub const DMA_FLAG_TE1: u32 = 8;
pub const DMA_FLAG_GL2: u32 = 16;
pub const DMA_FLAG_TC2: u32 = 32;
pub const DMA_FLAG_HT2: u32 = 64;
pub const DMA_FLAG_TE2: u32 = 128;
pub const DMA_FLAG_GL3: u32 = 256;
pub const DMA_FLAG_TC3: u32 = 512;
pub const DMA_FLAG_HT3: u32 = 1024;
pub const DMA_FLAG_TE3: u32 = 2048;
pub const DMA_CHANNEL_MAP_ADC: u32 = 0;
pub const DMA_CHANNEL_MAP_SPI1_TX: u32 = 1;
pub const DMA_CHANNEL_MAP_SPI1_RX: u32 = 2;
pub const DMA_CHANNEL_MAP_SPI2_TX: u32 = 3;
pub const DMA_CHANNEL_MAP_SPI2_RX: u32 = 4;
pub const DMA_CHANNEL_MAP_USART1_TX: u32 = 5;
pub const DMA_CHANNEL_MAP_USART1_RX: u32 = 6;
pub const DMA_CHANNEL_MAP_USART2_TX: u32 = 7;
pub const DMA_CHANNEL_MAP_USART2_RX: u32 = 8;
pub const DMA_CHANNEL_MAP_I2C_TX: u32 = 9;
pub const DMA_CHANNEL_MAP_I2C_RX: u32 = 10;
pub const DMA_CHANNEL_MAP_TIM1_CH1: u32 = 11;
pub const DMA_CHANNEL_MAP_TIM1_CH2: u32 = 12;
pub const DMA_CHANNEL_MAP_TIM1_CH3: u32 = 13;
pub const DMA_CHANNEL_MAP_TIM1_CH4: u32 = 14;
pub const DMA_CHANNEL_MAP_TIM1_COM: u32 = 15;
pub const DMA_CHANNEL_MAP_TIM1_UP: u32 = 16;
pub const DMA_CHANNEL_MAP_TIM1_TRIG: u32 = 17;
pub const DMA_CHANNEL_MAP_TIM3_CH1: u32 = 18;
pub const DMA_CHANNEL_MAP_TIM3_CH3: u32 = 19;
pub const DMA_CHANNEL_MAP_TIM3_CH4: u32 = 20;
pub const DMA_CHANNEL_MAP_TIM3_TRIG: u32 = 21;
pub const DMA_CHANNEL_MAP_TIM3_UP: u32 = 22;
pub const DMA_CHANNEL_MAP_TIM16_CH1: u32 = 24;
pub const DMA_CHANNEL_MAP_TIM16_UP: u32 = 25;
pub const DMA_CHANNEL_MAP_TIM17_CH1: u32 = 26;
pub const DMA_CHANNEL_MAP_TIM17_UP: u32 = 27;
pub const DMA_CHANNEL_MAP_END: u32 = 28;
extern "C" {
    #[doc = " @addtogroup DMA_Exported_Functions_Group1\n @{"]
    pub fn HAL_DMA_Init(hdma: *mut DMA_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_DeInit(hdma: *mut DMA_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup DMA_Exported_Functions_Group2\n @{"]
    pub fn HAL_DMA_Start(
        hdma: *mut DMA_HandleTypeDef,
        SrcAddress: u32,
        DstAddress: u32,
        DataLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_Start_IT(
        hdma: *mut DMA_HandleTypeDef,
        SrcAddress: u32,
        DstAddress: u32,
        DataLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_Abort(hdma: *mut DMA_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_Abort_IT(hdma: *mut DMA_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_PollForTransfer(
        hdma: *mut DMA_HandleTypeDef,
        CompleteLevel: u32,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_IRQHandler(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn HAL_DMA_RegisterCallback(
        hdma: *mut DMA_HandleTypeDef,
        CallbackID: HAL_DMA_CallbackIDTypeDef,
        pCallback: ::core::option::Option<unsafe extern "C" fn(_hdma: *mut DMA_HandleTypeDef)>,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_UnRegisterCallback(
        hdma: *mut DMA_HandleTypeDef,
        CallbackID: HAL_DMA_CallbackIDTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DMA_ChannelMap(hdma: *mut DMA_HandleTypeDef, MapReqNum: u32);
}
extern "C" {
    #[doc = " @addtogroup DMA_Exported_Functions_Group3\n @{"]
    pub fn HAL_DMA_GetState(hdma: *mut DMA_HandleTypeDef) -> HAL_DMA_StateTypeDef;
}
extern "C" {
    pub fn HAL_DMA_GetError(hdma: *mut DMA_HandleTypeDef) -> u32;
}
#[doc = " @brief  Structure definition of ADC initialization and regular group\n @note   The setting of these parameters with function HAL_ADC_Init() is conditioned to ADC state.\n         ADC state can be either:\n          - For all parameters: ADC disabled (this is the only possible ADC state to modify parameter 'ClockPrescaler')\n          - For all parameters except 'ClockPrescaler' and 'resolution': ADC enabled without conversion on going on regular group.\n         If ADC is not in the appropriate state to modify some parameters, these parameters setting is bypassed\n         without error reporting (as it can be the expected behaviour in case of intended action to update another parameter (which fulfills the ADC state condition) on the fly)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ADC_InitTypeDef {
    #[doc = "< Select ADC clock source (synchronous clock derived from APB clock or asynchronous clock derived from ADC dedicated HSI RC oscillator 14MHz) and clock prescaler.\nThis parameter can be a value of @ref ADC_ClockPrescaler\nNote: In case of usage of the ADC dedicated HSI RC oscillator, it must be preliminarily enabled at RCC top level.\nNote: This parameter can be modified only if the ADC is disabled"]
    pub ClockPrescaler: u32,
    #[doc = "< Configures the ADC resolution.\nThis parameter can be a value of @ref ADC_Resolution"]
    pub Resolution: u32,
    #[doc = "< Specifies whether the ADC data  alignment is left or right.\nThis parameter can be a value of @ref ADC_Data_align"]
    pub DataAlign: u32,
    #[doc = "< Configures the sequencer of regular group.\nThis parameter can be associated to parameter 'DiscontinuousConvMode' to have main sequence subdivided in successive parts.\nSequencer is automatically enabled if several channels are set (sequencer cannot be disabled, as it can be the case on other PY32 devices):\nIf only 1 channel is set: Conversion is performed in single mode.\nIf several channels are set:  Conversions are performed in sequence mode (ranks defined by each channel number: channel 0 fixed on rank 0, channel 1 fixed on rank1, ...).\nScan direction can be set to forward (from channel 0 to channel 12) or backward (from channel 18 to channel 0).\nThis parameter can be a value of @ref ADC_Scan_mode"]
    pub ScanConvMode: u32,
    #[doc = "< Specifies what EOC (End Of Conversion) flag is used for conversion by polling and interruption: end of conversion of each rank or complete sequence.\nThis parameter can be a value of @ref ADC_EOCSelection."]
    pub EOCSelection: u32,
    #[doc = "< Selects the dynamic low power Auto Delay: new conversion start only when the previous\nconversion (for regular group) has been treated by user software, using function HAL_ADC_GetValue().\nThis feature automatically adapts the ADC conversions trigs to the speed of the system that reads the data. Moreover, this avoids risk of overrun for low frequency applications.\nThis parameter can be set to ENABLE or DISABLE.\nNote: Do not use with interruption or DMA (HAL_ADC_Start_IT(), HAL_ADC_Start_DMA()) since they have to clear immediately the EOC flag to free the IRQ vector sequencer.\nDo use with polling: 1. Start conversion with HAL_ADC_Start(), 2. Later on, when conversion data is needed: use HAL_ADC_PollForConversion() to ensure that conversion is completed\nand use HAL_ADC_GetValue() to retrieve conversion result and trig another conversion."]
    pub LowPowerAutoWait: FunctionalState,
    #[doc = "< Specifies whether the conversion is performed in single mode (one conversion) or continuous mode for regular group,\nafter the selected trigger occurred (software start or external trigger).\nThis parameter can be set to ENABLE or DISABLE."]
    pub ContinuousConvMode: FunctionalState,
    #[doc = "< Specifies whether the conversions sequence of regular group is performed in Complete-sequence/Discontinuous-sequence (main sequence subdivided in successive parts).\nDiscontinuous mode is used only if sequencer is enabled (parameter 'ScanConvMode'). If sequencer is disabled, this parameter is discarded.\nDiscontinuous mode can be enabled only if continuous mode is disabled. If continuous mode is enabled, this parameter setting is discarded.\nThis parameter can be set to ENABLE or DISABLE\nNote: Number of discontinuous ranks increment is fixed to one-by-one."]
    pub DiscontinuousConvMode: FunctionalState,
    #[doc = "< Selects the external event used to trigger the conversion start of regular group.\nIf set to ADC_SOFTWARE_START, external triggers are disabled.\nThis parameter can be a value of @ref ADC_External_trigger_source_Regular"]
    pub ExternalTrigConv: u32,
    #[doc = "< Selects the external trigger edge of regular group.\nIf trigger is set to ADC_SOFTWARE_START, this parameter is discarded.\nThis parameter can be a value of @ref ADC_External_trigger_edge_Regular"]
    pub ExternalTrigConvEdge: u32,
    #[doc = "< Specifies whether the DMA requests are performed in one shot mode (DMA transfer stop when number of conversions is reached)\nor in Continuous mode (DMA transfer unlimited, whatever number of conversions).\nNote: In continuous mode, DMA must be configured in circular mode. Otherwise an overrun will be triggered when DMA buffer maximum pointer is reached.\nThis parameter can be set to ENABLE or DISABLE."]
    pub DMAContinuousRequests: FunctionalState,
    #[doc = "< Select the behaviour in case of overrun: data preserved or overwritten\nThis parameter has an effect on regular group only, including in DMA mode.\nThis parameter can be a value of @ref ADC_Overrun"]
    pub Overrun: u32,
    #[doc = "< Sampling time value to be set for the selected channel.\nUnit: ADC clock cycles\nConversion time is the addition of sampling time and processing time (12.5 ADC clock cycles at ADC resolution 12 bits, 10.5 cycles at 10 bits, 8.5 cycles at 8 bits, 6.5 cycles at 6 bits).\nNote: On PY32F0 devices, the sampling time setting is common to all channels. On some other PY32 devices, this parameter in channel wise and is located into ADC channel initialization structure.\nThis parameter can be a value of @ref ADC_sampling_times\nNote: In case of usage of internal measurement channels (VrefInt/TempSensor),\nsampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting)\nRefer to device datasheet for timings values, parameters TS_vrefint, TS_temp (values rough order: 5us to 17us)."]
    pub SamplingTimeCommon: u32,
}
const _: () = {
    ["Size of ADC_InitTypeDef"][::core::mem::size_of::<ADC_InitTypeDef>() - 52usize];
    ["Alignment of ADC_InitTypeDef"][::core::mem::align_of::<ADC_InitTypeDef>() - 4usize];
    ["Offset of field: ADC_InitTypeDef::ClockPrescaler"]
        [::core::mem::offset_of!(ADC_InitTypeDef, ClockPrescaler) - 0usize];
    ["Offset of field: ADC_InitTypeDef::Resolution"]
        [::core::mem::offset_of!(ADC_InitTypeDef, Resolution) - 4usize];
    ["Offset of field: ADC_InitTypeDef::DataAlign"]
        [::core::mem::offset_of!(ADC_InitTypeDef, DataAlign) - 8usize];
    ["Offset of field: ADC_InitTypeDef::ScanConvMode"]
        [::core::mem::offset_of!(ADC_InitTypeDef, ScanConvMode) - 12usize];
    ["Offset of field: ADC_InitTypeDef::EOCSelection"]
        [::core::mem::offset_of!(ADC_InitTypeDef, EOCSelection) - 16usize];
    ["Offset of field: ADC_InitTypeDef::LowPowerAutoWait"]
        [::core::mem::offset_of!(ADC_InitTypeDef, LowPowerAutoWait) - 20usize];
    ["Offset of field: ADC_InitTypeDef::ContinuousConvMode"]
        [::core::mem::offset_of!(ADC_InitTypeDef, ContinuousConvMode) - 24usize];
    ["Offset of field: ADC_InitTypeDef::DiscontinuousConvMode"]
        [::core::mem::offset_of!(ADC_InitTypeDef, DiscontinuousConvMode) - 28usize];
    ["Offset of field: ADC_InitTypeDef::ExternalTrigConv"]
        [::core::mem::offset_of!(ADC_InitTypeDef, ExternalTrigConv) - 32usize];
    ["Offset of field: ADC_InitTypeDef::ExternalTrigConvEdge"]
        [::core::mem::offset_of!(ADC_InitTypeDef, ExternalTrigConvEdge) - 36usize];
    ["Offset of field: ADC_InitTypeDef::DMAContinuousRequests"]
        [::core::mem::offset_of!(ADC_InitTypeDef, DMAContinuousRequests) - 40usize];
    ["Offset of field: ADC_InitTypeDef::Overrun"]
        [::core::mem::offset_of!(ADC_InitTypeDef, Overrun) - 44usize];
    ["Offset of field: ADC_InitTypeDef::SamplingTimeCommon"]
        [::core::mem::offset_of!(ADC_InitTypeDef, SamplingTimeCommon) - 48usize];
};
#[doc = " @brief  Structure definition of ADC channel for regular group\n @note   The setting of these parameters with function HAL_ADC_ConfigChannel() is conditioned to ADC state.\n         ADC state can be either:\n          - For all parameters: ADC disabled or enabled without conversion on going on regular group.\n         If ADC is not in the appropriate state to modify some parameters, these parameters setting is bypassed\n         without error reporting (as it can be the expected behaviour in case of intended action to update another parameter (which fulfills the ADC state condition) on the fly)."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ADC_ChannelConfTypeDef {
    #[doc = "< Specifies the channel to configure into ADC regular group.\nThis parameter can be a value of @ref ADC_channels\nNote: Depending on devices, some channels may not be available on package pins. Refer to device datasheet for channels availability."]
    pub Channel: u32,
    #[doc = "< Add or remove the channel from ADC regular group sequencer.\nOn PY32F0 devices,  number of ranks in the sequence is defined by number of channels enabled, rank of each channel is defined by channel number (channel 0 fixed on rank 0, channel 1 fixed on rank1, ...)..\nDespite the channel rank is fixed, this parameter allow an additional possibility: to remove the selected rank (selected channel) from sequencer.\nThis parameter can be a value of @ref ADC_rank"]
    pub Rank: u32,
    #[doc = "< Sampling time value to be set for the selected channel.\nUnit: ADC clock cycles\nConversion time is the addition of sampling time and processing time (12.5 ADC clock cycles at ADC resolution 12 bits, 10.5 cycles at 10 bits, 8.5 cycles at 8 bits, 6.5 cycles at 6 bits).\nThis parameter can be a value of @ref ADC_sampling_times\nCaution: this setting impacts the entire regular group. Therefore, call of HAL_ADC_ConfigChannel() to configure a channel can impact the configuration of other channels previously set.\nCaution: Obsolete parameter. Use parameter \"SamplingTimeCommon\" in ADC initialization structure.\nIf parameter \"SamplingTimeCommon\" is set to a valid sampling time, parameter \"SamplingTime\" is discarded.\nNote: In case of usage of internal measurement channels (VrefInt/TempSensor),\nsampling time constraints must be respected (sampling time can be adjusted in function of ADC clock frequency and sampling time setting)\nRefer to device datasheet for timings values, parameters TS_vrefint, TS_temp (values rough order: 5us to 17us)."]
    pub SamplingTime: u32,
}
const _: () = {
    ["Size of ADC_ChannelConfTypeDef"][::core::mem::size_of::<ADC_ChannelConfTypeDef>() - 12usize];
    ["Alignment of ADC_ChannelConfTypeDef"]
        [::core::mem::align_of::<ADC_ChannelConfTypeDef>() - 4usize];
    ["Offset of field: ADC_ChannelConfTypeDef::Channel"]
        [::core::mem::offset_of!(ADC_ChannelConfTypeDef, Channel) - 0usize];
    ["Offset of field: ADC_ChannelConfTypeDef::Rank"]
        [::core::mem::offset_of!(ADC_ChannelConfTypeDef, Rank) - 4usize];
    ["Offset of field: ADC_ChannelConfTypeDef::SamplingTime"]
        [::core::mem::offset_of!(ADC_ChannelConfTypeDef, SamplingTime) - 8usize];
};
#[doc = " @brief  Structure definition of ADC analog watchdog\n @note   The setting of these parameters with function HAL_ADC_AnalogWDGConfig() is conditioned to ADC state.\n         ADC state can be either: ADC disabled or ADC enabled without conversion on going on regular group."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ADC_AnalogWDGConfTypeDef {
    #[doc = "< Configures the ADC analog watchdog mode: single/all/none channels.\nThis parameter can be a value of @ref ADC_analog_watchdog_mode."]
    pub WatchdogMode: u32,
    #[doc = "< Selects which ADC channel to monitor by analog watchdog.\nThis parameter has an effect only if parameter 'WatchdogMode' is configured on single channel. Only 1 channel can be monitored.\nThis parameter can be a value of @ref ADC_channels."]
    pub Channel: u32,
    #[doc = "< Specifies whether the analog watchdog is configured in interrupt or polling mode.\nThis parameter can be set to ENABLE or DISABLE"]
    pub ITMode: FunctionalState,
    #[doc = "< Configures the ADC analog watchdog High threshold value.\nDepending of ADC resolution selected (12, 10, 8 or 6 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF, 0x3FF, 0xFF or 0x3F respectively."]
    pub HighThreshold: u32,
    #[doc = "< Configures the ADC analog watchdog High threshold value.\nDepending of ADC resolution selected (12, 10, 8 or 6 bits), this parameter must be a number between Min_Data = 0x000 and Max_Data = 0xFFF, 0x3FF, 0xFF or 0x3F respectively."]
    pub LowThreshold: u32,
}
const _: () = {
    ["Size of ADC_AnalogWDGConfTypeDef"]
        [::core::mem::size_of::<ADC_AnalogWDGConfTypeDef>() - 20usize];
    ["Alignment of ADC_AnalogWDGConfTypeDef"]
        [::core::mem::align_of::<ADC_AnalogWDGConfTypeDef>() - 4usize];
    ["Offset of field: ADC_AnalogWDGConfTypeDef::WatchdogMode"]
        [::core::mem::offset_of!(ADC_AnalogWDGConfTypeDef, WatchdogMode) - 0usize];
    ["Offset of field: ADC_AnalogWDGConfTypeDef::Channel"]
        [::core::mem::offset_of!(ADC_AnalogWDGConfTypeDef, Channel) - 4usize];
    ["Offset of field: ADC_AnalogWDGConfTypeDef::ITMode"]
        [::core::mem::offset_of!(ADC_AnalogWDGConfTypeDef, ITMode) - 8usize];
    ["Offset of field: ADC_AnalogWDGConfTypeDef::HighThreshold"]
        [::core::mem::offset_of!(ADC_AnalogWDGConfTypeDef, HighThreshold) - 12usize];
    ["Offset of field: ADC_AnalogWDGConfTypeDef::LowThreshold"]
        [::core::mem::offset_of!(ADC_AnalogWDGConfTypeDef, LowThreshold) - 16usize];
};
pub const HAL_ADC_STATE_RESET: u32 = 0;
pub const HAL_ADC_STATE_READY: u32 = 1;
pub const HAL_ADC_STATE_BUSY_INTERNAL: u32 = 2;
pub const HAL_ADC_STATE_TIMEOUT: u32 = 4;
pub const HAL_ADC_STATE_ERROR_INTERNAL: u32 = 16;
pub const HAL_ADC_STATE_ERROR_CONFIG: u32 = 32;
pub const HAL_ADC_STATE_ERROR_DMA: u32 = 64;
pub const HAL_ADC_STATE_REG_BUSY: u32 = 256;
pub const HAL_ADC_STATE_REG_EOC: u32 = 512;
pub const HAL_ADC_STATE_REG_OVR: u32 = 1024;
pub const HAL_ADC_STATE_REG_EOSMP: u32 = 2048;
pub const HAL_ADC_STATE_INJ_BUSY: u32 = 4096;
pub const HAL_ADC_STATE_INJ_EOC: u32 = 8192;
pub const HAL_ADC_STATE_INJ_JQOVF: u32 = 16384;
pub const HAL_ADC_STATE_AWD1: u32 = 65536;
pub const HAL_ADC_STATE_AWD2: u32 = 131072;
pub const HAL_ADC_STATE_AWD3: u32 = 262144;
pub const HAL_ADC_STATE_MULTIMODE_SLAVE: u32 = 1048576;
#[doc = " @brief  ADC handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __ADC_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut ADC_TypeDef,
    #[doc = "< ADC required parameters"]
    pub Init: ADC_InitTypeDef,
    #[doc = "< Pointer DMA Handler"]
    pub DMA_Handle: *mut DMA_HandleTypeDef,
    #[doc = "< ADC locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< ADC communication state (bitmap of ADC states)"]
    pub State: u32,
    #[doc = "< ADC Error code"]
    pub ErrorCode: u32,
}
const _: () = {
    ["Size of __ADC_HandleTypeDef"][::core::mem::size_of::<__ADC_HandleTypeDef>() - 72usize];
    ["Alignment of __ADC_HandleTypeDef"][::core::mem::align_of::<__ADC_HandleTypeDef>() - 4usize];
    ["Offset of field: __ADC_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: __ADC_HandleTypeDef::Init"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, Init) - 4usize];
    ["Offset of field: __ADC_HandleTypeDef::DMA_Handle"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, DMA_Handle) - 56usize];
    ["Offset of field: __ADC_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, Lock) - 60usize];
    ["Offset of field: __ADC_HandleTypeDef::State"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, State) - 64usize];
    ["Offset of field: __ADC_HandleTypeDef::ErrorCode"]
        [::core::mem::offset_of!(__ADC_HandleTypeDef, ErrorCode) - 68usize];
};
#[doc = " @brief  ADC handle Structure definition"]
pub type ADC_HandleTypeDef = __ADC_HandleTypeDef;
pub const HAL_ADC_ERROR_NONE: u32 = 0;
pub const HAL_ADC_ERROR_INTERNAL: u32 = 1;
pub const HAL_ADC_ERROR_OVR: u32 = 2;
pub const HAL_ADC_ERROR_DMA: u32 = 4;
pub const ADC_CLOCK_SYNC_PCLK_DIV1: u32 = 0;
pub const ADC_CLOCK_SYNC_PCLK_DIV2: u32 = 268435456u32 as u32;
pub const ADC_CLOCK_SYNC_PCLK_DIV4: u32 = 536870912u32 as u32;
pub const ADC_CLOCK_SYNC_PCLK_DIV8: u32 = 805306368u32 as u32;
pub const ADC_CLOCK_SYNC_PCLK_DIV16: u32 = 1073741824u32 as u32;
pub const ADC_CLOCK_SYNC_PCLK_DIV32: u32 = 1342177280u32 as u32;
pub const ADC_CLOCK_SYNC_PCLK_DIV64: u32 = 1610612736u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV1: u32 = 2147483648u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV2: u32 = 2415919104u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV4: u32 = 2684354560u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV8: u32 = 2952790016u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV16: u32 = 3221225472u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV32: u32 = 3489660928u32 as u32;
pub const ADC_CLOCK_ASYNC_HSI_DIV64: u32 = 3758096384u32 as u32;
pub const ADC_RESOLUTION_12B: u32 = 0;
pub const ADC_RESOLUTION_10B: u32 = 8u8 as u32;
pub const ADC_RESOLUTION_8B: u32 = 16u8 as u32;
pub const ADC_RESOLUTION_6B: u32 = 24u8 as u32;
pub const ADC_DATAALIGN_RIGHT: u32 = 0;
pub const ADC_DATAALIGN_LEFT: u32 = 32u8 as u32;
pub const ADC_SCAN_DIRECTION_FORWARD: u32 = 1;
pub const ADC_SCAN_DIRECTION_BACKWARD: u32 = 2;
pub const ADC_SCAN_ENABLE: u32 = 1;
pub const ADC_EXTERNALTRIGCONVEDGE_NONE: u32 = 0;
pub const ADC_EXTERNALTRIGCONVEDGE_RISING: u32 = 1024u16 as u32;
pub const ADC_EXTERNALTRIGCONVEDGE_FALLING: u32 = 2048u16 as u32;
pub const ADC_EXTERNALTRIGCONVEDGE_RISINGFALLING: u32 = 3072u16 as u32;
pub const ADC_EOC_SINGLE_CONV: u32 = 4u8 as u32;
pub const ADC_EOC_SEQ_CONV: u32 = 8u8 as u32;
pub const ADC_OVR_DATA_OVERWRITTEN: u32 = 0;
pub const ADC_OVR_DATA_PRESERVED: u32 = 1;
pub const ADC_RANK_CHANNEL_NUMBER: u32 = 4096;
pub const ADC_RANK_NONE: u32 = 4097;
pub const ADC_SAMPLETIME_3CYCLES_5: u32 = 0;
pub const ADC_SAMPLETIME_5CYCLES_5: u32 = 1u8 as u32;
pub const ADC_SAMPLETIME_7CYCLES_5: u32 = 2u8 as u32;
pub const ADC_SAMPLETIME_13CYCLES_5: u32 = 3u8 as u32;
pub const ADC_SAMPLETIME_28CYCLES_5: u32 = 4u8 as u32;
pub const ADC_SAMPLETIME_41CYCLES_5: u32 = 5u8 as u32;
pub const ADC_SAMPLETIME_71CYCLES_5: u32 = 6u8 as u32;
pub const ADC_SAMPLETIME_239CYCLES_5: u32 = 7u8 as u32;
pub const ADC_ANALOGWATCHDOG_NONE: u32 = 0;
pub const ADC_ANALOGWATCHDOG_SINGLE_REG: u32 = 12582912u32 as u32;
pub const ADC_ANALOGWATCHDOG_ALL_REG: u32 = 8388608u32 as u32;
pub const ADC_AWD_EVENT: u32 = 128u8 as u32;
pub const ADC_OVR_EVENT: u32 = 16u8 as u32;
pub const ADC_IT_AWD: u32 = 128;
pub const ADC_IT_OVR: u32 = 16;
pub const ADC_IT_EOS: u32 = 8;
pub const ADC_IT_EOC: u32 = 4;
pub const ADC_IT_EOSMP: u32 = 2;
pub const ADC_FLAG_AWD: u32 = 128;
pub const ADC_FLAG_OVR: u32 = 16;
pub const ADC_FLAG_EOS: u32 = 8;
pub const ADC_FLAG_EOC: u32 = 4;
pub const ADC_FLAG_EOSMP: u32 = 2;
pub const ADC_CALIBSAMPLETIME_2CYCLES: u32 = 0;
pub const ADC_CALIBSAMPLETIME_4CYCLES: u32 = 4096u16 as u32;
pub const ADC_CALIBSAMPLETIME_8CYCLES: u32 = 8192u16 as u32;
pub const ADC_CALIBSAMPLETIME_1CYCLE: u32 = 12288u16 as u32;
pub const ADC_CALIBSELECTION_ONLYOFFSET: u32 = 0;
pub const ADC_CALIBSELECTION_OFFSET_LINEARITY: u32 = 2048u16 as u32;
pub const ADC_CALIBSTATUS_SUCCESS: u32 = 0;
pub const ADC_CALIBSTATUS_FAIL: u32 = 1073741824u32 as u32;
pub const ADC_CALIBSTATUS_ONGOING: u32 = 2147483648u32 as u32;
pub const ADC_CALIBSTATUS_INVALID: u32 = 3221225472u32 as u32;
pub const ADC1_2_EXTERNALTRIG_T1_TRGO: u32 = 0;
pub const ADC1_2_EXTERNALTRIG_T1_CC4: u32 = 64u8 as u32;
pub const ADC1_2_EXTERNALTRIG_T3_TRGO: u32 = 192u8 as u32;
pub const ADC_FLAG_POSTCONV_ALL: u32 = 156;
pub const ADC_CCR_ALL: u32 = 12582912;
pub const ADC_CHANNEL_0: u32 = 0;
pub const ADC_CHANNEL_1: u32 = 1;
pub const ADC_CHANNEL_2: u32 = 2;
pub const ADC_CHANNEL_3: u32 = 3;
pub const ADC_CHANNEL_4: u32 = 4;
pub const ADC_CHANNEL_5: u32 = 5;
pub const ADC_CHANNEL_6: u32 = 6;
pub const ADC_CHANNEL_7: u32 = 7;
pub const ADC_CHANNEL_8: u32 = 8;
pub const ADC_CHANNEL_9: u32 = 9;
pub const ADC_CHANNEL_11: u32 = 11;
pub const ADC_CHANNEL_12: u32 = 12;
pub const ADC_CHANNEL_TEMPSENSOR: u32 = 11;
pub const ADC_CHANNEL_VREFINT: u32 = 12;
pub const ADC_EXTERNALTRIGCONV_T1_TRGO: u32 = 0;
pub const ADC_EXTERNALTRIGCONV_T1_CC4: u32 = 64u8 as u32;
pub const ADC_EXTERNALTRIGCONV_T3_TRGO: u32 = 192u8 as u32;
pub const ADC_SOFTWARE_START: u32 = 449;
extern "C" {
    #[doc = " @addtogroup ADC_Exported_Functions_Group1\n @{"]
    pub fn HAL_ADC_Init(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_DeInit(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_MspInit(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_MspDeInit(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup ADC_Exported_Functions_Group2\n @{"]
    pub fn HAL_ADC_Start(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Stop(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_PollForConversion(
        hadc: *mut ADC_HandleTypeDef,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_PollForEvent(
        hadc: *mut ADC_HandleTypeDef,
        EventType: u32,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Start_IT(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Stop_IT(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Start_DMA(
        hadc: *mut ADC_HandleTypeDef,
        pData: *mut u32,
        Length: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Stop_DMA(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_GetValue(hadc: *mut ADC_HandleTypeDef) -> u32;
}
extern "C" {
    pub fn HAL_ADC_IRQHandler(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_ConvCpltCallback(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_ConvHalfCpltCallback(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_LevelOutOfWindowCallback(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_ErrorCallback(hadc: *mut ADC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_ADC_SetCalibration(
        hadc: *mut ADC_HandleTypeDef,
        CalibSamplingTime: u32,
        CalibSelection: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_Calibration_Start(hadc: *mut ADC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_GetCalibStatus(hadc: *mut ADC_HandleTypeDef) -> u32;
}
extern "C" {
    #[doc = " @addtogroup ADC_Exported_Functions_Group3\n @{"]
    pub fn HAL_ADC_ConfigChannel(
        hadc: *mut ADC_HandleTypeDef,
        sConfig: *mut ADC_ChannelConfTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_ADC_AnalogWDGConfig(
        hadc: *mut ADC_HandleTypeDef,
        AnalogWDGConfig: *mut ADC_AnalogWDGConfTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup ADC_Exported_Functions_Group4\n @{"]
    pub fn HAL_ADC_GetState(hadc: *mut ADC_HandleTypeDef) -> u32;
}
extern "C" {
    pub fn HAL_ADC_GetError(hadc: *mut ADC_HandleTypeDef) -> u32;
}
#[doc = "< CRC not yet initialized or disabled"]
pub const HAL_CRC_StateTypeDef_HAL_CRC_STATE_RESET: HAL_CRC_StateTypeDef = 0;
#[doc = "< CRC initialized and ready for use"]
pub const HAL_CRC_StateTypeDef_HAL_CRC_STATE_READY: HAL_CRC_StateTypeDef = 1;
#[doc = "< CRC internal process is ongoing"]
pub const HAL_CRC_StateTypeDef_HAL_CRC_STATE_BUSY: HAL_CRC_StateTypeDef = 2;
#[doc = "< CRC timeout state"]
pub const HAL_CRC_StateTypeDef_HAL_CRC_STATE_TIMEOUT: HAL_CRC_StateTypeDef = 3;
#[doc = "< CRC error state"]
pub const HAL_CRC_StateTypeDef_HAL_CRC_STATE_ERROR: HAL_CRC_StateTypeDef = 4;
#[doc = " @brief  CRC HAL State Structure definition"]
pub type HAL_CRC_StateTypeDef = ::core::ffi::c_uint;
#[doc = " @brief  CRC Handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct CRC_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut CRC_TypeDef,
    #[doc = "< CRC Locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< CRC communication state"]
    pub State: HAL_CRC_StateTypeDef,
}
const _: () = {
    ["Size of CRC_HandleTypeDef"][::core::mem::size_of::<CRC_HandleTypeDef>() - 12usize];
    ["Alignment of CRC_HandleTypeDef"][::core::mem::align_of::<CRC_HandleTypeDef>() - 4usize];
    ["Offset of field: CRC_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(CRC_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: CRC_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(CRC_HandleTypeDef, Lock) - 4usize];
    ["Offset of field: CRC_HandleTypeDef::State"]
        [::core::mem::offset_of!(CRC_HandleTypeDef, State) - 8usize];
};
extern "C" {
    #[doc = " @defgroup CRC_Exported_Functions_Group1 Initialization and de-initialization functions\n @{"]
    pub fn HAL_CRC_Init(hcrc: *mut CRC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_CRC_DeInit(hcrc: *mut CRC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_CRC_MspInit(hcrc: *mut CRC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_CRC_MspDeInit(hcrc: *mut CRC_HandleTypeDef);
}
extern "C" {
    #[doc = " @defgroup CRC_Exported_Functions_Group2 Peripheral Control functions\n @{"]
    pub fn HAL_CRC_Accumulate(
        hcrc: *mut CRC_HandleTypeDef,
        pBuffer: *mut u32,
        BufferLength: u32,
    ) -> u32;
}
extern "C" {
    pub fn HAL_CRC_Calculate(
        hcrc: *mut CRC_HandleTypeDef,
        pBuffer: *mut u32,
        BufferLength: u32,
    ) -> u32;
}
extern "C" {
    #[doc = " @defgroup CRC_Exported_Functions_Group3 Peripheral State functions\n @{"]
    pub fn HAL_CRC_GetState(hcrc: *mut CRC_HandleTypeDef) -> HAL_CRC_StateTypeDef;
}
#[doc = " @brief  FLASH Erase structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLASH_EraseInitTypeDef {
    #[doc = "< Mass erase or page erase.\nThis parameter can be a value of @ref FLASH_Type_Erase"]
    pub TypeErase: u32,
    #[doc = "< PageAdress: Initial FLASH page address to erase when mass erase and sector erase is disabled\nThis parameter must be a number between Min_Data = FLASH_BASE and Max_Data = FLASH_END"]
    pub PageAddress: u32,
    #[doc = "< Number of pages to be erased.\nThis parameter must be a value between 1 and (FLASH_PAGE_NB - value of initial page)"]
    pub NbPages: u32,
    #[doc = "< PageAdress: Initial FLASH page address to erase when mass erase and page erase is disabled\nThis parameter must be a number between Min_Data = FLASH_BASE and Max_Data = FLASH_BANK1_END"]
    pub SectorAddress: u32,
    #[doc = "< Number of sectors to be erased.\nThis parameter must be a value between 1 and (FLASH_SECTOR_NB - value of initial sector)"]
    pub NbSectors: u32,
}
const _: () = {
    ["Size of FLASH_EraseInitTypeDef"][::core::mem::size_of::<FLASH_EraseInitTypeDef>() - 20usize];
    ["Alignment of FLASH_EraseInitTypeDef"]
        [::core::mem::align_of::<FLASH_EraseInitTypeDef>() - 4usize];
    ["Offset of field: FLASH_EraseInitTypeDef::TypeErase"]
        [::core::mem::offset_of!(FLASH_EraseInitTypeDef, TypeErase) - 0usize];
    ["Offset of field: FLASH_EraseInitTypeDef::PageAddress"]
        [::core::mem::offset_of!(FLASH_EraseInitTypeDef, PageAddress) - 4usize];
    ["Offset of field: FLASH_EraseInitTypeDef::NbPages"]
        [::core::mem::offset_of!(FLASH_EraseInitTypeDef, NbPages) - 8usize];
    ["Offset of field: FLASH_EraseInitTypeDef::SectorAddress"]
        [::core::mem::offset_of!(FLASH_EraseInitTypeDef, SectorAddress) - 12usize];
    ["Offset of field: FLASH_EraseInitTypeDef::NbSectors"]
        [::core::mem::offset_of!(FLASH_EraseInitTypeDef, NbSectors) - 16usize];
};
#[doc = " @brief  FLASH Option Bytes PROGRAM structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLASH_OBProgramInitTypeDef {
    #[doc = "< OptionType: Option byte to be configured.\nThis parameter can be a value of @ref FLASH_Option_Type"]
    pub OptionType: u32,
    #[doc = "< WRPSector: This bitfield specifies the sector (s) which are write protected.\nThis parameter can be a combination of @ref FLASH_Option_Bytes_Write_Protection"]
    pub WRPSector: u32,
    #[doc = "< SDK Start address (used for FLASH_SDKR). It represents first address of start block\nto protect. Make sure this parameter is multiple of SDK granularity: 2048 Bytes."]
    pub SDKStartAddr: u32,
    #[doc = "< SDK End address (used for FLASH_SDKR). It represents first address of end block\nto protect. Make sure this parameter is multiple of SDK granularity: 2048 Bytes."]
    pub SDKEndAddr: u32,
    #[doc = "< RDPLevel: Set the read protection level.\nThis parameter can be a value of @ref FLASH_OB_Read_Protection"]
    pub RDPLevel: u32,
    #[doc = "< User option byte(s) to be configured (used for OPTIONBYTE_USER).\nThis parameter can be a combination of @ref FLASH_OB_USER_Type"]
    pub USERType: u32,
    #[doc = "< Value of the user option byte (used for OPTIONBYTE_USER).\nThis parameter can be a combination of\n@ref FLASH_OB_USER_BOR_ENABLE,\n@ref FLASH_OB_USER_BOR_LEVEL,\n@ref FLASH_OB_USER_RESET_CONFIG,\n@ref FLASH_OB_USER_IWDG_SW,\n@ref FLASH_OB_USER_WWDG_SW,\n@ref FLASH_OB_USER_nBOOT1"]
    pub USERConfig: u32,
}
const _: () = {
    ["Size of FLASH_OBProgramInitTypeDef"]
        [::core::mem::size_of::<FLASH_OBProgramInitTypeDef>() - 28usize];
    ["Alignment of FLASH_OBProgramInitTypeDef"]
        [::core::mem::align_of::<FLASH_OBProgramInitTypeDef>() - 4usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::OptionType"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, OptionType) - 0usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::WRPSector"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, WRPSector) - 4usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::SDKStartAddr"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, SDKStartAddr) - 8usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::SDKEndAddr"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, SDKEndAddr) - 12usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::RDPLevel"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, RDPLevel) - 16usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::USERType"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, USERType) - 20usize];
    ["Offset of field: FLASH_OBProgramInitTypeDef::USERConfig"]
        [::core::mem::offset_of!(FLASH_OBProgramInitTypeDef, USERConfig) - 24usize];
};
#[doc = " @brief  FLASH handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct FLASH_ProcessTypeDef {
    pub Lock: HAL_LockTypeDef,
    pub ErrorCode: u32,
    pub ProcedureOnGoing: u32,
    pub Address: u32,
    pub PageOrSector: u32,
    pub NbPagesSectorsToErase: u32,
}
const _: () = {
    ["Size of FLASH_ProcessTypeDef"][::core::mem::size_of::<FLASH_ProcessTypeDef>() - 24usize];
    ["Alignment of FLASH_ProcessTypeDef"][::core::mem::align_of::<FLASH_ProcessTypeDef>() - 4usize];
    ["Offset of field: FLASH_ProcessTypeDef::Lock"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, Lock) - 0usize];
    ["Offset of field: FLASH_ProcessTypeDef::ErrorCode"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, ErrorCode) - 4usize];
    ["Offset of field: FLASH_ProcessTypeDef::ProcedureOnGoing"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, ProcedureOnGoing) - 8usize];
    ["Offset of field: FLASH_ProcessTypeDef::Address"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, Address) - 12usize];
    ["Offset of field: FLASH_ProcessTypeDef::PageOrSector"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, PageOrSector) - 16usize];
    ["Offset of field: FLASH_ProcessTypeDef::NbPagesSectorsToErase"]
        [::core::mem::offset_of!(FLASH_ProcessTypeDef, NbPagesSectorsToErase) - 20usize];
};
pub const FLASH_LATENCY_0: u32 = 0;
pub const FLASH_LATENCY_1: u32 = 1;
pub const FLASH_TYPEERASE_MASSERASE: u32 = 1;
pub const FLASH_TYPEERASE_PAGEERASE: u32 = 2;
pub const FLASH_TYPEERASE_SECTORERASE: u32 = 3;
pub const FLASH_FLAG_BSY: u32 = 65536;
pub const FLASH_FLAG_OPTVERR: u32 = 32768;
pub const FLASH_FLAG_WRPERR: u32 = 16;
pub const FLASH_FLAG_EOP: u32 = 1;
pub const FLASH_FLAG_ALL_ERRORS: u32 = 32784;
pub const FLASH_IT_EOP: u32 = 16777216;
pub const FLASH_IT_OPERR: u32 = 33554432;
pub const HAL_FLASH_ERROR_NONE: u32 = 0;
pub const HAL_FLASH_ERROR_WRP: u32 = 16;
pub const HAL_FLASH_ERROR_OPTV: u32 = 32768;
pub const FLASH_PROGRAM_ERASE_CLOCK_4MHZ: u32 = 0;
pub const FLASH_PROGRAM_ERASE_CLOCK_8MHZ: u32 = 1;
pub const FLASH_PROGRAM_ERASE_CLOCK_16MHZ: u32 = 2;
pub const FLASH_PROGRAM_ERASE_CLOCK_22p12MHZ: u32 = 3;
pub const FLASH_PROGRAM_ERASE_CLOCK_24MHZ: u32 = 4;
pub const OB_WRP_SECTOR_0: u32 = 1u8 as u32;
pub const OB_WRP_SECTOR_1: u32 = 2u8 as u32;
pub const OB_WRP_SECTOR_2: u32 = 4u8 as u32;
pub const OB_WRP_SECTOR_3: u32 = 8u8 as u32;
pub const OB_WRP_SECTOR_4: u32 = 16u8 as u32;
pub const OB_WRP_SECTOR_5: u32 = 32u8 as u32;
pub const OB_WRP_SECTOR_6: u32 = 64u8 as u32;
pub const OB_WRP_SECTOR_7: u32 = 128u8 as u32;
pub const OB_WRP_SECTOR_8: u32 = 256u16 as u32;
pub const OB_WRP_SECTOR_9: u32 = 512u16 as u32;
pub const OB_WRP_SECTOR_10: u32 = 1024u16 as u32;
pub const OB_WRP_SECTOR_11: u32 = 2048u16 as u32;
pub const OB_WRP_SECTOR_12: u32 = 4096u16 as u32;
pub const OB_WRP_SECTOR_13: u32 = 8192u16 as u32;
pub const OB_WRP_SECTOR_14: u32 = 16384u16 as u32;
pub const OB_WRP_SECTOR_15: u32 = 32768u16 as u32;
pub const OB_WRP_Pages0to31: u32 = 1u8 as u32;
pub const OB_WRP_Pages32to63: u32 = 2u8 as u32;
pub const OB_WRP_Pages64to95: u32 = 4u8 as u32;
pub const OB_WRP_Pages96to127: u32 = 8u8 as u32;
pub const OB_WRP_Pages128to159: u32 = 16u8 as u32;
pub const OB_WRP_Pages160to191: u32 = 32u8 as u32;
pub const OB_WRP_Pages192to223: u32 = 64u8 as u32;
pub const OB_WRP_Pages224to255: u32 = 128u8 as u32;
pub const OB_WRP_Pages256to287: u32 = 256u16 as u32;
pub const OB_WRP_Pages288to319: u32 = 512u16 as u32;
pub const OB_WRP_Pages320to351: u32 = 1024u16 as u32;
pub const OB_WRP_Pages352to383: u32 = 2048u16 as u32;
pub const OB_WRP_Pages384to415: u32 = 4096u16 as u32;
pub const OB_WRP_Pages416to447: u32 = 8192u16 as u32;
pub const OB_WRP_Pages448to479: u32 = 16384u16 as u32;
pub const OB_WRP_Pages480to511: u32 = 32768u16 as u32;
pub const OB_WRP_AllPages: u32 = 65535u16 as u32;
pub const OB_RDP_LEVEL_0: u8 = 170u8 as u8;
pub const OB_RDP_LEVEL_1: u8 = 85u8 as u8;
pub const OB_USER_BOR_EN: u32 = 256;
pub const OB_USER_BOR_LEV: u32 = 3584;
pub const OB_USER_IWDG_SW: u32 = 4096;
pub const OB_USER_WWDG_SW: u32 = 8192;
pub const OB_USER_NRST_MODE: u32 = 16384;
pub const OB_USER_nBOOT1: u32 = 32768;
pub const OB_USER_ALL: u32 = 65280;
pub const FLASH_TYPEPROGRAM_PAGE: u32 = 1;
pub const OB_BOR_DISABLE: u32 = 0;
pub const OB_BOR_ENABLE: u32 = 256;
pub const OB_BOR_LEVEL_1p7_1p8: u32 = 0u8 as u32;
pub const OB_BOR_LEVEL_1p9_2p0: u32 = 512u16 as u32;
pub const OB_BOR_LEVEL_2p1_2p2: u32 = 1024u16 as u32;
pub const OB_BOR_LEVEL_2p3_2p4: u32 = 1536u16 as u32;
pub const OB_BOR_LEVEL_2p5_2p6: u32 = 2048u16 as u32;
pub const OB_BOR_LEVEL_2p7_2p8: u32 = 2560u16 as u32;
pub const OB_BOR_LEVEL_2p9_3p0: u32 = 3072u16 as u32;
pub const OB_BOR_LEVEL_3p1_3p2: u32 = 3584u16 as u32;
pub const OPTIONBYTE_WRP: u32 = 1u8 as u32;
pub const OPTIONBYTE_SDK: u32 = 2u8 as u32;
pub const OPTIONBYTE_RDP: u32 = 4u8 as u32;
pub const OPTIONBYTE_USER: u32 = 8u8 as u32;
pub const OPTIONBYTE_ALL: u32 = 1u8 as u32 | 2u8 as u32 | 4u8 as u32 | 8u8 as u32;
pub const OB_WRPSTATE_DISABLE: u32 = 0u8 as u32;
pub const OB_WRPSTATE_ENABLE: u32 = 1u8 as u32;
pub const OB_IWDG_SW: u32 = 4096;
pub const OB_IWDG_HW: u32 = 0;
pub const OB_WWDG_SW: u32 = 8192;
pub const OB_WWDG_HW: u32 = 0;
pub const OB_RESET_MODE_RESET: u32 = 0;
pub const OB_RESET_MODE_GPIO: u32 = 16384;
pub const OB_BOOT1_SRAM: u32 = 0;
pub const OB_BOOT1_SYSTEM: u32 = 32768;
extern "C" {
    #[doc = " @defgroup FLASH_Exported_Variables FLASH Exported Variables\n @{"]
    pub static mut pFlash: FLASH_ProcessTypeDef;
}
extern "C" {
    #[doc = " @addtogroup FLASH_Exported_Functions_Group1\n @{"]
    pub fn HAL_FLASH_Program(
        TypeProgram: u32,
        Address: u32,
        DataAddr: *mut u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_Program_IT(
        TypeProgram: u32,
        Address: u32,
        DataAddr: *mut u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_PageProgram(Address: u32, DataAddr: *mut u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_PageProgram_IT(Address: u32, DataAddr: *mut u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_IRQHandler();
}
extern "C" {
    pub fn HAL_FLASH_EndOfOperationCallback(ReturnValue: u32);
}
extern "C" {
    pub fn HAL_FLASH_OperationErrorCallback(ReturnValue: u32);
}
extern "C" {
    pub fn HAL_FLASH_Erase(
        pEraseInit: *mut FLASH_EraseInitTypeDef,
        PageError: *mut u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_Erase_IT(pEraseInit: *mut FLASH_EraseInitTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup FLASH_Exported_Functions_Group2\n @{"]
    pub fn HAL_FLASH_Unlock() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_Lock() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_OB_Unlock() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_OB_Lock() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_OB_Launch() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_OBProgram(pOBInit: *mut FLASH_OBProgramInitTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_FLASH_OBGetConfig(pOBInit: *mut FLASH_OBProgramInitTypeDef);
}
extern "C" {
    pub fn HAL_FLASH_OB_RDP_LevelConfig(ReadProtectLevel: u8) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup FLASH_Exported_Functions_Group3\n @{"]
    pub fn HAL_FLASH_GetError() -> u32;
}
extern "C" {
    #[doc = " @defgroup FLASH_Private_types FLASH Private Types\n @{"]
    pub fn FLASH_WaitForLastOperation(Timeout: u32) -> HAL_StatusTypeDef;
}
pub const FLASH_TIMEOUT_VALUE: u32 = 1000;
pub const FLASH_TYPENONE: u32 = 0;
pub const FLASH_FLAG_SR_ERROR: u32 = 32784;
pub const FLASH_FLAG_SR_CLEAR: u32 = 32785;
#[doc = " @defgroup I2C_Configuration_Structure_definition I2C Configuration Structure definition\n @brief  I2C Configuration Structure definition\n @{"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct I2C_InitTypeDef {
    #[doc = "< Specifies the clock frequency.\nThis parameter must be set to a value lower than 400kHz"]
    pub ClockSpeed: u32,
    #[doc = "< Specifies the I2C fast mode duty cycle.\nThis parameter can be a value of @ref I2C_duty_cycle_in_fast_mode"]
    pub DutyCycle: u32,
    #[doc = "< Specifies the first device own address.\nThis parameter can be a 7-bit or 10-bit address."]
    pub OwnAddress1: u32,
    #[doc = "< Specifies if general call mode is selected.\nThis parameter can be a value of @ref I2C_general_call_addressing_mode"]
    pub GeneralCallMode: u32,
    #[doc = "< Specifies if nostretch mode is selected.\nThis parameter can be a value of @ref I2C_nostretch_mode"]
    pub NoStretchMode: u32,
}
const _: () = {
    ["Size of I2C_InitTypeDef"][::core::mem::size_of::<I2C_InitTypeDef>() - 20usize];
    ["Alignment of I2C_InitTypeDef"][::core::mem::align_of::<I2C_InitTypeDef>() - 4usize];
    ["Offset of field: I2C_InitTypeDef::ClockSpeed"]
        [::core::mem::offset_of!(I2C_InitTypeDef, ClockSpeed) - 0usize];
    ["Offset of field: I2C_InitTypeDef::DutyCycle"]
        [::core::mem::offset_of!(I2C_InitTypeDef, DutyCycle) - 4usize];
    ["Offset of field: I2C_InitTypeDef::OwnAddress1"]
        [::core::mem::offset_of!(I2C_InitTypeDef, OwnAddress1) - 8usize];
    ["Offset of field: I2C_InitTypeDef::GeneralCallMode"]
        [::core::mem::offset_of!(I2C_InitTypeDef, GeneralCallMode) - 12usize];
    ["Offset of field: I2C_InitTypeDef::NoStretchMode"]
        [::core::mem::offset_of!(I2C_InitTypeDef, NoStretchMode) - 16usize];
};
#[doc = "< Peripheral is not yet Initialized"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_RESET: HAL_I2C_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_READY: HAL_I2C_StateTypeDef = 32;
#[doc = "< An internal process is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_BUSY: HAL_I2C_StateTypeDef = 36;
#[doc = "< Data Transmission process is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_BUSY_TX: HAL_I2C_StateTypeDef = 33;
#[doc = "< Data Reception process is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_BUSY_RX: HAL_I2C_StateTypeDef = 34;
#[doc = "< Address Listen Mode is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_LISTEN: HAL_I2C_StateTypeDef = 40;
#[doc = "< Address Listen Mode and Data Transmission\nprocess is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_BUSY_TX_LISTEN: HAL_I2C_StateTypeDef = 41;
#[doc = "< Address Listen Mode and Data Reception\nprocess is ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_BUSY_RX_LISTEN: HAL_I2C_StateTypeDef = 42;
#[doc = "< Abort user request ongoing"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_ABORT: HAL_I2C_StateTypeDef = 96;
#[doc = "< Timeout state"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_TIMEOUT: HAL_I2C_StateTypeDef = 160;
#[doc = "< Error"]
pub const HAL_I2C_StateTypeDef_HAL_I2C_STATE_ERROR: HAL_I2C_StateTypeDef = 224;
#[doc = " @defgroup HAL_state_structure_definition HAL state structure definition\n @brief  HAL State structure definition\n @note  HAL I2C State value coding follow below described bitmap :\n          b7-b6  Error information\n             00 : No Error\n             01 : Abort (Abort user request on going)\n             10 : Timeout\n             11 : Error\n          b5     Peripheral initilisation status\n             0  : Reset (Peripheral not initialized)\n             1  : Init done (Peripheral initialized and ready to use. HAL I2C Init function called)\n          b4     (not used)\n             x  : Should be set to 0\n          b3\n             0  : Ready or Busy (No Listen mode ongoing)\n             1  : Listen (Peripheral in Address Listen Mode)\n          b2     Intrinsic process state\n             0  : Ready\n             1  : Busy (Peripheral busy with some configuration or internal operations)\n          b1     Rx state\n             0  : Ready (no Rx operation ongoing)\n             1  : Busy (Rx operation ongoing)\n          b0     Tx state\n             0  : Ready (no Tx operation ongoing)\n             1  : Busy (Tx operation ongoing)\n @{"]
pub type HAL_I2C_StateTypeDef = ::core::ffi::c_uint;
#[doc = "< No I2C communication on going"]
pub const HAL_I2C_ModeTypeDef_HAL_I2C_MODE_NONE: HAL_I2C_ModeTypeDef = 0;
#[doc = "< I2C communication is in Master Mode"]
pub const HAL_I2C_ModeTypeDef_HAL_I2C_MODE_MASTER: HAL_I2C_ModeTypeDef = 16;
#[doc = "< I2C communication is in Slave Mode"]
pub const HAL_I2C_ModeTypeDef_HAL_I2C_MODE_SLAVE: HAL_I2C_ModeTypeDef = 32;
#[doc = "< I2C communication is in Memory Mode"]
pub const HAL_I2C_ModeTypeDef_HAL_I2C_MODE_MEM: HAL_I2C_ModeTypeDef = 64;
#[doc = " @defgroup HAL_mode_structure_definition HAL mode structure definition\n @brief  HAL Mode structure definition\n @note  HAL I2C Mode value coding follow below described bitmap :\\n\n          b7     (not used)\\n\n             x  : Should be set to 0\\n\n          b6\\n\n             0  : None\\n\n             1  : Memory (HAL I2C communication is in Memory Mode)\\n\n          b5\\n\n             0  : None\\n\n             1  : Slave (HAL I2C communication is in Slave Mode)\\n\n          b4\\n\n             0  : None\\n\n             1  : Master (HAL I2C communication is in Master Mode)\\n\n          b3-b2-b1-b0  (not used)\\n\n             xxxx : Should be set to 0000\n @{"]
pub type HAL_I2C_ModeTypeDef = ::core::ffi::c_uint;
pub const HAL_I2C_ERROR_NONE: u32 = 0;
pub const HAL_I2C_ERROR_BERR: u32 = 1;
pub const HAL_I2C_ERROR_ARLO: u32 = 2;
pub const HAL_I2C_ERROR_AF: u32 = 4;
pub const HAL_I2C_ERROR_OVR: u32 = 8;
pub const HAL_I2C_ERROR_DMA: u32 = 16;
pub const HAL_I2C_ERROR_DMA_PARAM: u32 = 128;
pub const HAL_I2C_ERROR_TIMEOUT: u32 = 32;
pub const HAL_I2C_ERROR_SIZE: u32 = 64;
#[doc = " @defgroup I2C_handle_Structure_definition I2C handle Structure definition\n @brief  I2C handle Structure definition\n @{"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __I2C_HandleTypeDef {
    #[doc = "< I2C registers base address"]
    pub Instance: *mut I2C_TypeDef,
    #[doc = "< I2C communication parameters"]
    pub Init: I2C_InitTypeDef,
    #[doc = "< Pointer to I2C transfer buffer"]
    pub pBuffPtr: *mut u8,
    #[doc = "< I2C transfer size"]
    pub XferSize: u16,
    #[doc = "< I2C transfer counter"]
    pub XferCount: u16,
    #[doc = "< I2C transfer options"]
    pub XferOptions: u32,
    #[doc = "< I2C communication Previous state and mode\ncontext for internal usage"]
    pub PreviousState: u32,
    #[doc = "< I2C Tx DMA handle parameters"]
    pub hdmatx: *mut DMA_HandleTypeDef,
    #[doc = "< I2C Rx DMA handle parameters"]
    pub hdmarx: *mut DMA_HandleTypeDef,
    #[doc = "< I2C locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< I2C communication state"]
    pub State: HAL_I2C_StateTypeDef,
    #[doc = "< I2C communication mode"]
    pub Mode: HAL_I2C_ModeTypeDef,
    #[doc = "< I2C Error code"]
    pub ErrorCode: u32,
    #[doc = "< I2C Target device address"]
    pub Devaddress: u32,
    #[doc = "< I2C Target memory address"]
    pub Memaddress: u32,
    #[doc = "< I2C Target memory address  size"]
    pub MemaddSize: u32,
    #[doc = "< I2C Event counter"]
    pub EventCount: u32,
}
const _: () = {
    ["Size of __I2C_HandleTypeDef"][::core::mem::size_of::<__I2C_HandleTypeDef>() - 80usize];
    ["Alignment of __I2C_HandleTypeDef"][::core::mem::align_of::<__I2C_HandleTypeDef>() - 4usize];
    ["Offset of field: __I2C_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: __I2C_HandleTypeDef::Init"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Init) - 4usize];
    ["Offset of field: __I2C_HandleTypeDef::pBuffPtr"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, pBuffPtr) - 24usize];
    ["Offset of field: __I2C_HandleTypeDef::XferSize"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, XferSize) - 28usize];
    ["Offset of field: __I2C_HandleTypeDef::XferCount"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, XferCount) - 30usize];
    ["Offset of field: __I2C_HandleTypeDef::XferOptions"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, XferOptions) - 32usize];
    ["Offset of field: __I2C_HandleTypeDef::PreviousState"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, PreviousState) - 36usize];
    ["Offset of field: __I2C_HandleTypeDef::hdmatx"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, hdmatx) - 40usize];
    ["Offset of field: __I2C_HandleTypeDef::hdmarx"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, hdmarx) - 44usize];
    ["Offset of field: __I2C_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Lock) - 48usize];
    ["Offset of field: __I2C_HandleTypeDef::State"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, State) - 52usize];
    ["Offset of field: __I2C_HandleTypeDef::Mode"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Mode) - 56usize];
    ["Offset of field: __I2C_HandleTypeDef::ErrorCode"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, ErrorCode) - 60usize];
    ["Offset of field: __I2C_HandleTypeDef::Devaddress"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Devaddress) - 64usize];
    ["Offset of field: __I2C_HandleTypeDef::Memaddress"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, Memaddress) - 68usize];
    ["Offset of field: __I2C_HandleTypeDef::MemaddSize"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, MemaddSize) - 72usize];
    ["Offset of field: __I2C_HandleTypeDef::EventCount"]
        [::core::mem::offset_of!(__I2C_HandleTypeDef, EventCount) - 76usize];
};
#[doc = " @defgroup I2C_handle_Structure_definition I2C handle Structure definition\n @brief  I2C handle Structure definition\n @{"]
pub type I2C_HandleTypeDef = __I2C_HandleTypeDef;
pub const I2C_DUTYCYCLE_2: u32 = 0;
pub const I2C_DUTYCYCLE_16_9: u32 = 16384;
pub const I2C_GENERALCALL_DISABLE: u32 = 0;
pub const I2C_GENERALCALL_ENABLE: u32 = 64;
pub const I2C_NOSTRETCH_DISABLE: u32 = 0;
pub const I2C_NOSTRETCH_ENABLE: u32 = 128;
pub const I2C_MEMADD_SIZE_8BIT: u32 = 1;
pub const I2C_MEMADD_SIZE_16BIT: u32 = 16;
pub const I2C_DIRECTION_RECEIVE: u32 = 0;
pub const I2C_DIRECTION_TRANSMIT: u32 = 1;
pub const I2C_FIRST_FRAME: u32 = 1;
pub const I2C_FIRST_AND_NEXT_FRAME: u32 = 2;
pub const I2C_NEXT_FRAME: u32 = 4;
pub const I2C_FIRST_AND_LAST_FRAME: u32 = 8;
pub const I2C_LAST_FRAME_NO_STOP: u32 = 16;
pub const I2C_LAST_FRAME: u32 = 32;
pub const I2C_OTHER_FRAME: u32 = 11141120;
pub const I2C_OTHER_AND_LAST_FRAME: u32 = 2852126720;
pub const I2C_IT_BUF: u32 = 1024;
pub const I2C_IT_EVT: u32 = 512;
pub const I2C_IT_ERR: u32 = 256;
pub const I2C_FLAG_OVR: u32 = 67584;
pub const I2C_FLAG_AF: u32 = 66560;
pub const I2C_FLAG_ARLO: u32 = 66048;
pub const I2C_FLAG_BERR: u32 = 65792;
pub const I2C_FLAG_TXE: u32 = 65664;
pub const I2C_FLAG_RXNE: u32 = 65600;
pub const I2C_FLAG_STOPF: u32 = 65552;
pub const I2C_FLAG_ADD10: u32 = 65544;
pub const I2C_FLAG_BTF: u32 = 65540;
pub const I2C_FLAG_ADDR: u32 = 65538;
pub const I2C_FLAG_SB: u32 = 65537;
pub const I2C_FLAG_DUALF: u32 = 1048704;
pub const I2C_FLAG_GENCALL: u32 = 1048592;
pub const I2C_FLAG_TRA: u32 = 1048580;
pub const I2C_FLAG_BUSY: u32 = 1048578;
pub const I2C_FLAG_MSL: u32 = 1048577;
extern "C" {
    #[doc = " @addtogroup I2C_Exported_Functions_Group1 Initialization and de-initialization functions\n @{"]
    pub fn HAL_I2C_Init(hi2c: *mut I2C_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_DeInit(hi2c: *mut I2C_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_MspInit(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_MspDeInit(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    #[doc = " Blocking mode: Polling"]
    pub fn HAL_I2C_Master_Transmit(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Receive(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Transmit(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Receive(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Write(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Read(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_IsDeviceReady(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        Trials: u32,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " Non-Blocking mode: Interrupt"]
    pub fn HAL_I2C_Master_Transmit_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Receive_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Transmit_IT(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Receive_IT(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Write_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Read_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Seq_Transmit_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Seq_Receive_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Seq_Transmit_IT(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Seq_Receive_IT(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_EnableListen_IT(hi2c: *mut I2C_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_DisableListen_IT(hi2c: *mut I2C_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Abort_IT(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " Non-Blocking mode: DMA"]
    pub fn HAL_I2C_Master_Transmit_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Receive_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Transmit_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Receive_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Write_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Mem_Read_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        MemAddress: u16,
        MemAddSize: u16,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Seq_Transmit_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Master_Seq_Receive_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        DevAddress: u16,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Seq_Transmit_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_I2C_Slave_Seq_Receive_DMA(
        hi2c: *mut I2C_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        XferOptions: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup I2C_IRQ_Handler_and_Callbacks IRQ Handler and Callbacks\n @{\n/\n/******* I2C IRQHandler and Callbacks used in non blocking modes (Interrupt and DMA)"]
    pub fn HAL_I2C_EV_IRQHandler(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_ER_IRQHandler(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_MasterTxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_MasterRxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_SlaveTxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_SlaveRxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_AddrCallback(
        hi2c: *mut I2C_HandleTypeDef,
        TransferDirection: u8,
        AddrMatchCode: u16,
    );
}
extern "C" {
    pub fn HAL_I2C_ListenCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_MemTxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_MemRxCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_ErrorCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    pub fn HAL_I2C_AbortCpltCallback(hi2c: *mut I2C_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup I2C_Exported_Functions_Group3 Peripheral State, Mode and Error functions\n @{"]
    pub fn HAL_I2C_GetState(hi2c: *mut I2C_HandleTypeDef) -> HAL_I2C_StateTypeDef;
}
extern "C" {
    pub fn HAL_I2C_GetMode(hi2c: *mut I2C_HandleTypeDef) -> HAL_I2C_ModeTypeDef;
}
extern "C" {
    pub fn HAL_I2C_GetError(hi2c: *mut I2C_HandleTypeDef) -> u32;
}
pub const I2C_FLAG_MASK: u32 = 65535;
pub const I2C_MIN_PCLK_FREQ_STANDARD: u32 = 2000000;
pub const I2C_MIN_PCLK_FREQ_FAST: u32 = 4000000;
#[doc = " @brief  IWDG Init structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IWDG_InitTypeDef {
    #[doc = "< Select the prescaler of the IWDG.\nThis parameter can be a value of @ref IWDG_Prescaler"]
    pub Prescaler: u32,
    #[doc = "< Specifies the IWDG down-counter reload value.\nThis parameter must be a number between Min_Data = 0 and Max_Data = 0x0FFF"]
    pub Reload: u32,
}
const _: () = {
    ["Size of IWDG_InitTypeDef"][::core::mem::size_of::<IWDG_InitTypeDef>() - 8usize];
    ["Alignment of IWDG_InitTypeDef"][::core::mem::align_of::<IWDG_InitTypeDef>() - 4usize];
    ["Offset of field: IWDG_InitTypeDef::Prescaler"]
        [::core::mem::offset_of!(IWDG_InitTypeDef, Prescaler) - 0usize];
    ["Offset of field: IWDG_InitTypeDef::Reload"]
        [::core::mem::offset_of!(IWDG_InitTypeDef, Reload) - 4usize];
};
#[doc = " @brief  IWDG Handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct IWDG_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut IWDG_TypeDef,
    #[doc = "< IWDG required parameters"]
    pub Init: IWDG_InitTypeDef,
}
const _: () = {
    ["Size of IWDG_HandleTypeDef"][::core::mem::size_of::<IWDG_HandleTypeDef>() - 12usize];
    ["Alignment of IWDG_HandleTypeDef"][::core::mem::align_of::<IWDG_HandleTypeDef>() - 4usize];
    ["Offset of field: IWDG_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(IWDG_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: IWDG_HandleTypeDef::Init"]
        [::core::mem::offset_of!(IWDG_HandleTypeDef, Init) - 4usize];
};
pub const IWDG_PRESCALER_4: u32 = 0;
pub const IWDG_PRESCALER_8: u32 = 1;
pub const IWDG_PRESCALER_16: u32 = 2;
pub const IWDG_PRESCALER_32: u32 = 3;
pub const IWDG_PRESCALER_64: u32 = 4;
pub const IWDG_PRESCALER_128: u32 = 5;
pub const IWDG_PRESCALER_256: u32 = 6;
extern "C" {
    #[doc = " @defgroup IWDG_Exported_Functions_Group1 Initialization and Start functions\n @{"]
    pub fn HAL_IWDG_Init(hiwdg: *mut IWDG_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @defgroup IWDG_Exported_Functions_Group2 IO operation functions\n @{"]
    pub fn HAL_IWDG_Refresh(hiwdg: *mut IWDG_HandleTypeDef) -> HAL_StatusTypeDef;
}
pub const IWDG_KEY_RELOAD: u32 = 43690;
pub const IWDG_KEY_ENABLE: u32 = 52428;
pub const IWDG_KEY_WRITE_ACCESS_ENABLE: u32 = 21845;
pub const IWDG_KEY_WRITE_ACCESS_DISABLE: u32 = 0;
#[doc = " @brief  PWR PVD configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PWR_PVDTypeDef {
    #[doc = "< PVDSource: Specifies the PVD detection source.\nThis parameter can be a value of @ref PWR_PVD_Source."]
    pub PVDSource: u32,
    #[doc = "< PVDFilter: Specifies the PVD input filter.\nThis parameter can be a value of @ref PWR_PVD_Filter."]
    pub PVDFilter: u32,
    #[doc = "< PVDLevel: Specifies the PVD detection level.\nThis parameter can be a value or a combination of\n@ref PWR_PVD_detection_level."]
    pub PVDLevel: u32,
    #[doc = "< Mode: Specifies the operating mode for the selected pins.\nThis parameter can be a value of @ref PWR_PVD_Mode."]
    pub Mode: u32,
}
const _: () = {
    ["Size of PWR_PVDTypeDef"][::core::mem::size_of::<PWR_PVDTypeDef>() - 16usize];
    ["Alignment of PWR_PVDTypeDef"][::core::mem::align_of::<PWR_PVDTypeDef>() - 4usize];
    ["Offset of field: PWR_PVDTypeDef::PVDSource"]
        [::core::mem::offset_of!(PWR_PVDTypeDef, PVDSource) - 0usize];
    ["Offset of field: PWR_PVDTypeDef::PVDFilter"]
        [::core::mem::offset_of!(PWR_PVDTypeDef, PVDFilter) - 4usize];
    ["Offset of field: PWR_PVDTypeDef::PVDLevel"]
        [::core::mem::offset_of!(PWR_PVDTypeDef, PVDLevel) - 8usize];
    ["Offset of field: PWR_PVDTypeDef::Mode"]
        [::core::mem::offset_of!(PWR_PVDTypeDef, Mode) - 12usize];
};
#[doc = " @brief  PWR Stop configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PWR_StopModeConfigTypeDef {
    #[doc = "< LPVoltSelection: Set the low power internal regulator output voltage.\nThis parameter can be a value of @ref PWR_STOP_LPR_Voltage."]
    pub LPVoltSelection: u32,
    #[doc = "< RegulatorSwitchDelay: Set VDD voltage from LP to MR ready time after wake up.\nThis parameter can be a value of @ref PWR_STOP_WakeUp_Regulator_Switch_Delay."]
    pub RegulatorSwitchDelay: u32,
    #[doc = "< WakeUpHsiEnableTime: Set the flash delay time after wake up.\nThis parameter can be a value of @ref PWR_STOP_WakeUp_HSIEN_Timing."]
    pub WakeUpHsiEnableTime: u32,
    #[doc = "< SramRetentionVolt: Set the SRAM retention voltage in stop mode.\nThis parameter can be a value of @ref PWR_STOP_mode_Sram_Retention_Voltage."]
    pub SramRetentionVolt: u32,
    #[doc = "< FlsahDelay: Set the flash delay time after wake up.\nThis parameter can be a value of @ref PWR_STOP_WakeUp_Flash_Dealy."]
    pub FlashDelay: u32,
}
const _: () = {
    ["Size of PWR_StopModeConfigTypeDef"]
        [::core::mem::size_of::<PWR_StopModeConfigTypeDef>() - 20usize];
    ["Alignment of PWR_StopModeConfigTypeDef"]
        [::core::mem::align_of::<PWR_StopModeConfigTypeDef>() - 4usize];
    ["Offset of field: PWR_StopModeConfigTypeDef::LPVoltSelection"]
        [::core::mem::offset_of!(PWR_StopModeConfigTypeDef, LPVoltSelection) - 0usize];
    ["Offset of field: PWR_StopModeConfigTypeDef::RegulatorSwitchDelay"]
        [::core::mem::offset_of!(PWR_StopModeConfigTypeDef, RegulatorSwitchDelay) - 4usize];
    ["Offset of field: PWR_StopModeConfigTypeDef::WakeUpHsiEnableTime"]
        [::core::mem::offset_of!(PWR_StopModeConfigTypeDef, WakeUpHsiEnableTime) - 8usize];
    ["Offset of field: PWR_StopModeConfigTypeDef::SramRetentionVolt"]
        [::core::mem::offset_of!(PWR_StopModeConfigTypeDef, SramRetentionVolt) - 12usize];
    ["Offset of field: PWR_StopModeConfigTypeDef::FlashDelay"]
        [::core::mem::offset_of!(PWR_StopModeConfigTypeDef, FlashDelay) - 16usize];
};
#[doc = " @brief  PWR BIAS configuration structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct PWR_BIASConfigTypeDef {
    #[doc = "< BiasCurrentSource: Set the bias currents load source.\nThis parameter can be a value of @ref PWR_MR_BiasCurrent_Source."]
    pub BiasCurrentSource: u32,
    #[doc = "< BiasCurrentValue: Set the bias currents config value.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF."]
    pub BiasCurrentValue: u32,
}
const _: () = {
    ["Size of PWR_BIASConfigTypeDef"][::core::mem::size_of::<PWR_BIASConfigTypeDef>() - 8usize];
    ["Alignment of PWR_BIASConfigTypeDef"]
        [::core::mem::align_of::<PWR_BIASConfigTypeDef>() - 4usize];
    ["Offset of field: PWR_BIASConfigTypeDef::BiasCurrentSource"]
        [::core::mem::offset_of!(PWR_BIASConfigTypeDef, BiasCurrentSource) - 0usize];
    ["Offset of field: PWR_BIASConfigTypeDef::BiasCurrentValue"]
        [::core::mem::offset_of!(PWR_BIASConfigTypeDef, BiasCurrentValue) - 4usize];
};
pub const PWR_PVD_SOURCE_VCC: u32 = 0;
pub const PWR_PVD_SOURCE_PB07: u32 = 4;
pub const PWR_PVD_FILTER_NONE: u32 = 0;
pub const PWR_PVD_FILTER_1CLOCK: u32 = 256;
pub const PWR_PVD_FILTER_2CLOCK: u32 = 768;
pub const PWR_PVD_FILTER_4CLOCK: u32 = 1280;
pub const PWR_PVD_FILTER_16CLOCK: u32 = 1792;
pub const PWR_PVD_FILTER_64CLOCK: u32 = 2304;
pub const PWR_PVD_FILTER_128CLOCK: u32 = 2816;
pub const PWR_PVD_FILTER_1024CLOCK: u32 = 3328;
pub const PWR_PVDLEVEL_0: u32 = 0;
pub const PWR_PVDLEVEL_1: u32 = 16;
pub const PWR_PVDLEVEL_2: u32 = 32;
pub const PWR_PVDLEVEL_3: u32 = 48;
pub const PWR_PVDLEVEL_4: u32 = 64;
pub const PWR_PVDLEVEL_5: u32 = 80;
pub const PWR_PVDLEVEL_6: u32 = 96;
pub const PWR_PVDLEVEL_7: u32 = 112;
pub const PWR_PVD_MODE_NORMAL: u32 = 0;
pub const PWR_PVD_MODE_IT_RISING: u32 = 65537;
pub const PWR_PVD_MODE_IT_FALLING: u32 = 65538;
pub const PWR_PVD_MODE_IT_RISING_FALLING: u32 = 65539;
pub const PWR_PVD_MODE_EVENT_RISING: u32 = 131073;
pub const PWR_PVD_MODE_EVENT_FALLING: u32 = 131074;
pub const PWR_PVD_MODE_EVENT_RISING_FALLING: u32 = 131075;
pub const PWR_EXTI_LINE_PVD: u32 = 65536;
pub const PWR_EVENT_LINE_PVD: u32 = 65536;
pub const PWR_MAINREGULATOR_ON: u32 = 0;
pub const PWR_LOWPOWERREGULATOR_ON: u32 = 16384;
pub const PWR_SLEEPENTRY_WFI: u8 = 1u8 as u8;
pub const PWR_SLEEPENTRY_WFE: u8 = 2u8 as u8;
pub const PWR_STOPENTRY_WFI: u8 = 1u8 as u8;
pub const PWR_STOPENTRY_WFE: u8 = 2u8 as u8;
pub const PWR_FLAG_PVDO: u32 = 2048;
pub const PWR_STOPMOD_LPR_VOLT_SCALE1: u32 = 0;
pub const PWR_STOPMOD_LPR_VOLT_SCALE2: u32 = 512;
pub const PWR_WAKEUP_LPR_TO_MR_DELAY_2US: u32 = 0;
pub const PWR_WAKEUP_LPR_TO_MR_DELAY_3US: u32 = 1024;
pub const PWR_WAKEUP_LPR_TO_MR_DELAY_4US: u32 = 2048;
pub const PWR_WAKEUP_LPR_TO_MR_DELAY_5US: u32 = 3072;
pub const PWR_WAKEUP_HSIEN_AFTER_MR: u32 = 0;
pub const PWR_WAKEUP_HSIEN_IMMEDIATE: u32 = 524288;
pub const PWR_SRAM_RETENTION_VOLT_0p9: u32 = 196608;
pub const PWR_SRAM_RETENTION_VOLT_VOS: u32 = 262144;
pub const PWR_WAKEUP_FLASH_DELAY_0US: u32 = 12288;
pub const PWR_WAKEUP_FLASH_DELAY_2US: u32 = 4096;
pub const PWR_WAKEUP_FLASH_DELAY_3US: u32 = 8192;
pub const PWR_WAKEUP_FLASH_DELAY_5US: u32 = 0;
pub const PWR_BIAS_CURRENTS_FROM_FACTORY_BYTES: u32 = 0;
pub const PWR_BIAS_CURRENTS_FROM_BIAS_CR: u32 = 16;
pub const PWR_WUP_POLARITY_SHIFT: u32 = 8;
extern "C" {
    #[doc = " @defgroup PWR_Exported_Functions_Group1  Initialization and de-initialization functions\n @{"]
    pub fn HAL_PWR_DeInit();
}
extern "C" {
    #[doc = " @defgroup PWR_Exported_Functions_Group2  Peripheral Control functions\n @{"]
    pub fn HAL_PWR_EnableBkUpAccess();
}
extern "C" {
    pub fn HAL_PWR_DisableBkUpAccess();
}
extern "C" {
    pub fn HAL_PWR_ConfigPVD(sConfigPVD: *mut PWR_PVDTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_PWR_EnablePVD();
}
extern "C" {
    pub fn HAL_PWR_DisablePVD();
}
extern "C" {
    pub fn HAL_PWR_ConfigStopMode(
        sStopModeConfig: *mut PWR_StopModeConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_PWR_ConfigBIAS(sBIASConfig: *mut PWR_BIASConfigTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_PWR_EnterSLEEPMode(SLEEPEntry: u8);
}
extern "C" {
    pub fn HAL_PWR_EnterSTOPMode(Regulator: u32, STOPEntry: u8);
}
extern "C" {
    pub fn HAL_PWR_EnableSleepOnExit();
}
extern "C" {
    pub fn HAL_PWR_DisableSleepOnExit();
}
extern "C" {
    pub fn HAL_PWR_EnableSEVOnPend();
}
extern "C" {
    pub fn HAL_PWR_DisableSEVOnPend();
}
extern "C" {
    pub fn HAL_PWR_PVD_IRQHandler();
}
extern "C" {
    pub fn HAL_PWR_PVD_Callback();
}
pub const RTC_TIMEOUT_VALUE: u32 = 2000;
pub const RTC_RTOFF_RESET_TIMEOUT_VALUE: u32 = 4;
pub const RTC_EXTI_LINE_ALARM_EVENT: u32 = 524288u32 as u32;
#[doc = " @defgroup RTC_Exported_Types RTC Exported Types\n @{\n/\n/**\n @brief  RTC Time structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_TimeTypeDef {
    #[doc = "< Specifies the RTC Time Hour.\nThis parameter must be a number between Min_Data = 0 and Max_Data = 23"]
    pub Hours: u8,
    #[doc = "< Specifies the RTC Time Minutes.\nThis parameter must be a number between Min_Data = 0 and Max_Data = 59"]
    pub Minutes: u8,
    #[doc = "< Specifies the RTC Time Seconds.\nThis parameter must be a number between Min_Data = 0 and Max_Data = 59"]
    pub Seconds: u8,
}
const _: () = {
    ["Size of RTC_TimeTypeDef"][::core::mem::size_of::<RTC_TimeTypeDef>() - 3usize];
    ["Alignment of RTC_TimeTypeDef"][::core::mem::align_of::<RTC_TimeTypeDef>() - 1usize];
    ["Offset of field: RTC_TimeTypeDef::Hours"]
        [::core::mem::offset_of!(RTC_TimeTypeDef, Hours) - 0usize];
    ["Offset of field: RTC_TimeTypeDef::Minutes"]
        [::core::mem::offset_of!(RTC_TimeTypeDef, Minutes) - 1usize];
    ["Offset of field: RTC_TimeTypeDef::Seconds"]
        [::core::mem::offset_of!(RTC_TimeTypeDef, Seconds) - 2usize];
};
#[doc = " @brief  RTC Alarm structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_AlarmTypeDef {
    #[doc = "< Specifies the RTC Alarm Time members"]
    pub AlarmTime: RTC_TimeTypeDef,
}
const _: () = {
    ["Size of RTC_AlarmTypeDef"][::core::mem::size_of::<RTC_AlarmTypeDef>() - 3usize];
    ["Alignment of RTC_AlarmTypeDef"][::core::mem::align_of::<RTC_AlarmTypeDef>() - 1usize];
    ["Offset of field: RTC_AlarmTypeDef::AlarmTime"]
        [::core::mem::offset_of!(RTC_AlarmTypeDef, AlarmTime) - 0usize];
};
#[doc = "< RTC not yet initialized or disabled"]
pub const HAL_RTCStateTypeDef_HAL_RTC_STATE_RESET: HAL_RTCStateTypeDef = 0;
#[doc = "< RTC initialized and ready for use"]
pub const HAL_RTCStateTypeDef_HAL_RTC_STATE_READY: HAL_RTCStateTypeDef = 1;
#[doc = "< RTC process is ongoing"]
pub const HAL_RTCStateTypeDef_HAL_RTC_STATE_BUSY: HAL_RTCStateTypeDef = 2;
#[doc = "< RTC timeout state"]
pub const HAL_RTCStateTypeDef_HAL_RTC_STATE_TIMEOUT: HAL_RTCStateTypeDef = 3;
#[doc = "< RTC error state"]
pub const HAL_RTCStateTypeDef_HAL_RTC_STATE_ERROR: HAL_RTCStateTypeDef = 4;
#[doc = " @brief  HAL State structures definition"]
pub type HAL_RTCStateTypeDef = ::core::ffi::c_uint;
#[doc = " @brief  RTC Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_InitTypeDef {
    #[doc = "< Specifies the RTC Asynchronous Predivider value.\nThis parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFFFFF  or RTC_AUTO_1_SECOND\nIf RTC_AUTO_1_SECOND is selected, AsynchPrediv will be set automatically to get 1sec timebase"]
    pub AsynchPrediv: u32,
    #[doc = "< Specifies which signal will be routed to the RTC Tamper pin.\nThis parameter can be a value of @ref RTC_output_source_to_output_pin"]
    pub OutPut: u32,
}
const _: () = {
    ["Size of RTC_InitTypeDef"][::core::mem::size_of::<RTC_InitTypeDef>() - 8usize];
    ["Alignment of RTC_InitTypeDef"][::core::mem::align_of::<RTC_InitTypeDef>() - 4usize];
    ["Offset of field: RTC_InitTypeDef::AsynchPrediv"]
        [::core::mem::offset_of!(RTC_InitTypeDef, AsynchPrediv) - 0usize];
    ["Offset of field: RTC_InitTypeDef::OutPut"]
        [::core::mem::offset_of!(RTC_InitTypeDef, OutPut) - 4usize];
};
#[doc = " @brief  RTC Date structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_DateTypeDef {
    #[doc = "< Specifies the RTC Date WeekDay (not necessary for HAL_RTC_SetDate).\nThis parameter can be a value of @ref RTC_WeekDay_Definitions"]
    pub WeekDay: u8,
    #[doc = "< Specifies the RTC Date Month (in BCD format).\nThis parameter can be a value of @ref RTC_Month_Date_Definitions"]
    pub Month: u8,
    #[doc = "< Specifies the RTC Date.\nThis parameter must be a number between Min_Data = 1 and Max_Data = 31"]
    pub Date: u8,
    #[doc = "< Specifies the RTC Date Year.\nThis parameter must be a number between Min_Data = 0 and Max_Data = 99"]
    pub Year: u8,
}
const _: () = {
    ["Size of RTC_DateTypeDef"][::core::mem::size_of::<RTC_DateTypeDef>() - 4usize];
    ["Alignment of RTC_DateTypeDef"][::core::mem::align_of::<RTC_DateTypeDef>() - 1usize];
    ["Offset of field: RTC_DateTypeDef::WeekDay"]
        [::core::mem::offset_of!(RTC_DateTypeDef, WeekDay) - 0usize];
    ["Offset of field: RTC_DateTypeDef::Month"]
        [::core::mem::offset_of!(RTC_DateTypeDef, Month) - 1usize];
    ["Offset of field: RTC_DateTypeDef::Date"]
        [::core::mem::offset_of!(RTC_DateTypeDef, Date) - 2usize];
    ["Offset of field: RTC_DateTypeDef::Year"]
        [::core::mem::offset_of!(RTC_DateTypeDef, Year) - 3usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct RTC_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut RTC_TypeDef,
    #[doc = "< RTC required parameters"]
    pub Init: RTC_InitTypeDef,
    #[doc = "< Current date set by user and updated automatically"]
    pub DateToUpdate: RTC_DateTypeDef,
    #[doc = "< RTC locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< Time communication state"]
    pub State: HAL_RTCStateTypeDef,
}
const _: () = {
    ["Size of RTC_HandleTypeDef"][::core::mem::size_of::<RTC_HandleTypeDef>() - 24usize];
    ["Alignment of RTC_HandleTypeDef"][::core::mem::align_of::<RTC_HandleTypeDef>() - 4usize];
    ["Offset of field: RTC_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(RTC_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: RTC_HandleTypeDef::Init"]
        [::core::mem::offset_of!(RTC_HandleTypeDef, Init) - 4usize];
    ["Offset of field: RTC_HandleTypeDef::DateToUpdate"]
        [::core::mem::offset_of!(RTC_HandleTypeDef, DateToUpdate) - 12usize];
    ["Offset of field: RTC_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(RTC_HandleTypeDef, Lock) - 16usize];
    ["Offset of field: RTC_HandleTypeDef::State"]
        [::core::mem::offset_of!(RTC_HandleTypeDef, State) - 20usize];
};
pub const RTC_AUTO_1_SECOND: u32 = 4294967295;
pub const RTC_FORMAT_BIN: u32 = 0;
pub const RTC_FORMAT_BCD: u32 = 1;
pub const RTC_MONTH_JANUARY: u8 = 1u8 as u8;
pub const RTC_MONTH_FEBRUARY: u8 = 2u8 as u8;
pub const RTC_MONTH_MARCH: u8 = 3u8 as u8;
pub const RTC_MONTH_APRIL: u8 = 4u8 as u8;
pub const RTC_MONTH_MAY: u8 = 5u8 as u8;
pub const RTC_MONTH_JUNE: u8 = 6u8 as u8;
pub const RTC_MONTH_JULY: u8 = 7u8 as u8;
pub const RTC_MONTH_AUGUST: u8 = 8u8 as u8;
pub const RTC_MONTH_SEPTEMBER: u8 = 9u8 as u8;
pub const RTC_MONTH_OCTOBER: u8 = 16u8 as u8;
pub const RTC_MONTH_NOVEMBER: u8 = 17u8 as u8;
pub const RTC_MONTH_DECEMBER: u8 = 18u8 as u8;
pub const RTC_WEEKDAY_MONDAY: u8 = 1u8 as u8;
pub const RTC_WEEKDAY_TUESDAY: u8 = 2u8 as u8;
pub const RTC_WEEKDAY_WEDNESDAY: u8 = 3u8 as u8;
pub const RTC_WEEKDAY_THURSDAY: u8 = 4u8 as u8;
pub const RTC_WEEKDAY_FRIDAY: u8 = 5u8 as u8;
pub const RTC_WEEKDAY_SATURDAY: u8 = 6u8 as u8;
pub const RTC_WEEKDAY_SUNDAY: u8 = 0u8 as u8;
pub const RTC_ALARM_A: u32 = 0;
pub const RTC_OUTPUTSOURCE_NONE: u32 = 0;
pub const RTC_OUTPUTSOURCE_CALIBCLOCK: u32 = 128;
pub const RTC_OUTPUTSOURCE_ALARM: u32 = 256;
pub const RTC_OUTPUTSOURCE_SECOND: u32 = 768;
pub const RTC_IT_OW: u32 = 4;
pub const RTC_IT_ALRA: u32 = 2;
pub const RTC_IT_SEC: u32 = 1;
pub const RTC_FLAG_RTOFF: u32 = 32;
pub const RTC_FLAG_RSF: u32 = 8;
pub const RTC_FLAG_OW: u32 = 4;
pub const RTC_FLAG_ALRAF: u32 = 2;
pub const RTC_FLAG_SEC: u32 = 1;
extern "C" {
    #[doc = " @addtogroup RTCEx_Exported_Functions_Group2\n @{"]
    pub fn HAL_RTCEx_SetSecond_IT(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTCEx_DeactivateSecond(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTCEx_RTCIRQHandler(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_RTCEx_RTCEventCallback(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_RTCEx_RTCEventErrorCallback(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup RTCEx_Exported_Functions_Group3\n @{"]
    pub fn HAL_RTCEx_SetSmoothCalib(
        hrtc: *mut RTC_HandleTypeDef,
        SmoothCalibPeriod: u32,
        SmoothCalibPlusPulses: u32,
        SmouthCalibMinusPulsesValue: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup RTC_Exported_Functions_Group1\n @{"]
    pub fn HAL_RTC_Init(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_DeInit(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_MspInit(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_RTC_MspDeInit(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup RTC_Exported_Functions_Group2\n @{"]
    pub fn HAL_RTC_SetTime(
        hrtc: *mut RTC_HandleTypeDef,
        sTime: *mut RTC_TimeTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_GetTime(
        hrtc: *mut RTC_HandleTypeDef,
        sTime: *mut RTC_TimeTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_SetDate(
        hrtc: *mut RTC_HandleTypeDef,
        sDate: *mut RTC_DateTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_GetDate(
        hrtc: *mut RTC_HandleTypeDef,
        sDate: *mut RTC_DateTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup RTC_Exported_Functions_Group3\n @{"]
    pub fn HAL_RTC_SetAlarm(
        hrtc: *mut RTC_HandleTypeDef,
        sAlarm: *mut RTC_AlarmTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_SetAlarm_IT(
        hrtc: *mut RTC_HandleTypeDef,
        sAlarm: *mut RTC_AlarmTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_DeactivateAlarm(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_GetAlarm(
        hrtc: *mut RTC_HandleTypeDef,
        sAlarm: *mut RTC_AlarmTypeDef,
        Format: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_AlarmIRQHandler(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    pub fn HAL_RTC_PollForAlarmAEvent(
        hrtc: *mut RTC_HandleTypeDef,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_RTC_AlarmAEventCallback(hrtc: *mut RTC_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup RTC_Exported_Functions_Group4\n @{"]
    pub fn HAL_RTC_GetState(hrtc: *mut RTC_HandleTypeDef) -> HAL_RTCStateTypeDef;
}
extern "C" {
    #[doc = " @addtogroup RTC_Exported_Functions_Group5\n @{"]
    pub fn HAL_RTC_WaitForSynchro(hrtc: *mut RTC_HandleTypeDef) -> HAL_StatusTypeDef;
}
#[doc = " @brief  SPI Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SPI_InitTypeDef {
    #[doc = "< Specifies the SPI operating mode.\nThis parameter can be a value of @ref SPI_Mode"]
    pub Mode: u32,
    #[doc = "< Specifies the SPI bidirectional mode state.\nThis parameter can be a value of @ref SPI_Direction"]
    pub Direction: u32,
    #[doc = "< Specifies the SPI data size.\nThis parameter can be a value of @ref SPI_Data_Size"]
    pub DataSize: u32,
    #[doc = "< Specifies the serial clock steady state.\nThis parameter can be a value of @ref SPI_Clock_Polarity"]
    pub CLKPolarity: u32,
    #[doc = "< Specifies the clock active edge for the bit capture.\nThis parameter can be a value of @ref SPI_Clock_Phase"]
    pub CLKPhase: u32,
    #[doc = "< Specifies whether the NSS signal is managed by\nhardware (NSS pin) or by software using the SSI bit.\nThis parameter can be a value of @ref SPI_Slave_Select_management"]
    pub NSS: u32,
    #[doc = "< Specifies the Baud Rate prescaler value which will be\nused to configure the transmit and receive SCK clock.\nThis parameter can be a value of @ref SPI_BaudRate_Prescaler\n@note The communication clock is derived from the master\nclock. The slave clock does not need to be set."]
    pub BaudRatePrescaler: u32,
    #[doc = "< Specifies whether data transfers start from MSB or LSB bit.\nThis parameter can be a value of @ref SPI_MSB_LSB_transmission"]
    pub FirstBit: u32,
    #[doc = "< Specifies the Slave fast mode is enabled or not.\nThis parameter can be a value of @ref SPI_Slave_Fast_mode"]
    pub SlaveFastMode: u32,
}
const _: () = {
    ["Size of SPI_InitTypeDef"][::core::mem::size_of::<SPI_InitTypeDef>() - 36usize];
    ["Alignment of SPI_InitTypeDef"][::core::mem::align_of::<SPI_InitTypeDef>() - 4usize];
    ["Offset of field: SPI_InitTypeDef::Mode"]
        [::core::mem::offset_of!(SPI_InitTypeDef, Mode) - 0usize];
    ["Offset of field: SPI_InitTypeDef::Direction"]
        [::core::mem::offset_of!(SPI_InitTypeDef, Direction) - 4usize];
    ["Offset of field: SPI_InitTypeDef::DataSize"]
        [::core::mem::offset_of!(SPI_InitTypeDef, DataSize) - 8usize];
    ["Offset of field: SPI_InitTypeDef::CLKPolarity"]
        [::core::mem::offset_of!(SPI_InitTypeDef, CLKPolarity) - 12usize];
    ["Offset of field: SPI_InitTypeDef::CLKPhase"]
        [::core::mem::offset_of!(SPI_InitTypeDef, CLKPhase) - 16usize];
    ["Offset of field: SPI_InitTypeDef::NSS"]
        [::core::mem::offset_of!(SPI_InitTypeDef, NSS) - 20usize];
    ["Offset of field: SPI_InitTypeDef::BaudRatePrescaler"]
        [::core::mem::offset_of!(SPI_InitTypeDef, BaudRatePrescaler) - 24usize];
    ["Offset of field: SPI_InitTypeDef::FirstBit"]
        [::core::mem::offset_of!(SPI_InitTypeDef, FirstBit) - 28usize];
    ["Offset of field: SPI_InitTypeDef::SlaveFastMode"]
        [::core::mem::offset_of!(SPI_InitTypeDef, SlaveFastMode) - 32usize];
};
#[doc = "< Peripheral not Initialized"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_RESET: HAL_SPI_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_READY: HAL_SPI_StateTypeDef = 1;
#[doc = "< an internal process is ongoing"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_BUSY: HAL_SPI_StateTypeDef = 2;
#[doc = "< Data Transmission process is ongoing"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_BUSY_TX: HAL_SPI_StateTypeDef = 3;
#[doc = "< Data Reception process is ongoing"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_BUSY_RX: HAL_SPI_StateTypeDef = 4;
#[doc = "< Data Transmission and Reception process is ongoing"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_BUSY_TX_RX: HAL_SPI_StateTypeDef = 5;
#[doc = "< SPI error state"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_ERROR: HAL_SPI_StateTypeDef = 6;
#[doc = "< SPI abort is ongoing"]
pub const HAL_SPI_StateTypeDef_HAL_SPI_STATE_ABORT: HAL_SPI_StateTypeDef = 7;
#[doc = " @brief  HAL SPI State structure definition"]
pub type HAL_SPI_StateTypeDef = ::core::ffi::c_uint;
#[doc = " @brief  SPI handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __SPI_HandleTypeDef {
    #[doc = "< SPI registers base address"]
    pub Instance: *mut SPI_TypeDef,
    #[doc = "< SPI communication parameters"]
    pub Init: SPI_InitTypeDef,
    #[doc = "< Pointer to SPI Tx transfer Buffer"]
    pub pTxBuffPtr: *mut u8,
    #[doc = "< SPI Tx Transfer size"]
    pub TxXferSize: u16,
    #[doc = "< SPI Tx Transfer Counter"]
    pub TxXferCount: u16,
    #[doc = "< Pointer to SPI Rx transfer Buffer"]
    pub pRxBuffPtr: *mut u8,
    #[doc = "< SPI Rx Transfer size"]
    pub RxXferSize: u16,
    #[doc = "< SPI Rx Transfer Counter"]
    pub RxXferCount: u16,
    #[doc = "< function pointer on Rx ISR"]
    pub RxISR: ::core::option::Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>,
    #[doc = "< function pointer on Tx ISR"]
    pub TxISR: ::core::option::Option<unsafe extern "C" fn(hspi: *mut __SPI_HandleTypeDef)>,
    #[doc = "< SPI Tx DMA Handle parameters"]
    pub hdmatx: *mut DMA_HandleTypeDef,
    #[doc = "< SPI Rx DMA Handle parameters"]
    pub hdmarx: *mut DMA_HandleTypeDef,
    #[doc = "< Locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< SPI communication state"]
    pub State: HAL_SPI_StateTypeDef,
    #[doc = "< SPI Error code"]
    pub ErrorCode: u32,
}
const _: () = {
    ["Size of __SPI_HandleTypeDef"][::core::mem::size_of::<__SPI_HandleTypeDef>() - 84usize];
    ["Alignment of __SPI_HandleTypeDef"][::core::mem::align_of::<__SPI_HandleTypeDef>() - 4usize];
    ["Offset of field: __SPI_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: __SPI_HandleTypeDef::Init"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, Init) - 4usize];
    ["Offset of field: __SPI_HandleTypeDef::pTxBuffPtr"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, pTxBuffPtr) - 40usize];
    ["Offset of field: __SPI_HandleTypeDef::TxXferSize"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, TxXferSize) - 44usize];
    ["Offset of field: __SPI_HandleTypeDef::TxXferCount"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, TxXferCount) - 46usize];
    ["Offset of field: __SPI_HandleTypeDef::pRxBuffPtr"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, pRxBuffPtr) - 48usize];
    ["Offset of field: __SPI_HandleTypeDef::RxXferSize"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, RxXferSize) - 52usize];
    ["Offset of field: __SPI_HandleTypeDef::RxXferCount"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, RxXferCount) - 54usize];
    ["Offset of field: __SPI_HandleTypeDef::RxISR"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, RxISR) - 56usize];
    ["Offset of field: __SPI_HandleTypeDef::TxISR"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, TxISR) - 60usize];
    ["Offset of field: __SPI_HandleTypeDef::hdmatx"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, hdmatx) - 64usize];
    ["Offset of field: __SPI_HandleTypeDef::hdmarx"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, hdmarx) - 68usize];
    ["Offset of field: __SPI_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, Lock) - 72usize];
    ["Offset of field: __SPI_HandleTypeDef::State"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, State) - 76usize];
    ["Offset of field: __SPI_HandleTypeDef::ErrorCode"]
        [::core::mem::offset_of!(__SPI_HandleTypeDef, ErrorCode) - 80usize];
};
#[doc = " @brief  SPI handle Structure definition"]
pub type SPI_HandleTypeDef = __SPI_HandleTypeDef;
pub const HAL_SPI_ERROR_NONE: u32 = 0;
pub const HAL_SPI_ERROR_MODF: u32 = 1;
pub const HAL_SPI_ERROR_OVR: u32 = 4;
pub const HAL_SPI_ERROR_FRE: u32 = 8;
pub const HAL_SPI_ERROR_DMA: u32 = 16;
pub const HAL_SPI_ERROR_FLAG: u32 = 32;
pub const HAL_SPI_ERROR_ABORT: u32 = 64;
pub const SPI_MODE_SLAVE: u32 = 0;
pub const SPI_MODE_MASTER: u32 = 260;
pub const SPI_DIRECTION_2LINES: u32 = 0;
pub const SPI_DIRECTION_2LINES_RXONLY: u32 = 1024;
pub const SPI_DIRECTION_1LINE: u32 = 32768;
pub const SPI_DATASIZE_8BIT: u32 = 1792;
pub const SPI_DATASIZE_16BIT: u32 = 3840;
pub const SPI_POLARITY_LOW: u32 = 0;
pub const SPI_POLARITY_HIGH: u32 = 2;
pub const SPI_PHASE_1EDGE: u32 = 0;
pub const SPI_PHASE_2EDGE: u32 = 1;
pub const SPI_NSS_SOFT: u32 = 512;
pub const SPI_NSS_HARD_INPUT: u32 = 0;
pub const SPI_NSS_HARD_OUTPUT: u32 = 262144;
pub const SPI_BAUDRATEPRESCALER_2: u32 = 0;
pub const SPI_BAUDRATEPRESCALER_4: u32 = 8;
pub const SPI_BAUDRATEPRESCALER_8: u32 = 16;
pub const SPI_BAUDRATEPRESCALER_16: u32 = 24;
pub const SPI_BAUDRATEPRESCALER_32: u32 = 32;
pub const SPI_BAUDRATEPRESCALER_64: u32 = 40;
pub const SPI_BAUDRATEPRESCALER_128: u32 = 48;
pub const SPI_BAUDRATEPRESCALER_256: u32 = 56;
pub const SPI_FIRSTBIT_MSB: u32 = 0;
pub const SPI_FIRSTBIT_LSB: u32 = 128;
pub const SPI_SLAVE_FAST_MODE_DISABLE: u32 = 0;
pub const SPI_SLAVE_FAST_MODE_ENABLE: u32 = 32768;
pub const SPI_RXFIFO_THRESHOLD: u32 = 4096;
pub const SPI_RXFIFO_THRESHOLD_QF: u32 = 4096;
pub const SPI_RXFIFO_THRESHOLD_HF: u32 = 0;
pub const SPI_IT_TXE: u32 = 128;
pub const SPI_IT_RXNE: u32 = 64;
pub const SPI_IT_ERR: u32 = 32;
pub const SPI_FLAG_RXNE: u32 = 1;
pub const SPI_FLAG_TXE: u32 = 2;
pub const SPI_FLAG_BSY: u32 = 128;
pub const SPI_FLAG_MODF: u32 = 32;
pub const SPI_FLAG_OVR: u32 = 64;
pub const SPI_FLAG_FTLVL: u32 = 6144;
pub const SPI_FLAG_FRLVL: u32 = 1536;
pub const SPI_FLAG_MASK: u32 = 7907;
pub const SPI_FTLVL_EMPTY: u32 = 0;
pub const SPI_FTLVL_QUARTER_FULL: u32 = 2048;
pub const SPI_FTLVL_HALF_FULL: u32 = 4096;
pub const SPI_FTLVL_FULL: u32 = 6144;
pub const SPI_FRLVL_EMPTY: u32 = 0;
pub const SPI_FRLVL_QUARTER_FULL: u32 = 512;
pub const SPI_FRLVL_HALF_FULL: u32 = 1024;
pub const SPI_FRLVL_FULL: u32 = 1536;
extern "C" {
    #[doc = " @addtogroup SPI_Exported_Functions_Group1\n @{"]
    pub fn HAL_SPI_Init(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_DeInit(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_MspInit(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_MspDeInit(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup SPI_Exported_Functions_Group2\n @{"]
    pub fn HAL_SPI_Transmit(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Receive(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_TransmitReceive(
        hspi: *mut SPI_HandleTypeDef,
        pTxData: *mut u8,
        pRxData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Transmit_IT(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Receive_IT(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_TransmitReceive_IT(
        hspi: *mut SPI_HandleTypeDef,
        pTxData: *mut u8,
        pRxData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Transmit_DMA(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Receive_DMA(
        hspi: *mut SPI_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_TransmitReceive_DMA(
        hspi: *mut SPI_HandleTypeDef,
        pTxData: *mut u8,
        pRxData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_DMAPause(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_DMAResume(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_DMAStop(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Abort(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_Abort_IT(hspi: *mut SPI_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_SPI_IRQHandler(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_TxCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_RxCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_TxRxCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_TxHalfCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_RxHalfCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_TxRxHalfCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_ErrorCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    pub fn HAL_SPI_AbortCpltCallback(hspi: *mut SPI_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup SPI_Exported_Functions_Group3\n @{"]
    pub fn HAL_SPI_GetState(hspi: *mut SPI_HandleTypeDef) -> HAL_SPI_StateTypeDef;
}
extern "C" {
    pub fn HAL_SPI_GetError(hspi: *mut SPI_HandleTypeDef) -> u32;
}
#[doc = " @brief  TIM Time base Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_Base_InitTypeDef {
    #[doc = "< Specifies the prescaler value used to divide the TIM clock.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF"]
    pub Prescaler: u32,
    #[doc = "< Specifies the counter mode.\nThis parameter can be a value of @ref TIM_Counter_Mode"]
    pub CounterMode: u32,
    #[doc = "< Specifies the period value to be loaded into the active\nAuto-Reload Register at the next update event.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF."]
    pub Period: u32,
    #[doc = "< Specifies the clock division.\nThis parameter can be a value of @ref TIM_ClockDivision"]
    pub ClockDivision: u32,
    #[doc = "< Specifies the repetition counter value. Each time the RCR downcounter\nreaches zero, an update event is generated and counting restarts\nfrom the RCR value (N).\nThis means in PWM mode that (N+1) corresponds to:\n- the number of PWM periods in edge-aligned mode\n- the number of half PWM period in center-aligned mode\nGP timers: this parameter must be a number between Min_Data = 0x00 and Max_Data = 0xFF.\nAdvanced timers: this parameter must be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF."]
    pub RepetitionCounter: u32,
    #[doc = "< Specifies the auto-reload preload.\nThis parameter can be a value of @ref TIM_AutoReloadPreload"]
    pub AutoReloadPreload: u32,
}
const _: () = {
    ["Size of TIM_Base_InitTypeDef"][::core::mem::size_of::<TIM_Base_InitTypeDef>() - 24usize];
    ["Alignment of TIM_Base_InitTypeDef"][::core::mem::align_of::<TIM_Base_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_Base_InitTypeDef::Prescaler"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, Prescaler) - 0usize];
    ["Offset of field: TIM_Base_InitTypeDef::CounterMode"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, CounterMode) - 4usize];
    ["Offset of field: TIM_Base_InitTypeDef::Period"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, Period) - 8usize];
    ["Offset of field: TIM_Base_InitTypeDef::ClockDivision"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, ClockDivision) - 12usize];
    ["Offset of field: TIM_Base_InitTypeDef::RepetitionCounter"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, RepetitionCounter) - 16usize];
    ["Offset of field: TIM_Base_InitTypeDef::AutoReloadPreload"]
        [::core::mem::offset_of!(TIM_Base_InitTypeDef, AutoReloadPreload) - 20usize];
};
#[doc = " @brief  TIM Output Compare Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_OC_InitTypeDef {
    #[doc = "< Specifies the TIM mode.\nThis parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes"]
    pub OCMode: u32,
    #[doc = "< Specifies the pulse value to be loaded into the Capture Compare Register.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF"]
    pub Pulse: u32,
    #[doc = "< Specifies the output polarity.\nThis parameter can be a value of @ref TIM_Output_Compare_Polarity"]
    pub OCPolarity: u32,
    #[doc = "< Specifies the complementary output polarity.\nThis parameter can be a value of @ref TIM_Output_Compare_N_Polarity\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCNPolarity: u32,
    #[doc = "< Specifies the Fast mode state.\nThis parameter can be a value of @ref TIM_Output_Fast_State\n@note This parameter is valid only in PWM1 and PWM2 mode."]
    pub OCFastMode: u32,
    #[doc = "< Specifies the TIM Output Compare pin state during Idle state.\nThis parameter can be a value of @ref TIM_Output_Compare_Idle_State\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCIdleState: u32,
    #[doc = "< Specifies the TIM Output Compare pin state during Idle state.\nThis parameter can be a value of @ref TIM_Output_Compare_N_Idle_State\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCNIdleState: u32,
}
const _: () = {
    ["Size of TIM_OC_InitTypeDef"][::core::mem::size_of::<TIM_OC_InitTypeDef>() - 28usize];
    ["Alignment of TIM_OC_InitTypeDef"][::core::mem::align_of::<TIM_OC_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCMode"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCMode) - 0usize];
    ["Offset of field: TIM_OC_InitTypeDef::Pulse"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, Pulse) - 4usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCPolarity"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCPolarity) - 8usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCNPolarity"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCNPolarity) - 12usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCFastMode"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCFastMode) - 16usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCIdleState"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCIdleState) - 20usize];
    ["Offset of field: TIM_OC_InitTypeDef::OCNIdleState"]
        [::core::mem::offset_of!(TIM_OC_InitTypeDef, OCNIdleState) - 24usize];
};
#[doc = " @brief  TIM One Pulse Mode Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_OnePulse_InitTypeDef {
    #[doc = "< Specifies the TIM mode.\nThis parameter can be a value of @ref TIM_Output_Compare_and_PWM_modes"]
    pub OCMode: u32,
    #[doc = "< Specifies the pulse value to be loaded into the Capture Compare Register.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF"]
    pub Pulse: u32,
    #[doc = "< Specifies the output polarity.\nThis parameter can be a value of @ref TIM_Output_Compare_Polarity"]
    pub OCPolarity: u32,
    #[doc = "< Specifies the complementary output polarity.\nThis parameter can be a value of @ref TIM_Output_Compare_N_Polarity\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCNPolarity: u32,
    #[doc = "< Specifies the TIM Output Compare pin state during Idle state.\nThis parameter can be a value of @ref TIM_Output_Compare_Idle_State\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCIdleState: u32,
    #[doc = "< Specifies the TIM Output Compare pin state during Idle state.\nThis parameter can be a value of @ref TIM_Output_Compare_N_Idle_State\n@note This parameter is valid only for timer instances supporting break feature."]
    pub OCNIdleState: u32,
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Input_Capture_Polarity"]
    pub ICPolarity: u32,
    #[doc = "< Specifies the input.\nThis parameter can be a value of @ref TIM_Input_Capture_Selection"]
    pub ICSelection: u32,
    #[doc = "< Specifies the input capture filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub ICFilter: u32,
}
const _: () = {
    ["Size of TIM_OnePulse_InitTypeDef"]
        [::core::mem::size_of::<TIM_OnePulse_InitTypeDef>() - 36usize];
    ["Alignment of TIM_OnePulse_InitTypeDef"]
        [::core::mem::align_of::<TIM_OnePulse_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::OCMode"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, OCMode) - 0usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::Pulse"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, Pulse) - 4usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::OCPolarity"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, OCPolarity) - 8usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::OCNPolarity"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, OCNPolarity) - 12usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::OCIdleState"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, OCIdleState) - 16usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::OCNIdleState"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, OCNIdleState) - 20usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::ICPolarity"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, ICPolarity) - 24usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::ICSelection"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, ICSelection) - 28usize];
    ["Offset of field: TIM_OnePulse_InitTypeDef::ICFilter"]
        [::core::mem::offset_of!(TIM_OnePulse_InitTypeDef, ICFilter) - 32usize];
};
#[doc = " @brief  TIM Input Capture Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_IC_InitTypeDef {
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Input_Capture_Polarity"]
    pub ICPolarity: u32,
    #[doc = "< Specifies the input.\nThis parameter can be a value of @ref TIM_Input_Capture_Selection"]
    pub ICSelection: u32,
    #[doc = "< Specifies the Input Capture Prescaler.\nThis parameter can be a value of @ref TIM_Input_Capture_Prescaler"]
    pub ICPrescaler: u32,
    #[doc = "< Specifies the input capture filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub ICFilter: u32,
}
const _: () = {
    ["Size of TIM_IC_InitTypeDef"][::core::mem::size_of::<TIM_IC_InitTypeDef>() - 16usize];
    ["Alignment of TIM_IC_InitTypeDef"][::core::mem::align_of::<TIM_IC_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_IC_InitTypeDef::ICPolarity"]
        [::core::mem::offset_of!(TIM_IC_InitTypeDef, ICPolarity) - 0usize];
    ["Offset of field: TIM_IC_InitTypeDef::ICSelection"]
        [::core::mem::offset_of!(TIM_IC_InitTypeDef, ICSelection) - 4usize];
    ["Offset of field: TIM_IC_InitTypeDef::ICPrescaler"]
        [::core::mem::offset_of!(TIM_IC_InitTypeDef, ICPrescaler) - 8usize];
    ["Offset of field: TIM_IC_InitTypeDef::ICFilter"]
        [::core::mem::offset_of!(TIM_IC_InitTypeDef, ICFilter) - 12usize];
};
#[doc = " @brief  TIM Encoder Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_Encoder_InitTypeDef {
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Encoder_Mode"]
    pub EncoderMode: u32,
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Encoder_Input_Polarity"]
    pub IC1Polarity: u32,
    #[doc = "< Specifies the input.\nThis parameter can be a value of @ref TIM_Input_Capture_Selection"]
    pub IC1Selection: u32,
    #[doc = "< Specifies the Input Capture Prescaler.\nThis parameter can be a value of @ref TIM_Input_Capture_Prescaler"]
    pub IC1Prescaler: u32,
    #[doc = "< Specifies the input capture filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub IC1Filter: u32,
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Encoder_Input_Polarity"]
    pub IC2Polarity: u32,
    #[doc = "< Specifies the input.\nThis parameter can be a value of @ref TIM_Input_Capture_Selection"]
    pub IC2Selection: u32,
    #[doc = "< Specifies the Input Capture Prescaler.\nThis parameter can be a value of @ref TIM_Input_Capture_Prescaler"]
    pub IC2Prescaler: u32,
    #[doc = "< Specifies the input capture filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub IC2Filter: u32,
}
const _: () = {
    ["Size of TIM_Encoder_InitTypeDef"]
        [::core::mem::size_of::<TIM_Encoder_InitTypeDef>() - 36usize];
    ["Alignment of TIM_Encoder_InitTypeDef"]
        [::core::mem::align_of::<TIM_Encoder_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::EncoderMode"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, EncoderMode) - 0usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC1Polarity"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC1Polarity) - 4usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC1Selection"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC1Selection) - 8usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC1Prescaler"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC1Prescaler) - 12usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC1Filter"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC1Filter) - 16usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC2Polarity"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC2Polarity) - 20usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC2Selection"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC2Selection) - 24usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC2Prescaler"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC2Prescaler) - 28usize];
    ["Offset of field: TIM_Encoder_InitTypeDef::IC2Filter"]
        [::core::mem::offset_of!(TIM_Encoder_InitTypeDef, IC2Filter) - 32usize];
};
#[doc = " @brief  Clock Configuration Handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_ClockConfigTypeDef {
    #[doc = "< TIM clock sources\nThis parameter can be a value of @ref TIM_Clock_Source"]
    pub ClockSource: u32,
    #[doc = "< TIM clock polarity\nThis parameter can be a value of @ref TIM_Clock_Polarity"]
    pub ClockPolarity: u32,
    #[doc = "< TIM clock prescaler\nThis parameter can be a value of @ref TIM_Clock_Prescaler"]
    pub ClockPrescaler: u32,
    #[doc = "< TIM clock filter\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub ClockFilter: u32,
}
const _: () = {
    ["Size of TIM_ClockConfigTypeDef"][::core::mem::size_of::<TIM_ClockConfigTypeDef>() - 16usize];
    ["Alignment of TIM_ClockConfigTypeDef"]
        [::core::mem::align_of::<TIM_ClockConfigTypeDef>() - 4usize];
    ["Offset of field: TIM_ClockConfigTypeDef::ClockSource"]
        [::core::mem::offset_of!(TIM_ClockConfigTypeDef, ClockSource) - 0usize];
    ["Offset of field: TIM_ClockConfigTypeDef::ClockPolarity"]
        [::core::mem::offset_of!(TIM_ClockConfigTypeDef, ClockPolarity) - 4usize];
    ["Offset of field: TIM_ClockConfigTypeDef::ClockPrescaler"]
        [::core::mem::offset_of!(TIM_ClockConfigTypeDef, ClockPrescaler) - 8usize];
    ["Offset of field: TIM_ClockConfigTypeDef::ClockFilter"]
        [::core::mem::offset_of!(TIM_ClockConfigTypeDef, ClockFilter) - 12usize];
};
#[doc = " @brief  TIM Clear Input Configuration Handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_ClearInputConfigTypeDef {
    #[doc = "< TIM clear Input state\nThis parameter can be ENABLE or DISABLE"]
    pub ClearInputState: u32,
    #[doc = "< TIM clear Input sources\nThis parameter can be a value of @ref TIM_ClearInput_Source"]
    pub ClearInputSource: u32,
    #[doc = "< TIM Clear Input polarity\nThis parameter can be a value of @ref TIM_ClearInput_Polarity"]
    pub ClearInputPolarity: u32,
    #[doc = "< TIM Clear Input prescaler\nThis parameter must be 0: When OCRef clear feature is used with ETR source, ETR prescaler must be off"]
    pub ClearInputPrescaler: u32,
    #[doc = "< TIM Clear Input filter\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub ClearInputFilter: u32,
}
const _: () = {
    ["Size of TIM_ClearInputConfigTypeDef"]
        [::core::mem::size_of::<TIM_ClearInputConfigTypeDef>() - 20usize];
    ["Alignment of TIM_ClearInputConfigTypeDef"]
        [::core::mem::align_of::<TIM_ClearInputConfigTypeDef>() - 4usize];
    ["Offset of field: TIM_ClearInputConfigTypeDef::ClearInputState"]
        [::core::mem::offset_of!(TIM_ClearInputConfigTypeDef, ClearInputState) - 0usize];
    ["Offset of field: TIM_ClearInputConfigTypeDef::ClearInputSource"]
        [::core::mem::offset_of!(TIM_ClearInputConfigTypeDef, ClearInputSource) - 4usize];
    ["Offset of field: TIM_ClearInputConfigTypeDef::ClearInputPolarity"]
        [::core::mem::offset_of!(TIM_ClearInputConfigTypeDef, ClearInputPolarity) - 8usize];
    ["Offset of field: TIM_ClearInputConfigTypeDef::ClearInputPrescaler"]
        [::core::mem::offset_of!(TIM_ClearInputConfigTypeDef, ClearInputPrescaler) - 12usize];
    ["Offset of field: TIM_ClearInputConfigTypeDef::ClearInputFilter"]
        [::core::mem::offset_of!(TIM_ClearInputConfigTypeDef, ClearInputFilter) - 16usize];
};
#[doc = " @brief  TIM Master configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_MasterConfigTypeDef {
    #[doc = "< Trigger output (TRGO) selection\nThis parameter can be a value of @ref TIM_Master_Mode_Selection"]
    pub MasterOutputTrigger: u32,
    #[doc = "< Master/slave mode selection\nThis parameter can be a value of @ref TIM_Master_Slave_Mode\n@note When the Master/slave mode is enabled, the effect of\nan event on the trigger input (TRGI) is delayed to allow a\nperfect synchronization between the current timer and its\nslaves (through TRGO). It is not mandatory in case of timer\nsynchronization mode."]
    pub MasterSlaveMode: u32,
}
const _: () = {
    ["Size of TIM_MasterConfigTypeDef"][::core::mem::size_of::<TIM_MasterConfigTypeDef>() - 8usize];
    ["Alignment of TIM_MasterConfigTypeDef"]
        [::core::mem::align_of::<TIM_MasterConfigTypeDef>() - 4usize];
    ["Offset of field: TIM_MasterConfigTypeDef::MasterOutputTrigger"]
        [::core::mem::offset_of!(TIM_MasterConfigTypeDef, MasterOutputTrigger) - 0usize];
    ["Offset of field: TIM_MasterConfigTypeDef::MasterSlaveMode"]
        [::core::mem::offset_of!(TIM_MasterConfigTypeDef, MasterSlaveMode) - 4usize];
};
#[doc = " @brief  TIM Slave configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_SlaveConfigTypeDef {
    #[doc = "< Slave mode selection\nThis parameter can be a value of @ref TIM_Slave_Mode"]
    pub SlaveMode: u32,
    #[doc = "< Input Trigger source\nThis parameter can be a value of @ref TIM_Trigger_Selection"]
    pub InputTrigger: u32,
    #[doc = "< Input Trigger polarity\nThis parameter can be a value of @ref TIM_Trigger_Polarity"]
    pub TriggerPolarity: u32,
    #[doc = "< Input trigger prescaler\nThis parameter can be a value of @ref TIM_Trigger_Prescaler"]
    pub TriggerPrescaler: u32,
    #[doc = "< Input trigger filter\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub TriggerFilter: u32,
}
const _: () = {
    ["Size of TIM_SlaveConfigTypeDef"][::core::mem::size_of::<TIM_SlaveConfigTypeDef>() - 20usize];
    ["Alignment of TIM_SlaveConfigTypeDef"]
        [::core::mem::align_of::<TIM_SlaveConfigTypeDef>() - 4usize];
    ["Offset of field: TIM_SlaveConfigTypeDef::SlaveMode"]
        [::core::mem::offset_of!(TIM_SlaveConfigTypeDef, SlaveMode) - 0usize];
    ["Offset of field: TIM_SlaveConfigTypeDef::InputTrigger"]
        [::core::mem::offset_of!(TIM_SlaveConfigTypeDef, InputTrigger) - 4usize];
    ["Offset of field: TIM_SlaveConfigTypeDef::TriggerPolarity"]
        [::core::mem::offset_of!(TIM_SlaveConfigTypeDef, TriggerPolarity) - 8usize];
    ["Offset of field: TIM_SlaveConfigTypeDef::TriggerPrescaler"]
        [::core::mem::offset_of!(TIM_SlaveConfigTypeDef, TriggerPrescaler) - 12usize];
    ["Offset of field: TIM_SlaveConfigTypeDef::TriggerFilter"]
        [::core::mem::offset_of!(TIM_SlaveConfigTypeDef, TriggerFilter) - 16usize];
};
#[doc = " @brief  TIM Break input(s) and Dead time configuration Structure definition\n @note   2 break inputs can be configured (BKIN and BKIN2) with configurable\n        filter and polarity."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_BreakDeadTimeConfigTypeDef {
    #[doc = "< TIM off state in run mode\nThis parameter can be a value of @ref TIM_OSSR_Off_State_Selection_for_Run_mode_state"]
    pub OffStateRunMode: u32,
    #[doc = "< TIM off state in IDLE mode\nThis parameter can be a value of @ref TIM_OSSI_Off_State_Selection_for_Idle_mode_state"]
    pub OffStateIDLEMode: u32,
    #[doc = "< TIM Lock level\nThis parameter can be a value of @ref TIM_Lock_level"]
    pub LockLevel: u32,
    #[doc = "< TIM dead Time\nThis parameter can be a number between Min_Data = 0x00 and Max_Data = 0xFF"]
    pub DeadTime: u32,
    #[doc = "< TIM Break State\nThis parameter can be a value of @ref TIM_Break_Input_enable_disable"]
    pub BreakState: u32,
    #[doc = "< TIM Break input polarity\nThis parameter can be a value of @ref TIM_Break_Polarity"]
    pub BreakPolarity: u32,
    #[doc = "< Specifies the break input filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub BreakFilter: u32,
    #[doc = "< TIM Automatic Output Enable state\nThis parameter can be a value of @ref TIM_AOE_Bit_Set_Reset"]
    pub AutomaticOutput: u32,
}
const _: () = {
    ["Size of TIM_BreakDeadTimeConfigTypeDef"]
        [::core::mem::size_of::<TIM_BreakDeadTimeConfigTypeDef>() - 32usize];
    ["Alignment of TIM_BreakDeadTimeConfigTypeDef"]
        [::core::mem::align_of::<TIM_BreakDeadTimeConfigTypeDef>() - 4usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::OffStateRunMode"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, OffStateRunMode) - 0usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::OffStateIDLEMode"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, OffStateIDLEMode) - 4usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::LockLevel"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, LockLevel) - 8usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::DeadTime"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, DeadTime) - 12usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::BreakState"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, BreakState) - 16usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::BreakPolarity"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, BreakPolarity) - 20usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::BreakFilter"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, BreakFilter) - 24usize];
    ["Offset of field: TIM_BreakDeadTimeConfigTypeDef::AutomaticOutput"]
        [::core::mem::offset_of!(TIM_BreakDeadTimeConfigTypeDef, AutomaticOutput) - 28usize];
};
#[doc = "< Peripheral not yet initialized or disabled"]
pub const HAL_TIM_StateTypeDef_HAL_TIM_STATE_RESET: HAL_TIM_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use"]
pub const HAL_TIM_StateTypeDef_HAL_TIM_STATE_READY: HAL_TIM_StateTypeDef = 1;
#[doc = "< An internal process is ongoing"]
pub const HAL_TIM_StateTypeDef_HAL_TIM_STATE_BUSY: HAL_TIM_StateTypeDef = 2;
#[doc = "< Timeout state"]
pub const HAL_TIM_StateTypeDef_HAL_TIM_STATE_TIMEOUT: HAL_TIM_StateTypeDef = 3;
#[doc = "< Reception process is ongoing"]
pub const HAL_TIM_StateTypeDef_HAL_TIM_STATE_ERROR: HAL_TIM_StateTypeDef = 4;
#[doc = " @brief  HAL State structures definition"]
pub type HAL_TIM_StateTypeDef = ::core::ffi::c_uint;
#[doc = "< The active channel is 1"]
pub const HAL_TIM_ActiveChannel_HAL_TIM_ACTIVE_CHANNEL_1: HAL_TIM_ActiveChannel = 1;
#[doc = "< The active channel is 2"]
pub const HAL_TIM_ActiveChannel_HAL_TIM_ACTIVE_CHANNEL_2: HAL_TIM_ActiveChannel = 2;
#[doc = "< The active channel is 3"]
pub const HAL_TIM_ActiveChannel_HAL_TIM_ACTIVE_CHANNEL_3: HAL_TIM_ActiveChannel = 4;
#[doc = "< The active channel is 4"]
pub const HAL_TIM_ActiveChannel_HAL_TIM_ACTIVE_CHANNEL_4: HAL_TIM_ActiveChannel = 8;
#[doc = "< All active channels cleared"]
pub const HAL_TIM_ActiveChannel_HAL_TIM_ACTIVE_CHANNEL_CLEARED: HAL_TIM_ActiveChannel = 0;
#[doc = " @brief  HAL Active channel structures definition"]
pub type HAL_TIM_ActiveChannel = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut TIM_TypeDef,
    #[doc = "< TIM Time Base required parameters"]
    pub Init: TIM_Base_InitTypeDef,
    #[doc = "< Active channel"]
    pub Channel: HAL_TIM_ActiveChannel,
    #[doc = "< DMA Handlers array\nThis array is accessed by a @ref DMA_Handle_index"]
    pub hdma: [*mut DMA_HandleTypeDef; 7usize],
    #[doc = "< Locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< TIM operation state"]
    pub State: HAL_TIM_StateTypeDef,
}
const _: () = {
    ["Size of TIM_HandleTypeDef"][::core::mem::size_of::<TIM_HandleTypeDef>() - 68usize];
    ["Alignment of TIM_HandleTypeDef"][::core::mem::align_of::<TIM_HandleTypeDef>() - 4usize];
    ["Offset of field: TIM_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: TIM_HandleTypeDef::Init"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, Init) - 4usize];
    ["Offset of field: TIM_HandleTypeDef::Channel"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, Channel) - 28usize];
    ["Offset of field: TIM_HandleTypeDef::hdma"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, hdma) - 32usize];
    ["Offset of field: TIM_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, Lock) - 60usize];
    ["Offset of field: TIM_HandleTypeDef::State"]
        [::core::mem::offset_of!(TIM_HandleTypeDef, State) - 64usize];
};
pub const TIM_CLEARINPUTSOURCE_NONE: u32 = 0;
pub const TIM_CLEARINPUTSOURCE_ETR: u32 = 1;
pub const TIM_CLEARINPUTSOURCE_OCREFCLR: u32 = 2;
pub const TIM_DMABASE_CR1: u32 = 0;
pub const TIM_DMABASE_CR2: u32 = 1;
pub const TIM_DMABASE_SMCR: u32 = 2;
pub const TIM_DMABASE_DIER: u32 = 3;
pub const TIM_DMABASE_SR: u32 = 4;
pub const TIM_DMABASE_EGR: u32 = 5;
pub const TIM_DMABASE_CCMR1: u32 = 6;
pub const TIM_DMABASE_CCMR2: u32 = 7;
pub const TIM_DMABASE_CCER: u32 = 8;
pub const TIM_DMABASE_CNT: u32 = 9;
pub const TIM_DMABASE_PSC: u32 = 10;
pub const TIM_DMABASE_ARR: u32 = 11;
pub const TIM_DMABASE_RCR: u32 = 12;
pub const TIM_DMABASE_CCR1: u32 = 13;
pub const TIM_DMABASE_CCR2: u32 = 14;
pub const TIM_DMABASE_CCR3: u32 = 15;
pub const TIM_DMABASE_CCR4: u32 = 16;
pub const TIM_DMABASE_BDTR: u32 = 17;
pub const TIM_DMABASE_DCR: u32 = 18;
pub const TIM_DMABASE_DMAR: u32 = 19;
pub const TIM_EVENTSOURCE_UPDATE: u32 = 1;
pub const TIM_EVENTSOURCE_CC1: u32 = 2;
pub const TIM_EVENTSOURCE_CC2: u32 = 4;
pub const TIM_EVENTSOURCE_CC3: u32 = 8;
pub const TIM_EVENTSOURCE_CC4: u32 = 16;
pub const TIM_EVENTSOURCE_COM: u32 = 32;
pub const TIM_EVENTSOURCE_TRIGGER: u32 = 64;
pub const TIM_EVENTSOURCE_BREAK: u32 = 128;
pub const TIM_INPUTCHANNELPOLARITY_RISING: u32 = 0;
pub const TIM_INPUTCHANNELPOLARITY_FALLING: u32 = 2;
pub const TIM_INPUTCHANNELPOLARITY_BOTHEDGE: u32 = 10;
pub const TIM_ETRPOLARITY_INVERTED: u32 = 32768;
pub const TIM_ETRPOLARITY_NONINVERTED: u32 = 0;
pub const TIM_ETRPRESCALER_DIV1: u32 = 0;
pub const TIM_ETRPRESCALER_DIV2: u32 = 4096;
pub const TIM_ETRPRESCALER_DIV4: u32 = 8192;
pub const TIM_ETRPRESCALER_DIV8: u32 = 12288;
pub const TIM_COUNTERMODE_UP: u32 = 0;
pub const TIM_COUNTERMODE_DOWN: u32 = 16;
pub const TIM_COUNTERMODE_CENTERALIGNED1: u32 = 32;
pub const TIM_COUNTERMODE_CENTERALIGNED2: u32 = 64;
pub const TIM_COUNTERMODE_CENTERALIGNED3: u32 = 96;
pub const TIM_CLOCKDIVISION_DIV1: u32 = 0;
pub const TIM_CLOCKDIVISION_DIV2: u32 = 256;
pub const TIM_CLOCKDIVISION_DIV4: u32 = 512;
pub const TIM_OUTPUTSTATE_DISABLE: u32 = 0;
pub const TIM_OUTPUTSTATE_ENABLE: u32 = 1;
pub const TIM_AUTORELOAD_PRELOAD_DISABLE: u32 = 0;
pub const TIM_AUTORELOAD_PRELOAD_ENABLE: u32 = 128;
pub const TIM_OCFAST_DISABLE: u32 = 0;
pub const TIM_OCFAST_ENABLE: u32 = 4;
pub const TIM_OUTPUTNSTATE_DISABLE: u32 = 0;
pub const TIM_OUTPUTNSTATE_ENABLE: u32 = 4;
pub const TIM_OCPOLARITY_HIGH: u32 = 0;
pub const TIM_OCPOLARITY_LOW: u32 = 2;
pub const TIM_OCNPOLARITY_HIGH: u32 = 0;
pub const TIM_OCNPOLARITY_LOW: u32 = 8;
pub const TIM_OCIDLESTATE_SET: u32 = 256;
pub const TIM_OCIDLESTATE_RESET: u32 = 0;
pub const TIM_OCNIDLESTATE_SET: u32 = 512;
pub const TIM_OCNIDLESTATE_RESET: u32 = 0;
pub const TIM_ICPOLARITY_RISING: u32 = 0;
pub const TIM_ICPOLARITY_FALLING: u32 = 2;
pub const TIM_ICPOLARITY_BOTHEDGE: u32 = 10;
pub const TIM_ENCODERINPUTPOLARITY_RISING: u32 = 0;
pub const TIM_ENCODERINPUTPOLARITY_FALLING: u32 = 2;
pub const TIM_ENCODERINPUTPOLARITY_BOTHEDGE: u32 = 10;
pub const TIM_ICSELECTION_DIRECTTI: u32 = 1;
pub const TIM_ICSELECTION_INDIRECTTI: u32 = 2;
pub const TIM_ICSELECTION_TRC: u32 = 3;
pub const TIM_ICPSC_DIV1: u32 = 0;
pub const TIM_ICPSC_DIV2: u32 = 4;
pub const TIM_ICPSC_DIV4: u32 = 8;
pub const TIM_ICPSC_DIV8: u32 = 12;
pub const TIM_OPMODE_SINGLE: u32 = 8;
pub const TIM_OPMODE_REPETITIVE: u32 = 0;
pub const TIM_ENCODERMODE_TI1: u32 = 1;
pub const TIM_ENCODERMODE_TI2: u32 = 2;
pub const TIM_ENCODERMODE_TI12: u32 = 3;
pub const TIM_IT_UPDATE: u32 = 1;
pub const TIM_IT_CC1: u32 = 2;
pub const TIM_IT_CC2: u32 = 4;
pub const TIM_IT_CC3: u32 = 8;
pub const TIM_IT_CC4: u32 = 16;
pub const TIM_IT_COM: u32 = 32;
pub const TIM_IT_TRIGGER: u32 = 64;
pub const TIM_IT_BREAK: u32 = 128;
pub const TIM_COMMUTATION_TRGI: u32 = 4;
pub const TIM_COMMUTATION_SOFTWARE: u32 = 0;
pub const TIM_DMA_UPDATE: u32 = 256;
pub const TIM_DMA_CC1: u32 = 512;
pub const TIM_DMA_CC2: u32 = 1024;
pub const TIM_DMA_CC3: u32 = 2048;
pub const TIM_DMA_CC4: u32 = 4096;
pub const TIM_DMA_COM: u32 = 8192;
pub const TIM_DMA_TRIGGER: u32 = 16384;
pub const TIM_FLAG_UPDATE: u32 = 1;
pub const TIM_FLAG_CC1: u32 = 2;
pub const TIM_FLAG_CC2: u32 = 4;
pub const TIM_FLAG_CC3: u32 = 8;
pub const TIM_FLAG_CC4: u32 = 16;
pub const TIM_FLAG_COM: u32 = 32;
pub const TIM_FLAG_TRIGGER: u32 = 64;
pub const TIM_FLAG_BREAK: u32 = 128;
pub const TIM_FLAG_CC1OF: u32 = 512;
pub const TIM_FLAG_CC2OF: u32 = 1024;
pub const TIM_FLAG_CC3OF: u32 = 2048;
pub const TIM_FLAG_CC4OF: u32 = 4096;
pub const TIM_CHANNEL_1: u32 = 0;
pub const TIM_CHANNEL_2: u32 = 4;
pub const TIM_CHANNEL_3: u32 = 8;
pub const TIM_CHANNEL_4: u32 = 12;
pub const TIM_CHANNEL_ALL: u32 = 60;
pub const TIM_CLOCKSOURCE_ETRMODE2: u32 = 8192;
pub const TIM_CLOCKSOURCE_INTERNAL: u32 = 4096;
pub const TIM_CLOCKSOURCE_ITR0: u32 = 0;
pub const TIM_CLOCKSOURCE_ITR1: u32 = 16;
pub const TIM_CLOCKSOURCE_ITR2: u32 = 32;
pub const TIM_CLOCKSOURCE_ITR3: u32 = 48;
pub const TIM_CLOCKSOURCE_TI1ED: u32 = 64;
pub const TIM_CLOCKSOURCE_TI1: u32 = 80;
pub const TIM_CLOCKSOURCE_TI2: u32 = 96;
pub const TIM_CLOCKSOURCE_ETRMODE1: u32 = 112;
pub const TIM_CLOCKPOLARITY_INVERTED: u32 = 32768;
pub const TIM_CLOCKPOLARITY_NONINVERTED: u32 = 0;
pub const TIM_CLOCKPOLARITY_RISING: u32 = 0;
pub const TIM_CLOCKPOLARITY_FALLING: u32 = 2;
pub const TIM_CLOCKPOLARITY_BOTHEDGE: u32 = 10;
pub const TIM_CLOCKPRESCALER_DIV1: u32 = 0;
pub const TIM_CLOCKPRESCALER_DIV2: u32 = 4096;
pub const TIM_CLOCKPRESCALER_DIV4: u32 = 8192;
pub const TIM_CLOCKPRESCALER_DIV8: u32 = 12288;
pub const TIM_CLEARINPUTPOLARITY_INVERTED: u32 = 32768;
pub const TIM_CLEARINPUTPOLARITY_NONINVERTED: u32 = 0;
pub const TIM_CLEARINPUTPRESCALER_DIV1: u32 = 0;
pub const TIM_CLEARINPUTPRESCALER_DIV2: u32 = 4096;
pub const TIM_CLEARINPUTPRESCALER_DIV4: u32 = 8192;
pub const TIM_CLEARINPUTPRESCALER_DIV8: u32 = 12288;
pub const TIM_OSSR_ENABLE: u32 = 2048;
pub const TIM_OSSR_DISABLE: u32 = 0;
pub const TIM_OSSI_ENABLE: u32 = 1024;
pub const TIM_OSSI_DISABLE: u32 = 0;
pub const TIM_LOCKLEVEL_OFF: u32 = 0;
pub const TIM_LOCKLEVEL_1: u32 = 256;
pub const TIM_LOCKLEVEL_2: u32 = 512;
pub const TIM_LOCKLEVEL_3: u32 = 768;
pub const TIM_BREAK_ENABLE: u32 = 4096;
pub const TIM_BREAK_DISABLE: u32 = 0;
pub const TIM_BREAKPOLARITY_LOW: u32 = 0;
pub const TIM_BREAKPOLARITY_HIGH: u32 = 8192;
pub const TIM_AUTOMATICOUTPUT_DISABLE: u32 = 0;
pub const TIM_AUTOMATICOUTPUT_ENABLE: u32 = 16384;
pub const TIM_TRGO_RESET: u32 = 0;
pub const TIM_TRGO_ENABLE: u32 = 16;
pub const TIM_TRGO_UPDATE: u32 = 32;
pub const TIM_TRGO_OC1: u32 = 48;
pub const TIM_TRGO_OC1REF: u32 = 64;
pub const TIM_TRGO_OC2REF: u32 = 80;
pub const TIM_TRGO_OC3REF: u32 = 96;
pub const TIM_TRGO_OC4REF: u32 = 112;
pub const TIM_MASTERSLAVEMODE_ENABLE: u32 = 128;
pub const TIM_MASTERSLAVEMODE_DISABLE: u32 = 0;
pub const TIM_SLAVEMODE_DISABLE: u32 = 0;
pub const TIM_SLAVEMODE_RESET: u32 = 4;
pub const TIM_SLAVEMODE_GATED: u32 = 5;
pub const TIM_SLAVEMODE_TRIGGER: u32 = 6;
pub const TIM_SLAVEMODE_EXTERNAL1: u32 = 7;
pub const TIM_OCMODE_TIMING: u32 = 0;
pub const TIM_OCMODE_ACTIVE: u32 = 16;
pub const TIM_OCMODE_INACTIVE: u32 = 32;
pub const TIM_OCMODE_TOGGLE: u32 = 48;
pub const TIM_OCMODE_PWM1: u32 = 96;
pub const TIM_OCMODE_PWM2: u32 = 112;
pub const TIM_OCMODE_FORCED_ACTIVE: u32 = 80;
pub const TIM_OCMODE_FORCED_INACTIVE: u32 = 64;
pub const TIM_TS_ITR0: u32 = 0;
pub const TIM_TS_ITR1: u32 = 16;
pub const TIM_TS_ITR2: u32 = 32;
pub const TIM_TS_ITR3: u32 = 48;
pub const TIM_TS_TI1F_ED: u32 = 64;
pub const TIM_TS_TI1FP1: u32 = 80;
pub const TIM_TS_TI2FP2: u32 = 96;
pub const TIM_TS_ETRF: u32 = 112;
pub const TIM_TS_NONE: u32 = 65535;
pub const TIM_TRIGGERPOLARITY_INVERTED: u32 = 32768;
pub const TIM_TRIGGERPOLARITY_NONINVERTED: u32 = 0;
pub const TIM_TRIGGERPOLARITY_RISING: u32 = 0;
pub const TIM_TRIGGERPOLARITY_FALLING: u32 = 2;
pub const TIM_TRIGGERPOLARITY_BOTHEDGE: u32 = 10;
pub const TIM_TRIGGERPRESCALER_DIV1: u32 = 0;
pub const TIM_TRIGGERPRESCALER_DIV2: u32 = 4096;
pub const TIM_TRIGGERPRESCALER_DIV4: u32 = 8192;
pub const TIM_TRIGGERPRESCALER_DIV8: u32 = 12288;
pub const TIM_TI1SELECTION_CH1: u32 = 0;
pub const TIM_TI1SELECTION_XORCOMBINATION: u32 = 128;
pub const TIM_DMABURSTLENGTH_1TRANSFER: u32 = 0;
pub const TIM_DMABURSTLENGTH_2TRANSFERS: u32 = 256;
pub const TIM_DMABURSTLENGTH_3TRANSFERS: u32 = 512;
pub const TIM_DMABURSTLENGTH_4TRANSFERS: u32 = 768;
pub const TIM_DMABURSTLENGTH_5TRANSFERS: u32 = 1024;
pub const TIM_DMABURSTLENGTH_6TRANSFERS: u32 = 1280;
pub const TIM_DMABURSTLENGTH_7TRANSFERS: u32 = 1536;
pub const TIM_DMABURSTLENGTH_8TRANSFERS: u32 = 1792;
pub const TIM_DMABURSTLENGTH_9TRANSFERS: u32 = 2048;
pub const TIM_DMABURSTLENGTH_10TRANSFERS: u32 = 2304;
pub const TIM_DMABURSTLENGTH_11TRANSFERS: u32 = 2560;
pub const TIM_DMABURSTLENGTH_12TRANSFERS: u32 = 2816;
pub const TIM_DMABURSTLENGTH_13TRANSFERS: u32 = 3072;
pub const TIM_DMABURSTLENGTH_14TRANSFERS: u32 = 3328;
pub const TIM_DMABURSTLENGTH_15TRANSFERS: u32 = 3584;
pub const TIM_DMABURSTLENGTH_16TRANSFERS: u32 = 3840;
pub const TIM_DMABURSTLENGTH_17TRANSFERS: u32 = 4096;
pub const TIM_DMABURSTLENGTH_18TRANSFERS: u32 = 4352;
pub const TIM_DMA_ID_UPDATE: u16 = 0u8 as u16;
pub const TIM_DMA_ID_CC1: u16 = 1u8 as u16;
pub const TIM_DMA_ID_CC2: u16 = 2u8 as u16;
pub const TIM_DMA_ID_CC3: u16 = 3u8 as u16;
pub const TIM_DMA_ID_CC4: u16 = 4u8 as u16;
pub const TIM_DMA_ID_COMMUTATION: u16 = 5u8 as u16;
pub const TIM_DMA_ID_TRIGGER: u16 = 6u8 as u16;
pub const TIM_CCx_ENABLE: u32 = 1;
pub const TIM_CCx_DISABLE: u32 = 0;
pub const TIM_CCxN_ENABLE: u32 = 4;
pub const TIM_CCxN_DISABLE: u32 = 0;
pub const TIM_CCER_CCxE_MASK: u32 = 4369u16 as u32;
pub const TIM_CCER_CCxNE_MASK: u32 = 1092u16 as u32;
#[doc = " @brief  TIM Hall sensor Configuration Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct TIM_HallSensor_InitTypeDef {
    #[doc = "< Specifies the active edge of the input signal.\nThis parameter can be a value of @ref TIM_Input_Capture_Polarity"]
    pub IC1Polarity: u32,
    #[doc = "< Specifies the Input Capture Prescaler.\nThis parameter can be a value of @ref TIM_Input_Capture_Prescaler"]
    pub IC1Prescaler: u32,
    #[doc = "< Specifies the input capture filter.\nThis parameter can be a number between Min_Data = 0x0 and Max_Data = 0xF"]
    pub IC1Filter: u32,
    #[doc = "< Specifies the pulse value to be loaded into the Capture Compare Register.\nThis parameter can be a number between Min_Data = 0x0000 and Max_Data = 0xFFFF"]
    pub Commutation_Delay: u32,
}
const _: () = {
    ["Size of TIM_HallSensor_InitTypeDef"]
        [::core::mem::size_of::<TIM_HallSensor_InitTypeDef>() - 16usize];
    ["Alignment of TIM_HallSensor_InitTypeDef"]
        [::core::mem::align_of::<TIM_HallSensor_InitTypeDef>() - 4usize];
    ["Offset of field: TIM_HallSensor_InitTypeDef::IC1Polarity"]
        [::core::mem::offset_of!(TIM_HallSensor_InitTypeDef, IC1Polarity) - 0usize];
    ["Offset of field: TIM_HallSensor_InitTypeDef::IC1Prescaler"]
        [::core::mem::offset_of!(TIM_HallSensor_InitTypeDef, IC1Prescaler) - 4usize];
    ["Offset of field: TIM_HallSensor_InitTypeDef::IC1Filter"]
        [::core::mem::offset_of!(TIM_HallSensor_InitTypeDef, IC1Filter) - 8usize];
    ["Offset of field: TIM_HallSensor_InitTypeDef::Commutation_Delay"]
        [::core::mem::offset_of!(TIM_HallSensor_InitTypeDef, Commutation_Delay) - 12usize];
};
pub const TIM_TIM14_GPIO: u32 = 0;
pub const TIM_TIM14_RTC: u32 = 1;
pub const TIM_TIM14_HSE: u32 = 2;
pub const TIM_TIM14_MCO: u32 = 3;
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group1 Extended Timer Hall Sensor functions\n  @brief    Timer Hall Sensor functions\n @{"]
    pub fn HAL_TIMEx_HallSensor_Init(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_HallSensor_InitTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Start(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Stop(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Start_IT(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Stop_IT(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_HallSensor_Stop_DMA(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group2 Extended Timer Complementary Output Compare functions\n  @brief   Timer Complementary Output Compare functions\n @{"]
    pub fn HAL_TIMEx_OCN_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OCN_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OCN_Start_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OCN_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OCN_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OCN_Stop_DMA(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group3 Extended Timer Complementary PWM functions\n  @brief    Timer Complementary PWM functions\n @{"]
    pub fn HAL_TIMEx_PWMN_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_PWMN_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_PWMN_Start_IT(htim: *mut TIM_HandleTypeDef, Channel: u32)
        -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_PWMN_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_PWMN_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_PWMN_Stop_DMA(htim: *mut TIM_HandleTypeDef, Channel: u32)
        -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group4 Extended Timer Complementary One Pulse functions\n  @brief    Timer Complementary One Pulse functions\n @{"]
    pub fn HAL_TIMEx_OnePulseN_Start(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OnePulseN_Stop(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OnePulseN_Start_IT(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_OnePulseN_Stop_IT(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group5 Extended Peripheral Control functions\n  @brief    Peripheral Control functions\n @{"]
    pub fn HAL_TIMEx_ConfigCommutEvent(
        htim: *mut TIM_HandleTypeDef,
        InputTrigger: u32,
        CommutationSource: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_ConfigCommutEvent_IT(
        htim: *mut TIM_HandleTypeDef,
        InputTrigger: u32,
        CommutationSource: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_ConfigCommutEvent_DMA(
        htim: *mut TIM_HandleTypeDef,
        InputTrigger: u32,
        CommutationSource: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_MasterConfigSynchronization(
        htim: *mut TIM_HandleTypeDef,
        sMasterConfig: *mut TIM_MasterConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_ConfigBreakDeadTime(
        htim: *mut TIM_HandleTypeDef,
        sBreakDeadTimeConfig: *mut TIM_BreakDeadTimeConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIMEx_RemapConfig(htim: *mut TIM_HandleTypeDef, Remap: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group6 Extended Callbacks functions\n @brief    Extended Callbacks functions\n @{"]
    pub fn HAL_TIMEx_CommutCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIMEx_CommutHalfCpltCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIMEx_BreakCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup TIMEx_Exported_Functions_Group7 Extended Peripheral State functions\n @brief    Extended Peripheral State functions\n @{"]
    pub fn HAL_TIMEx_HallSensor_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn TIMEx_DMACommutationCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIMEx_DMACommutationHalfCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group1 TIM Time Base functions\n  @brief   Time Base functions\n @{"]
    pub fn HAL_TIM_Base_Init(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_Base_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_Base_Start(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_Stop(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_Start_IT(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_Stop_IT(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Base_Stop_DMA(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group2 TIM Output Compare functions\n  @brief   TIM Output Compare functions\n @{"]
    pub fn HAL_TIM_OC_Init(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_OC_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_OC_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_Start_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_Stop_DMA(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group3 TIM PWM functions\n  @brief   TIM PWM functions\n @{"]
    pub fn HAL_TIM_PWM_Init(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_PWM_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_PWM_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_Start_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_Stop_DMA(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group4 TIM Input Capture functions\n  @brief   TIM Input Capture functions\n @{"]
    pub fn HAL_TIM_IC_Init(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_IC_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_IC_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_Start_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_Stop_DMA(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group5 TIM One Pulse functions\n  @brief   TIM One Pulse functions\n @{"]
    pub fn HAL_TIM_OnePulse_Init(
        htim: *mut TIM_HandleTypeDef,
        OnePulseMode: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_OnePulse_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_OnePulse_Start(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_Stop(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_Start_IT(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_Stop_IT(
        htim: *mut TIM_HandleTypeDef,
        OutputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group6 TIM Encoder functions\n  @brief   TIM Encoder functions\n @{"]
    pub fn HAL_TIM_Encoder_Init(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_Encoder_InitTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_DeInit(htim: *mut TIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_MspInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_Encoder_MspDeInit(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_Encoder_Start(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_Stop(htim: *mut TIM_HandleTypeDef, Channel: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_Start_IT(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_Stop_IT(htim: *mut TIM_HandleTypeDef, Channel: u32)
        -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_Start_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
        pData1: *mut u32,
        pData2: *mut u32,
        Length: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_Stop_DMA(
        htim: *mut TIM_HandleTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup TIM_Exported_Functions_Group7 TIM IRQ handler management\n  @brief   IRQ handler management\n @{"]
    pub fn HAL_TIM_IRQHandler(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    #[doc = " @defgroup TIM_Exported_Functions_Group8 TIM Peripheral Control functions\n  @brief   Peripheral Control functions\n @{"]
    pub fn HAL_TIM_OC_ConfigChannel(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_OC_InitTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_ConfigChannel(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_OC_InitTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_ConfigChannel(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_IC_InitTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_ConfigChannel(
        htim: *mut TIM_HandleTypeDef,
        sConfig: *mut TIM_OnePulse_InitTypeDef,
        OutputChannel: u32,
        InputChannel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_ConfigOCrefClear(
        htim: *mut TIM_HandleTypeDef,
        sClearInputConfig: *mut TIM_ClearInputConfigTypeDef,
        Channel: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_ConfigClockSource(
        htim: *mut TIM_HandleTypeDef,
        sClockSourceConfig: *mut TIM_ClockConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_ConfigTI1Input(
        htim: *mut TIM_HandleTypeDef,
        TI1_Selection: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_SlaveConfigSynchro(
        htim: *mut TIM_HandleTypeDef,
        sSlaveConfig: *mut TIM_SlaveConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_SlaveConfigSynchro_IT(
        htim: *mut TIM_HandleTypeDef,
        sSlaveConfig: *mut TIM_SlaveConfigTypeDef,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_WriteStart(
        htim: *mut TIM_HandleTypeDef,
        BurstBaseAddress: u32,
        BurstRequestSrc: u32,
        BurstBuffer: *mut u32,
        BurstLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_MultiWriteStart(
        htim: *mut TIM_HandleTypeDef,
        BurstBaseAddress: u32,
        BurstRequestSrc: u32,
        BurstBuffer: *mut u32,
        BurstLength: u32,
        DataLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_WriteStop(
        htim: *mut TIM_HandleTypeDef,
        BurstRequestSrc: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_ReadStart(
        htim: *mut TIM_HandleTypeDef,
        BurstBaseAddress: u32,
        BurstRequestSrc: u32,
        BurstBuffer: *mut u32,
        BurstLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_MultiReadStart(
        htim: *mut TIM_HandleTypeDef,
        BurstBaseAddress: u32,
        BurstRequestSrc: u32,
        BurstBuffer: *mut u32,
        BurstLength: u32,
        DataLength: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_DMABurst_ReadStop(
        htim: *mut TIM_HandleTypeDef,
        BurstRequestSrc: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_GenerateEvent(
        htim: *mut TIM_HandleTypeDef,
        EventSource: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_TIM_ReadCapturedValue(htim: *mut TIM_HandleTypeDef, Channel: u32) -> u32;
}
extern "C" {
    #[doc = " @defgroup TIM_Exported_Functions_Group9 TIM Callbacks functions\n  @brief   TIM Callbacks functions\n @{"]
    pub fn HAL_TIM_PeriodElapsedCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_PeriodElapsedHalfCpltCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_OC_DelayElapsedCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_IC_CaptureCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_IC_CaptureHalfCpltCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_PWM_PulseFinishedCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_PWM_PulseFinishedHalfCpltCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_TriggerCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_TriggerHalfCpltCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_TIM_ErrorCallback(htim: *mut TIM_HandleTypeDef);
}
extern "C" {
    #[doc = " @defgroup TIM_Exported_Functions_Group10 TIM Peripheral State functions\n  @brief  Peripheral State functions\n @{"]
    pub fn HAL_TIM_Base_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OC_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn HAL_TIM_PWM_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn HAL_TIM_IC_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn HAL_TIM_OnePulse_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    pub fn HAL_TIM_Encoder_GetState(htim: *mut TIM_HandleTypeDef) -> HAL_TIM_StateTypeDef;
}
extern "C" {
    #[doc = " @defgroup TIM_Private_Functions TIM Private Functions\n @{"]
    pub fn TIM_Base_SetConfig(TIMx: *mut TIM_TypeDef, Structure: *mut TIM_Base_InitTypeDef);
}
extern "C" {
    pub fn TIM_TI1_SetConfig(
        TIMx: *mut TIM_TypeDef,
        TIM_ICPolarity: u32,
        TIM_ICSelection: u32,
        TIM_ICFilter: u32,
    );
}
extern "C" {
    pub fn TIM_OC2_SetConfig(TIMx: *mut TIM_TypeDef, OC_Config: *mut TIM_OC_InitTypeDef);
}
extern "C" {
    pub fn TIM_ETR_SetConfig(
        TIMx: *mut TIM_TypeDef,
        TIM_ExtTRGPrescaler: u32,
        TIM_ExtTRGPolarity: u32,
        ExtTRGFilter: u32,
    );
}
extern "C" {
    pub fn TIM_DMADelayPulseCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIM_DMADelayPulseHalfCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIM_DMAError(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIM_DMACaptureCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIM_DMACaptureHalfCplt(hdma: *mut DMA_HandleTypeDef);
}
extern "C" {
    pub fn TIM_CCxChannelCmd(TIMx: *mut TIM_TypeDef, Channel: u32, ChannelState: u32);
}
#[doc = " @brief  LPTIM Initialization Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LPTIM_InitTypeDef {
    #[doc = "< Specifies the counter clock Prescaler.\nThis parameter can be a value of @ref LPTIM_Clock_Prescaler"]
    pub Prescaler: u32,
    #[doc = "< Specifies whether to update immediately or after the end\nof current period.\nThis parameter can be a value of @ref LPTIM_Updating_Mode"]
    pub UpdateMode: u32,
}
const _: () = {
    ["Size of LPTIM_InitTypeDef"][::core::mem::size_of::<LPTIM_InitTypeDef>() - 8usize];
    ["Alignment of LPTIM_InitTypeDef"][::core::mem::align_of::<LPTIM_InitTypeDef>() - 4usize];
    ["Offset of field: LPTIM_InitTypeDef::Prescaler"]
        [::core::mem::offset_of!(LPTIM_InitTypeDef, Prescaler) - 0usize];
    ["Offset of field: LPTIM_InitTypeDef::UpdateMode"]
        [::core::mem::offset_of!(LPTIM_InitTypeDef, UpdateMode) - 4usize];
};
#[doc = "< Peripheral not yet initialized or disabled"]
pub const HAL_LPTIM_StateTypeDef_HAL_LPTIM_STATE_RESET: HAL_LPTIM_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use"]
pub const HAL_LPTIM_StateTypeDef_HAL_LPTIM_STATE_READY: HAL_LPTIM_StateTypeDef = 1;
#[doc = "< An internal process is ongoing"]
pub const HAL_LPTIM_StateTypeDef_HAL_LPTIM_STATE_BUSY: HAL_LPTIM_StateTypeDef = 2;
#[doc = "< Timeout state"]
pub const HAL_LPTIM_StateTypeDef_HAL_LPTIM_STATE_TIMEOUT: HAL_LPTIM_StateTypeDef = 3;
#[doc = "< Internal Process is ongoing"]
pub const HAL_LPTIM_StateTypeDef_HAL_LPTIM_STATE_ERROR: HAL_LPTIM_StateTypeDef = 4;
#[doc = " @brief  HAL LPTIM State structure definition"]
pub type HAL_LPTIM_StateTypeDef = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LPTIM_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut LPTIM_TypeDef,
    #[doc = "< LPTIM required parameters"]
    pub Init: LPTIM_InitTypeDef,
    #[doc = "< LPTIM locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< LPTIM peripheral state"]
    pub State: HAL_LPTIM_StateTypeDef,
}
const _: () = {
    ["Size of LPTIM_HandleTypeDef"][::core::mem::size_of::<LPTIM_HandleTypeDef>() - 20usize];
    ["Alignment of LPTIM_HandleTypeDef"][::core::mem::align_of::<LPTIM_HandleTypeDef>() - 4usize];
    ["Offset of field: LPTIM_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(LPTIM_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: LPTIM_HandleTypeDef::Init"]
        [::core::mem::offset_of!(LPTIM_HandleTypeDef, Init) - 4usize];
    ["Offset of field: LPTIM_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(LPTIM_HandleTypeDef, Lock) - 12usize];
    ["Offset of field: LPTIM_HandleTypeDef::State"]
        [::core::mem::offset_of!(LPTIM_HandleTypeDef, State) - 16usize];
};
pub const LPTIM_PRESCALER_DIV1: u32 = 0;
pub const LPTIM_PRESCALER_DIV2: u32 = 512;
pub const LPTIM_PRESCALER_DIV4: u32 = 1024;
pub const LPTIM_PRESCALER_DIV8: u32 = 1536;
pub const LPTIM_PRESCALER_DIV16: u32 = 2048;
pub const LPTIM_PRESCALER_DIV32: u32 = 2560;
pub const LPTIM_PRESCALER_DIV64: u32 = 3072;
pub const LPTIM_PRESCALER_DIV128: u32 = 3584;
pub const LPTIM_UPDATE_IMMEDIATE: u32 = 0;
pub const LPTIM_UPDATE_ENDOFPERIOD: u32 = 4194304;
pub const LPTIM_FLAG_ARRM: u32 = 2;
pub const LPTIM_IT_ARRM: u32 = 2;
extern "C" {
    #[doc = " @defgroup LPTIM_Exported_Functions LPTIM Exported Functions\n @{"]
    pub fn HAL_LPTIM_Init(hlptim: *mut LPTIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_DeInit(hlptim: *mut LPTIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_MspInit(hlptim: *mut LPTIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LPTIM_MspDeInit(hlptim: *mut LPTIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LPTIM_SetOnce_Start(
        hlptim: *mut LPTIM_HandleTypeDef,
        Period: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_SetOnce_Stop(hlptim: *mut LPTIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_SetOnce_Start_IT(
        hlptim: *mut LPTIM_HandleTypeDef,
        Period: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_SetOnce_Stop_IT(hlptim: *mut LPTIM_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LPTIM_ReadCounter(hlptim: *mut LPTIM_HandleTypeDef) -> u32;
}
extern "C" {
    pub fn HAL_LPTIM_ReadAutoReload(hlptim: *mut LPTIM_HandleTypeDef) -> u32;
}
extern "C" {
    pub fn HAL_LPTIM_IRQHandler(hlptim: *mut LPTIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LPTIM_AutoReloadMatchCallback(hlptim: *mut LPTIM_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LPTIM_GetState(hlptim: *mut LPTIM_HandleTypeDef) -> HAL_LPTIM_StateTypeDef;
}
#[doc = " @brief UART Init Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct UART_InitTypeDef {
    #[doc = "< This member configures the UART communication baud rate.\nThe baud rate is computed using the following formula:\n- IntegerDivider = ((PCLKx) / (16 * (huart->Init.BaudRate)))\n- FractionalDivider = ((IntegerDivider - ((uint32_t) IntegerDivider)) * 16) + 0.5"]
    pub BaudRate: u32,
    #[doc = "< Specifies the number of data bits transmitted or received in a frame.\nThis parameter can be a value of @ref UART_Word_Length"]
    pub WordLength: u32,
    #[doc = "< Specifies the number of stop bits transmitted.\nThis parameter can be a value of @ref UART_Stop_Bits"]
    pub StopBits: u32,
    #[doc = "< Specifies the parity mode.\nThis parameter can be a value of @ref UART_Parity\n@note When parity is enabled, the computed parity is inserted\nat the MSB position of the transmitted data (9th bit when\nthe word length is set to 9 data bits; 8th bit when the\nword length is set to 8 data bits)."]
    pub Parity: u32,
    #[doc = "< Specifies whether the Receive or Transmit mode is enabled or disabled.\nThis parameter can be a value of @ref UART_Mode"]
    pub Mode: u32,
    #[doc = "< Specifies whether the hardware flow control mode is enabled or disabled.\nThis parameter can be a value of @ref UART_Hardware_Flow_Control"]
    pub HwFlowCtl: u32,
    #[doc = "< Specifies whether the Over sampling 8 or Over sampling 16.\nThis parameter can be a value of @ref UART_Over_Sampling."]
    pub OverSampling: u32,
}
const _: () = {
    ["Size of UART_InitTypeDef"][::core::mem::size_of::<UART_InitTypeDef>() - 28usize];
    ["Alignment of UART_InitTypeDef"][::core::mem::align_of::<UART_InitTypeDef>() - 4usize];
    ["Offset of field: UART_InitTypeDef::BaudRate"]
        [::core::mem::offset_of!(UART_InitTypeDef, BaudRate) - 0usize];
    ["Offset of field: UART_InitTypeDef::WordLength"]
        [::core::mem::offset_of!(UART_InitTypeDef, WordLength) - 4usize];
    ["Offset of field: UART_InitTypeDef::StopBits"]
        [::core::mem::offset_of!(UART_InitTypeDef, StopBits) - 8usize];
    ["Offset of field: UART_InitTypeDef::Parity"]
        [::core::mem::offset_of!(UART_InitTypeDef, Parity) - 12usize];
    ["Offset of field: UART_InitTypeDef::Mode"]
        [::core::mem::offset_of!(UART_InitTypeDef, Mode) - 16usize];
    ["Offset of field: UART_InitTypeDef::HwFlowCtl"]
        [::core::mem::offset_of!(UART_InitTypeDef, HwFlowCtl) - 20usize];
    ["Offset of field: UART_InitTypeDef::OverSampling"]
        [::core::mem::offset_of!(UART_InitTypeDef, OverSampling) - 24usize];
};
#[doc = "< Peripheral is not yet Initialized\nValue is allowed for gState and RxState"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_RESET: HAL_UART_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use\nValue is allowed for gState and RxState"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_READY: HAL_UART_StateTypeDef = 32;
#[doc = "< an internal process is ongoing\nValue is allowed for gState only"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_BUSY: HAL_UART_StateTypeDef = 36;
#[doc = "< Data Transmission process is ongoing\nValue is allowed for gState only"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_BUSY_TX: HAL_UART_StateTypeDef = 33;
#[doc = "< Data Reception process is ongoing\nValue is allowed for RxState only"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_BUSY_RX: HAL_UART_StateTypeDef = 34;
#[doc = "< Data Transmission and Reception process is ongoing\nNot to be used for neither gState nor RxState.\nValue is result of combination (Or) between gState and RxState values"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_BUSY_TX_RX: HAL_UART_StateTypeDef = 35;
#[doc = "< Timeout state\nValue is allowed for gState only"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_TIMEOUT: HAL_UART_StateTypeDef = 160;
#[doc = "< Error\nValue is allowed for gState only"]
pub const HAL_UART_StateTypeDef_HAL_UART_STATE_ERROR: HAL_UART_StateTypeDef = 224;
#[doc = " @brief HAL UART State structures definition\n @note  HAL UART State value is a combination of 2 different substates: gState and RxState.\n        - gState contains UART state information related to global Handle management\n          and also information related to Tx operations.\n          gState value coding follow below described bitmap :\n          b7-b6  Error information\n             00 : No Error\n             01 : (Not Used)\n             10 : Timeout\n             11 : Error\n          b5     Peripheral initialization status\n             0  : Reset (Peripheral not initialized)\n             1  : Init done (Peripheral not initialized. HAL UART Init function already called)\n          b4-b3  (not used)\n             xx : Should be set to 00\n          b2     Intrinsic process state\n             0  : Ready\n             1  : Busy (Peripheral busy with some configuration or internal operations)\n          b1     (not used)\n             x  : Should be set to 0\n          b0     Tx state\n             0  : Ready (no Tx operation ongoing)\n             1  : Busy (Tx operation ongoing)\n        - RxState contains information related to Rx operations.\n          RxState value coding follow below described bitmap :\n          b7-b6  (not used)\n             xx : Should be set to 00\n          b5     Peripheral initialization status\n             0  : Reset (Peripheral not initialized)\n             1  : Init done (Peripheral not initialized)\n          b4-b2  (not used)\n            xxx : Should be set to 000\n          b1     Rx state\n             0  : Ready (no Rx operation ongoing)\n             1  : Busy (Rx operation ongoing)\n          b0     (not used)\n             x  : Should be set to 0."]
pub type HAL_UART_StateTypeDef = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct UART_AdvFeatureInitTypeDef {
    #[doc = "< Specifies which advanced UART features is initialized. Several\nAdvanced Features may be initialized at the same time .\nThis parameter can be a value of @ref UART_Advanced_Features_Initialization_Type."]
    pub AdvFeatureInit: u32,
    #[doc = "< Specifies whether auto Baud rate detection is enabled.\nThis parameter can be a value of @ref UART_AutoBaudRate_Enable."]
    pub AutoBaudRateEnable: u32,
    #[doc = "< If auto Baud rate detection is enabled, specifies how the rate\ndetection is carried out.\nThis parameter can be a value of @ref UART_AutoBaud_Rate_Mode."]
    pub AutoBaudRateMode: u32,
}
const _: () = {
    ["Size of UART_AdvFeatureInitTypeDef"]
        [::core::mem::size_of::<UART_AdvFeatureInitTypeDef>() - 12usize];
    ["Alignment of UART_AdvFeatureInitTypeDef"]
        [::core::mem::align_of::<UART_AdvFeatureInitTypeDef>() - 4usize];
    ["Offset of field: UART_AdvFeatureInitTypeDef::AdvFeatureInit"]
        [::core::mem::offset_of!(UART_AdvFeatureInitTypeDef, AdvFeatureInit) - 0usize];
    ["Offset of field: UART_AdvFeatureInitTypeDef::AutoBaudRateEnable"]
        [::core::mem::offset_of!(UART_AdvFeatureInitTypeDef, AutoBaudRateEnable) - 4usize];
    ["Offset of field: UART_AdvFeatureInitTypeDef::AutoBaudRateMode"]
        [::core::mem::offset_of!(UART_AdvFeatureInitTypeDef, AutoBaudRateMode) - 8usize];
};
#[doc = " @brief  UART handle Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __UART_HandleTypeDef {
    #[doc = "< UART registers base address"]
    pub Instance: *mut USART_TypeDef,
    #[doc = "< UART communication parameters"]
    pub Init: UART_InitTypeDef,
    #[doc = "< UART Advanced Features initialization parameters"]
    pub AdvancedInit: UART_AdvFeatureInitTypeDef,
    #[doc = "< Pointer to UART Tx transfer Buffer"]
    pub pTxBuffPtr: *mut u8,
    #[doc = "< UART Tx Transfer size"]
    pub TxXferSize: u16,
    #[doc = "< UART Tx Transfer Counter"]
    pub TxXferCount: u16,
    #[doc = "< Pointer to UART Rx transfer Buffer"]
    pub pRxBuffPtr: *mut u8,
    #[doc = "< UART Rx Transfer size"]
    pub RxXferSize: u16,
    #[doc = "< UART Rx Transfer Counter"]
    pub RxXferCount: u16,
    #[doc = "< UART Tx DMA Handle parameters"]
    pub hdmatx: *mut DMA_HandleTypeDef,
    #[doc = "< UART Rx DMA Handle parameters"]
    pub hdmarx: *mut DMA_HandleTypeDef,
    #[doc = "< Locking object"]
    pub Lock: HAL_LockTypeDef,
    #[doc = "< UART state information related to global Handle management\nand also related to Tx operations.\nThis parameter can be a value of @ref HAL_UART_StateTypeDef"]
    pub gState: HAL_UART_StateTypeDef,
    #[doc = "< UART state information related to Rx operations.\nThis parameter can be a value of @ref HAL_UART_StateTypeDef"]
    pub RxState: HAL_UART_StateTypeDef,
    #[doc = "< UART Error code"]
    pub ErrorCode: u32,
}
const _: () = {
    ["Size of __UART_HandleTypeDef"][::core::mem::size_of::<__UART_HandleTypeDef>() - 84usize];
    ["Alignment of __UART_HandleTypeDef"][::core::mem::align_of::<__UART_HandleTypeDef>() - 4usize];
    ["Offset of field: __UART_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: __UART_HandleTypeDef::Init"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, Init) - 4usize];
    ["Offset of field: __UART_HandleTypeDef::AdvancedInit"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, AdvancedInit) - 32usize];
    ["Offset of field: __UART_HandleTypeDef::pTxBuffPtr"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, pTxBuffPtr) - 44usize];
    ["Offset of field: __UART_HandleTypeDef::TxXferSize"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, TxXferSize) - 48usize];
    ["Offset of field: __UART_HandleTypeDef::TxXferCount"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, TxXferCount) - 50usize];
    ["Offset of field: __UART_HandleTypeDef::pRxBuffPtr"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, pRxBuffPtr) - 52usize];
    ["Offset of field: __UART_HandleTypeDef::RxXferSize"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, RxXferSize) - 56usize];
    ["Offset of field: __UART_HandleTypeDef::RxXferCount"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, RxXferCount) - 58usize];
    ["Offset of field: __UART_HandleTypeDef::hdmatx"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, hdmatx) - 60usize];
    ["Offset of field: __UART_HandleTypeDef::hdmarx"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, hdmarx) - 64usize];
    ["Offset of field: __UART_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, Lock) - 68usize];
    ["Offset of field: __UART_HandleTypeDef::gState"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, gState) - 72usize];
    ["Offset of field: __UART_HandleTypeDef::RxState"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, RxState) - 76usize];
    ["Offset of field: __UART_HandleTypeDef::ErrorCode"]
        [::core::mem::offset_of!(__UART_HandleTypeDef, ErrorCode) - 80usize];
};
#[doc = " @brief  UART handle Structure definition"]
pub type UART_HandleTypeDef = __UART_HandleTypeDef;
pub const HAL_UART_ERROR_NONE: u32 = 0;
pub const HAL_UART_ERROR_PE: u32 = 1;
pub const HAL_UART_ERROR_NE: u32 = 2;
pub const HAL_UART_ERROR_FE: u32 = 4;
pub const HAL_UART_ERROR_ORE: u32 = 8;
pub const HAL_UART_ERROR_DMA: u32 = 16;
pub const UART_WORDLENGTH_8B: u32 = 0;
pub const UART_WORDLENGTH_9B: u32 = 4096u16 as u32;
pub const UART_STOPBITS_1: u32 = 0;
pub const UART_STOPBITS_2: u32 = 8192u16 as u32;
pub const UART_PARITY_NONE: u32 = 0;
pub const UART_PARITY_EVEN: u32 = 1024u16 as u32;
pub const UART_PARITY_ODD: u32 = 1536u16 as u32;
pub const UART_HWCONTROL_NONE: u32 = 0;
pub const UART_HWCONTROL_RTS: u32 = 256u16 as u32;
pub const UART_HWCONTROL_CTS: u32 = 512u16 as u32;
pub const UART_HWCONTROL_RTS_CTS: u32 = 768u16 as u32;
pub const UART_MODE_RX: u32 = 4u8 as u32;
pub const UART_MODE_TX: u32 = 8u8 as u32;
pub const UART_MODE_TX_RX: u32 = 12u8 as u32;
pub const UART_STATE_DISABLE: u32 = 0;
pub const UART_STATE_ENABLE: u32 = 8192u16 as u32;
pub const UART_OVERSAMPLING_16: u32 = 0;
pub const UART_OVERSAMPLING_8: u32 = 2048u16 as u32;
pub const UART_LINBREAKDETECTLENGTH_10B: u32 = 0;
pub const UART_WAKEUPMETHOD_IDLELINE: u32 = 0;
pub const UART_WAKEUPMETHOD_ADDRESSMARK: u32 = 2048u16 as u32;
pub const UART_FLAG_ABRF: u32 = 1024u16 as u32;
pub const UART_FLAG_ABRE: u32 = 2048u16 as u32;
pub const UART_FLAG_CTS: u32 = 512u16 as u32;
pub const UART_FLAG_TXE: u32 = 128u8 as u32;
pub const UART_FLAG_TC: u32 = 64u8 as u32;
pub const UART_FLAG_RXNE: u32 = 32u8 as u32;
pub const UART_FLAG_IDLE: u32 = 16u8 as u32;
pub const UART_FLAG_ORE: u32 = 8u8 as u32;
pub const UART_FLAG_NE: u32 = 4u8 as u32;
pub const UART_FLAG_FE: u32 = 2u8 as u32;
pub const UART_FLAG_PE: u32 = 1u8 as u32;
pub const UART_IT_PE: u32 = 268435712u32 as u32;
pub const UART_IT_TXE: u32 = 268435584u32 as u32;
pub const UART_IT_TC: u32 = 268435520u32 as u32;
pub const UART_IT_RXNE: u32 = 268435488u32 as u32;
pub const UART_IT_IDLE: u32 = 268435472u32 as u32;
pub const UART_IT_CTS: u32 = 805307392u32 as u32;
pub const UART_IT_ERR: u32 = 805306369u32 as u32;
pub const UART_ADVFEATURE_NO_INIT: u32 = 0;
pub const UART_ADVFEATURE_AUTOBAUDRATE_INIT: u32 = 64;
pub const UART_ADVFEATURE_AUTOBAUDRATE_DISABLE: u32 = 0;
pub const UART_ADVFEATURE_AUTOBAUDRATE_ENABLE: u32 = 4096;
pub const UART_ADVFEATURE_AUTOBAUDRATE_ONSTARTBIT: u32 = 0;
pub const UART_ADVFEATURE_AUTOBAUDRATE_ONFALLINGEDGE: u32 = 8192;
extern "C" {
    #[doc = " @addtogroup UART_Exported_Functions_Group1 Initialization and de-initialization functions\n @{"]
    pub fn HAL_UART_Init(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_HalfDuplex_Init(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_MultiProcessor_Init(
        huart: *mut UART_HandleTypeDef,
        Address: u8,
        WakeUpMethod: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_DeInit(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_MspInit(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_MspDeInit(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup UART_Exported_Functions_Group IO operation functions\n @{"]
    pub fn HAL_UART_Transmit(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Receive(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
        Timeout: u32,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Transmit_IT(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Receive_IT(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Transmit_DMA(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Receive_DMA(
        huart: *mut UART_HandleTypeDef,
        pData: *mut u8,
        Size: u16,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_DMAPause(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_DMAResume(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_DMAStop(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Abort(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_AbortTransmit(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_AbortReceive(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_Abort_IT(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_AbortTransmit_IT(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_AbortReceive_IT(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_UART_IRQHandler(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_TxCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_TxHalfCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_RxCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_RxHalfCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_ErrorCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_AbortCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_AbortTransmitCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_AbortReceiveCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    pub fn HAL_UART_IdleFrameDetectCpltCallback(huart: *mut UART_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup UART_Exported_Functions_Group3\n @{"]
    pub fn HAL_UART_SendBreak(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_MultiProcessor_EnterMuteMode(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_MultiProcessor_ExitMuteMode(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_HalfDuplex_EnableTransmitter(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_HalfDuplex_EnableReceiver(huart: *mut UART_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup UART_Exported_Functions_Group4\n @{"]
    pub fn HAL_UART_GetState(huart: *mut UART_HandleTypeDef) -> HAL_UART_StateTypeDef;
}
extern "C" {
    pub fn HAL_UART_GetError(huart: *mut UART_HandleTypeDef) -> u32;
}
pub const UART_IT_MASK: u32 = 65535;
pub const UART_CR1_REG_INDEX: u32 = 1;
pub const UART_CR2_REG_INDEX: u32 = 2;
pub const UART_CR3_REG_INDEX: u32 = 3;
#[doc = " @brief  WWDG Init structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WWDG_InitTypeDef {
    #[doc = "< Specifies the prescaler value of the WWDG.\nThis parameter can be a value of @ref WWDG_Prescaler"]
    pub Prescaler: u32,
    #[doc = "< Specifies the WWDG window value to be compared to the downcounter.\nThis parameter must be a number Min_Data = 0x40 and Max_Data = 0x7F"]
    pub Window: u32,
    #[doc = "< Specifies the WWDG free-running downcounter  value.\nThis parameter must be a number between Min_Data = 0x40 and Max_Data = 0x7F"]
    pub Counter: u32,
    #[doc = "< Specifies if WWDG Early Wakeup Interupt is enable or not.\nThis parameter can be a value of @ref WWDG_EWI_Mode"]
    pub EWIMode: u32,
}
const _: () = {
    ["Size of WWDG_InitTypeDef"][::core::mem::size_of::<WWDG_InitTypeDef>() - 16usize];
    ["Alignment of WWDG_InitTypeDef"][::core::mem::align_of::<WWDG_InitTypeDef>() - 4usize];
    ["Offset of field: WWDG_InitTypeDef::Prescaler"]
        [::core::mem::offset_of!(WWDG_InitTypeDef, Prescaler) - 0usize];
    ["Offset of field: WWDG_InitTypeDef::Window"]
        [::core::mem::offset_of!(WWDG_InitTypeDef, Window) - 4usize];
    ["Offset of field: WWDG_InitTypeDef::Counter"]
        [::core::mem::offset_of!(WWDG_InitTypeDef, Counter) - 8usize];
    ["Offset of field: WWDG_InitTypeDef::EWIMode"]
        [::core::mem::offset_of!(WWDG_InitTypeDef, EWIMode) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct WWDG_HandleTypeDef {
    #[doc = "< Register base address"]
    pub Instance: *mut WWDG_TypeDef,
    #[doc = "< WWDG required parameters"]
    pub Init: WWDG_InitTypeDef,
}
const _: () = {
    ["Size of WWDG_HandleTypeDef"][::core::mem::size_of::<WWDG_HandleTypeDef>() - 20usize];
    ["Alignment of WWDG_HandleTypeDef"][::core::mem::align_of::<WWDG_HandleTypeDef>() - 4usize];
    ["Offset of field: WWDG_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(WWDG_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: WWDG_HandleTypeDef::Init"]
        [::core::mem::offset_of!(WWDG_HandleTypeDef, Init) - 4usize];
};
pub const WWDG_IT_EWI: u32 = 512;
pub const WWDG_FLAG_EWIF: u32 = 1;
pub const WWDG_PRESCALER_1: u32 = 0;
pub const WWDG_PRESCALER_2: u32 = 128;
pub const WWDG_PRESCALER_4: u32 = 256;
pub const WWDG_PRESCALER_8: u32 = 384;
pub const WWDG_EWI_DISABLE: u32 = 0;
pub const WWDG_EWI_ENABLE: u32 = 512;
extern "C" {
    #[doc = " @addtogroup WWDG_Exported_Functions_Group1\n @{"]
    pub fn HAL_WWDG_Init(hwwdg: *mut WWDG_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_WWDG_MspInit(hwwdg: *mut WWDG_HandleTypeDef);
}
extern "C" {
    #[doc = " @addtogroup WWDG_Exported_Functions_Group2\n @{"]
    pub fn HAL_WWDG_Refresh(hwwdg: *mut WWDG_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_WWDG_IRQHandler(hwwdg: *mut WWDG_HandleTypeDef);
}
extern "C" {
    pub fn HAL_WWDG_EarlyWakeupCallback(hwwdg: *mut WWDG_HandleTypeDef);
}
#[doc = " @brief LED Init Structure definition"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LED_InitTypeDef {
    #[doc = "< Specifies the LED COM drive capability.\nThis parameter can be a value of @ref LED_COMDrive"]
    pub ComDrive: u32,
    #[doc = "< Specifies the prescaler value used to divide the LED clock.\nThis parameter can be a number between Min_Data = 0x00(div1) and Max_Data = 0xFF(div256)"]
    pub Prescaler: u32,
    #[doc = "< Specifies the number of COM open.\nThis parameter can be a number between Min_Data = 0(1COM) and Max_Data = 3(4COM)"]
    pub ComNum: u32,
    #[doc = "< Specifies LED Lighting time.\nThis parameter can be a number between Min_Data = 1 and Max_Data = 0xFF"]
    pub LightTime: u32,
    #[doc = "< Specifies LED Dead time.\nThis parameter can be a number between Min_Data = 1 and Max_Data = 0xFF"]
    pub DeadTime: u32,
}
const _: () = {
    ["Size of LED_InitTypeDef"][::core::mem::size_of::<LED_InitTypeDef>() - 20usize];
    ["Alignment of LED_InitTypeDef"][::core::mem::align_of::<LED_InitTypeDef>() - 4usize];
    ["Offset of field: LED_InitTypeDef::ComDrive"]
        [::core::mem::offset_of!(LED_InitTypeDef, ComDrive) - 0usize];
    ["Offset of field: LED_InitTypeDef::Prescaler"]
        [::core::mem::offset_of!(LED_InitTypeDef, Prescaler) - 4usize];
    ["Offset of field: LED_InitTypeDef::ComNum"]
        [::core::mem::offset_of!(LED_InitTypeDef, ComNum) - 8usize];
    ["Offset of field: LED_InitTypeDef::LightTime"]
        [::core::mem::offset_of!(LED_InitTypeDef, LightTime) - 12usize];
    ["Offset of field: LED_InitTypeDef::DeadTime"]
        [::core::mem::offset_of!(LED_InitTypeDef, DeadTime) - 16usize];
};
#[doc = "< Peripheral is not yet Initialized"]
pub const HAL_LED_StateTypeDef_HAL_LED_STATE_RESET: HAL_LED_StateTypeDef = 0;
#[doc = "< Peripheral Initialized and ready for use"]
pub const HAL_LED_StateTypeDef_HAL_LED_STATE_READY: HAL_LED_StateTypeDef = 1;
#[doc = "< an internal process is ongoing"]
pub const HAL_LED_StateTypeDef_HAL_LED_STATE_BUSY: HAL_LED_StateTypeDef = 2;
#[doc = "< Timeout state"]
pub const HAL_LED_StateTypeDef_HAL_LED_STATE_TIMEOUT: HAL_LED_StateTypeDef = 3;
#[doc = "< Error"]
pub const HAL_LED_StateTypeDef_HAL_LED_STATE_ERROR: HAL_LED_StateTypeDef = 4;
#[doc = " @brief HAL LED State structures definition"]
pub type HAL_LED_StateTypeDef = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct LED_HandleTypeDef {
    pub Instance: *mut LED_TypeDef,
    pub Init: LED_InitTypeDef,
    pub Lock: HAL_LockTypeDef,
    pub State: HAL_LED_StateTypeDef,
}
const _: () = {
    ["Size of LED_HandleTypeDef"][::core::mem::size_of::<LED_HandleTypeDef>() - 32usize];
    ["Alignment of LED_HandleTypeDef"][::core::mem::align_of::<LED_HandleTypeDef>() - 4usize];
    ["Offset of field: LED_HandleTypeDef::Instance"]
        [::core::mem::offset_of!(LED_HandleTypeDef, Instance) - 0usize];
    ["Offset of field: LED_HandleTypeDef::Init"]
        [::core::mem::offset_of!(LED_HandleTypeDef, Init) - 4usize];
    ["Offset of field: LED_HandleTypeDef::Lock"]
        [::core::mem::offset_of!(LED_HandleTypeDef, Lock) - 24usize];
    ["Offset of field: LED_HandleTypeDef::State"]
        [::core::mem::offset_of!(LED_HandleTypeDef, State) - 28usize];
};
pub const LED_DISP_NONE: u32 = 0;
pub const LED_DISP_FULL: u32 = 255;
pub const LED_DISP_0: u32 = 63;
pub const LED_DISP_1: u32 = 6;
pub const LED_DISP_2: u32 = 91;
pub const LED_DISP_3: u32 = 79;
pub const LED_DISP_4: u32 = 102;
pub const LED_DISP_5: u32 = 109;
pub const LED_DISP_6: u32 = 125;
pub const LED_DISP_7: u32 = 7;
pub const LED_DISP_8: u32 = 127;
pub const LED_DISP_9: u32 = 111;
pub const LED_DISP_A: u32 = 119;
pub const LED_DISP_B: u32 = 124;
pub const LED_DISP_C: u32 = 57;
pub const LED_DISP_D: u32 = 94;
pub const LED_DISP_E: u32 = 121;
pub const LED_DISP_F: u32 = 113;
pub const LED_DISP_H: u32 = 118;
pub const LED_DISP_P: u32 = 115;
pub const LED_DISP_U: u32 = 62;
pub const LED_DISP_DOT: u32 = 128;
pub const LED_COM0: u32 = 1;
pub const LED_COM1: u32 = 2;
pub const LED_COM2: u32 = 4;
pub const LED_COM3: u32 = 8;
pub const LED_COM_ALL: u32 = 15;
pub const LED_COMDRIVE_LOW: u32 = 0;
pub const LED_COMDRIVE_HIGH: u32 = 4096;
extern "C" {
    #[doc = " @defgroup LED_Exported_Functions_Group LED operation functions\n  @brief    LED operation functions\n @{"]
    pub fn HAL_LED_Init(hled: *mut LED_HandleTypeDef) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LED_MspInit(hled: *mut LED_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LED_SetComDisplay(
        hled: *mut LED_HandleTypeDef,
        comCh: u8,
        data: u8,
    ) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_LED_LightCpltCallback(hled: *mut LED_HandleTypeDef);
}
extern "C" {
    pub fn HAL_LED_IRQHandler(hled: *mut LED_HandleTypeDef);
}
pub const HAL_TickFreqTypeDef_HAL_TICK_FREQ_10HZ: HAL_TickFreqTypeDef = 100;
pub const HAL_TickFreqTypeDef_HAL_TICK_FREQ_100HZ: HAL_TickFreqTypeDef = 10;
pub const HAL_TickFreqTypeDef_HAL_TICK_FREQ_1KHZ: HAL_TickFreqTypeDef = 1;
pub const HAL_TickFreqTypeDef_HAL_TICK_FREQ_DEFAULT: HAL_TickFreqTypeDef = 1;
#[doc = " @defgroup HAL_TICK_FREQ Tick Frequency\n @{"]
pub type HAL_TickFreqTypeDef = ::core::ffi::c_uint;
extern "C" {
    #[doc = " @}"]
    pub static mut uwTickPrio: u32;
}
extern "C" {
    pub static mut uwTickFreq: u32;
}
pub const SYSCFG_BOOT_MAINFLASH: u32 = 0;
pub const SYSCFG_BOOT_SYSTEMFLASH: u32 = 1;
pub const SYSCFG_BOOT_SRAM: u32 = 3;
extern "C" {
    pub fn HAL_Init() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_DeInit() -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_MspInit();
}
extern "C" {
    pub fn HAL_MspDeInit();
}
extern "C" {
    pub fn HAL_InitTick(TickPriority: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    #[doc = " @addtogroup HAL_Exported_Functions_Group2\n @{"]
    pub fn HAL_IncTick();
}
extern "C" {
    pub fn HAL_Delay(Delay: u32);
}
extern "C" {
    pub fn HAL_GetTick() -> u32;
}
extern "C" {
    pub fn HAL_GetTickPrio() -> u32;
}
extern "C" {
    pub fn HAL_SetTickFreq(Freq: u32) -> HAL_StatusTypeDef;
}
extern "C" {
    pub fn HAL_GetTickFreq() -> u32;
}
extern "C" {
    pub fn HAL_SuspendTick();
}
extern "C" {
    pub fn HAL_ResumeTick();
}
extern "C" {
    pub fn HAL_GetHalVersion() -> u32;
}
extern "C" {
    pub fn HAL_GetREVID() -> u32;
}
extern "C" {
    pub fn HAL_GetDEVID() -> u32;
}
extern "C" {
    pub fn HAL_GetUIDw0() -> u32;
}
extern "C" {
    pub fn HAL_GetUIDw1() -> u32;
}
extern "C" {
    pub fn HAL_GetUIDw2() -> u32;
}
extern "C" {
    pub fn HAL_DBGMCU_EnableDBGSleepMode();
}
extern "C" {
    pub fn HAL_DBGMCU_DisableDBGSleepMode();
}
extern "C" {
    pub fn HAL_DBGMCU_EnableDBGStopMode();
}
extern "C" {
    pub fn HAL_DBGMCU_DisableDBGStopMode();
}
extern "C" {
    pub fn HAL_SYSCFG_DMA_Req(Requset: u32);
}
extern "C" {
    pub fn HAL_RCC_DMA_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_FLASH_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_SRAM_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_CRC_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_DMA_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_FLASH_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_SRAM_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_CRC_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM3_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_RTCAPB_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_WWDG_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_SPI2_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_USART2_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_I2C_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_PWR_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM1_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_SPI1_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_USART1_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM14_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM16_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM17_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_ADC_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_COMP1_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_COMP2_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_LED_CLK_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM3_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_RTCAPB_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_SPI2_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_USART2_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_I2C_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_PWR_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM1_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_SPI1_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_USART1_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM14_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM16_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_TIM17_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_ADC_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_COMP1_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_COMP2_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_LED_CLK_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_DMA_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_FLASH_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_CRC_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_DMA_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_FLASH_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_CRC_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM3_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_RTCAPB_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_WWDG_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_SPI2_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_USART2_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_I2C_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_PWR_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM3_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_RTCAPB_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_WWDG_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_SPI2_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_USART2_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_I2C1_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_PWR_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM1_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_SPI1_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_USART1_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM14_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM16_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM17_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_ADC_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_COMP1_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_COMP2_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_LED_IS_CLK_ENABLED();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM1_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_SPI1_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_USART1_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM14_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM16_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_TIM17_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_ADC_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_COMP1_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_COMP2_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_LED_IS_CLK_DISABLED();
}
extern "C" {
    pub fn HAL_RCC_AHB_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_DMA_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_CRC_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_AHB_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_DMA_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_CRC_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_IOP_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_IOP_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOA_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOB_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_GPIOF_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_APB1_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM3_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SPI2_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_USART2_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_I2C_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_PWR_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_APB1_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM3_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SPI2_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_USART2_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_I2C_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_DBGMCU_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_PWR_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_LPTIM_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_APB2_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM1_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SPI1_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_USART1_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM14_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM16_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM17_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_ADC_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_COMP1_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_COMP2_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_LED_FORCE_RESET();
}
extern "C" {
    pub fn HAL_RCC_APB2_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SYSCFG_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM1_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_SPI1_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_USART1_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM14_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM16_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_TIM17_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_ADC_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_COMP1_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_COMP2_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_LED_RELEASE_RESET();
}
extern "C" {
    pub fn HAL_RCC_BACKUPRESET_FORCE();
}
extern "C" {
    pub fn HAL_RCC_BACKUPRESET_RELEASE();
}
extern "C" {
    pub fn HAL_RCC_RTC_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_RTC_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_HSI_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_HSI_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_LSI_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_LSI_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_GET_RTC_SOURCE();
}
extern "C" {
    pub fn HAL_RCC_PLL_ENABLE();
}
extern "C" {
    pub fn HAL_RCC_PLL_DISABLE();
}
extern "C" {
    pub fn HAL_RCC_GET_PLL_OSCSOURCE();
}
extern "C" {
    pub fn HAL_RCC_GET_SYSCLK_SOURCE();
}
extern "C" {
    pub fn HAL_RCC_CLEAR_RESET_FLAGS();
}
extern "C" {
    pub fn RCC_GET_HSICALIBRATION_4MHz() -> u32;
}
extern "C" {
    pub fn RCC_GET_HSICALIBRATION_8MHz() -> u32;
}
extern "C" {
    pub fn RCC_GET_HSICALIBRATION_16MHz() -> u32;
}
extern "C" {
    pub fn RCC_GET_HSICALIBRATION_22p12MHz() -> u32;
}
extern "C" {
    pub fn RCC_GET_HSICALIBRATION_24MHz() -> u32;
}
extern "C" {
    pub fn HAL_GET_ADC_TSCAL1() -> u32;
}
extern "C" {
    pub fn HAL_GET_ADC_TSCAL2() -> u32;
}