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
#![doc = "Peripheral access API for EFM32GG11B820F2048GL192 microcontrollers (generated using svd2rust v0.13.1)\n\nYou can find an overview of the API [here].\n\n[here]: https://docs.rs/svd2rust/0.13.1/svd2rust/#peripheral-api"] #![deny(missing_docs)] #![deny(warnings)] #![allow(non_camel_case_types)] #![no_std] extern crate bare_metal; extern crate cortex_m; #[cfg(feature = "rt")] extern crate cortex_m_rt; extern crate vcell; use core::marker::PhantomData; use core::ops::Deref; #[doc = r" Number available in the NVIC for configuring priority"] pub const NVIC_PRIO_BITS: u8 = 3; #[cfg(feature = "rt")] extern "C" { fn EMU(); fn WDOG0(); fn LDMA(); fn GPIO_EVEN(); fn SMU(); fn TIMER0(); fn USART0_RX(); fn USART0_TX(); fn ACMP0(); fn ADC0(); fn IDAC0(); fn I2C0(); fn I2C1(); fn GPIO_ODD(); fn TIMER1(); fn TIMER2(); fn TIMER3(); fn USART1_RX(); fn USART1_TX(); fn USART2_RX(); fn USART2_TX(); fn UART0_RX(); fn UART0_TX(); fn UART1_RX(); fn UART1_TX(); fn LEUART0(); fn LEUART1(); fn LETIMER0(); fn PCNT0(); fn PCNT1(); fn PCNT2(); fn RTCC(); fn CMU(); fn MSC(); fn CRYPTO0(); fn CRYOTIMER(); fn FPUEH(); fn USART3_RX(); fn USART3_TX(); fn USART4_RX(); fn USART4_TX(); fn WTIMER0(); fn WTIMER1(); fn WTIMER2(); fn WTIMER3(); fn I2C2(); fn VDAC0(); fn TIMER4(); fn TIMER5(); fn TIMER6(); fn USART5_RX(); fn USART5_TX(); fn CSEN(); fn LESENSE(); fn EBI(); fn ACMP2(); fn ADC1(); fn LCD(); fn SDIO(); fn ETH(); fn CAN0(); fn CAN1(); fn USB(); fn RTC(); fn WDOG1(); fn LETIMER1(); fn TRNG0(); fn QSPI0(); } #[doc(hidden)] pub union Vector { _handler: unsafe extern "C" fn(), _reserved: u32, } #[cfg(feature = "rt")] #[doc(hidden)] #[link_section = ".vector_table.interrupts"] #[no_mangle] pub static __INTERRUPTS: [Vector; 68] = [ Vector { _handler: EMU }, Vector { _handler: WDOG0 }, Vector { _handler: LDMA }, Vector { _handler: GPIO_EVEN }, Vector { _handler: SMU }, Vector { _handler: TIMER0 }, Vector { _handler: USART0_RX }, Vector { _handler: USART0_TX }, Vector { _handler: ACMP0 }, Vector { _handler: ADC0 }, Vector { _handler: IDAC0 }, Vector { _handler: I2C0 }, Vector { _handler: I2C1 }, Vector { _handler: GPIO_ODD }, Vector { _handler: TIMER1 }, Vector { _handler: TIMER2 }, Vector { _handler: TIMER3 }, Vector { _handler: USART1_RX }, Vector { _handler: USART1_TX }, Vector { _handler: USART2_RX }, Vector { _handler: USART2_TX }, Vector { _handler: UART0_RX }, Vector { _handler: UART0_TX }, Vector { _handler: UART1_RX }, Vector { _handler: UART1_TX }, Vector { _handler: LEUART0 }, Vector { _handler: LEUART1 }, Vector { _handler: LETIMER0 }, Vector { _handler: PCNT0 }, Vector { _handler: PCNT1 }, Vector { _handler: PCNT2 }, Vector { _handler: RTCC }, Vector { _handler: CMU }, Vector { _handler: MSC }, Vector { _handler: CRYPTO0 }, Vector { _handler: CRYOTIMER }, Vector { _handler: FPUEH }, Vector { _handler: USART3_RX }, Vector { _handler: USART3_TX }, Vector { _handler: USART4_RX }, Vector { _handler: USART4_TX }, Vector { _handler: WTIMER0 }, Vector { _handler: WTIMER1 }, Vector { _handler: WTIMER2 }, Vector { _handler: WTIMER3 }, Vector { _handler: I2C2 }, Vector { _handler: VDAC0 }, Vector { _handler: TIMER4 }, Vector { _handler: TIMER5 }, Vector { _handler: TIMER6 }, Vector { _handler: USART5_RX }, Vector { _handler: USART5_TX }, Vector { _handler: CSEN }, Vector { _handler: LESENSE }, Vector { _handler: EBI }, Vector { _handler: ACMP2 }, Vector { _handler: ADC1 }, Vector { _handler: LCD }, Vector { _handler: SDIO }, Vector { _handler: ETH }, Vector { _handler: CAN0 }, Vector { _handler: CAN1 }, Vector { _handler: USB }, Vector { _handler: RTC }, Vector { _handler: WDOG1 }, Vector { _handler: LETIMER1 }, Vector { _handler: TRNG0 }, Vector { _handler: QSPI0 }, ]; #[doc = r" Macro to override a device specific interrupt handler"] #[doc = r""] #[doc = r" # Syntax"] #[doc = r""] #[doc = r" ``` ignore"] #[doc = r" interrupt!("] #[doc = r" // Name of the interrupt"] #[doc = r" $Name:ident,"] #[doc = r""] #[doc = r" // Path to the interrupt handler (a function)"] #[doc = r" $handler:path,"] #[doc = r""] #[doc = r" // Optional, state preserved across invocations of the handler"] #[doc = r" state: $State:ty = $initial_state:expr,"] #[doc = r" );"] #[doc = r" ```"] #[doc = r""] #[doc = r" Where `$Name` must match the name of one of the variants of the `Interrupt`"] #[doc = r" enum."] #[doc = r""] #[doc = r" The handler must have signature `fn()` is no state was associated to it;"] #[doc = r" otherwise its signature must be `fn(&mut $State)`."] #[cfg(feature = "rt")] #[macro_export] macro_rules! interrupt { ($Name:ident, $handler:path,state: $State:ty = $initial_state:expr) => { #[allow(unsafe_code)] #[deny(private_no_mangle_fns)] #[no_mangle] pub unsafe extern "C" fn $Name() { static mut STATE: $State = $initial_state; let _ = $crate::Interrupt::$Name; let f: fn(&mut $State) = $handler; f(&mut STATE) } }; ($Name:ident, $handler:path) => { #[allow(unsafe_code)] #[deny(private_no_mangle_fns)] #[no_mangle] pub unsafe extern "C" fn $Name() { let _ = $crate::Interrupt::$Name; let f: fn() = $handler; f() } }; } #[doc = r" Enumeration of all the interrupts"] pub enum Interrupt { #[doc = "0 - EMU"] EMU, #[doc = "1 - WDOG0"] WDOG0, #[doc = "2 - LDMA"] LDMA, #[doc = "3 - GPIO_EVEN"] GPIO_EVEN, #[doc = "4 - SMU"] SMU, #[doc = "5 - TIMER0"] TIMER0, #[doc = "6 - USART0_RX"] USART0_RX, #[doc = "7 - USART0_TX"] USART0_TX, #[doc = "8 - ACMP0"] ACMP0, #[doc = "9 - ADC0"] ADC0, #[doc = "10 - IDAC0"] IDAC0, #[doc = "11 - I2C0"] I2C0, #[doc = "12 - I2C1"] I2C1, #[doc = "13 - GPIO_ODD"] GPIO_ODD, #[doc = "14 - TIMER1"] TIMER1, #[doc = "15 - TIMER2"] TIMER2, #[doc = "16 - TIMER3"] TIMER3, #[doc = "17 - USART1_RX"] USART1_RX, #[doc = "18 - USART1_TX"] USART1_TX, #[doc = "19 - USART2_RX"] USART2_RX, #[doc = "20 - USART2_TX"] USART2_TX, #[doc = "21 - UART0_RX"] UART0_RX, #[doc = "22 - UART0_TX"] UART0_TX, #[doc = "23 - UART1_RX"] UART1_RX, #[doc = "24 - UART1_TX"] UART1_TX, #[doc = "25 - LEUART0"] LEUART0, #[doc = "26 - LEUART1"] LEUART1, #[doc = "27 - LETIMER0"] LETIMER0, #[doc = "28 - PCNT0"] PCNT0, #[doc = "29 - PCNT1"] PCNT1, #[doc = "30 - PCNT2"] PCNT2, #[doc = "31 - RTCC"] RTCC, #[doc = "32 - CMU"] CMU, #[doc = "33 - MSC"] MSC, #[doc = "34 - CRYPTO0"] CRYPTO0, #[doc = "35 - CRYOTIMER"] CRYOTIMER, #[doc = "36 - FPUEH"] FPUEH, #[doc = "37 - USART3_RX"] USART3_RX, #[doc = "38 - USART3_TX"] USART3_TX, #[doc = "39 - USART4_RX"] USART4_RX, #[doc = "40 - USART4_TX"] USART4_TX, #[doc = "41 - WTIMER0"] WTIMER0, #[doc = "42 - WTIMER1"] WTIMER1, #[doc = "43 - WTIMER2"] WTIMER2, #[doc = "44 - WTIMER3"] WTIMER3, #[doc = "45 - I2C2"] I2C2, #[doc = "46 - VDAC0"] VDAC0, #[doc = "47 - TIMER4"] TIMER4, #[doc = "48 - TIMER5"] TIMER5, #[doc = "49 - TIMER6"] TIMER6, #[doc = "50 - USART5_RX"] USART5_RX, #[doc = "51 - USART5_TX"] USART5_TX, #[doc = "52 - CSEN"] CSEN, #[doc = "53 - LESENSE"] LESENSE, #[doc = "54 - EBI"] EBI, #[doc = "55 - ACMP2"] ACMP2, #[doc = "56 - ADC1"] ADC1, #[doc = "57 - LCD"] LCD, #[doc = "58 - SDIO"] SDIO, #[doc = "59 - ETH"] ETH, #[doc = "60 - CAN0"] CAN0, #[doc = "61 - CAN1"] CAN1, #[doc = "62 - USB"] USB, #[doc = "63 - RTC"] RTC, #[doc = "64 - WDOG1"] WDOG1, #[doc = "65 - LETIMER1"] LETIMER1, #[doc = "66 - TRNG0"] TRNG0, #[doc = "67 - QSPI0"] QSPI0, } unsafe impl ::bare_metal::Nr for Interrupt { #[inline] fn nr(&self) -> u8 { match *self { Interrupt::EMU => 0, Interrupt::WDOG0 => 1, Interrupt::LDMA => 2, Interrupt::GPIO_EVEN => 3, Interrupt::SMU => 4, Interrupt::TIMER0 => 5, Interrupt::USART0_RX => 6, Interrupt::USART0_TX => 7, Interrupt::ACMP0 => 8, Interrupt::ADC0 => 9, Interrupt::IDAC0 => 10, Interrupt::I2C0 => 11, Interrupt::I2C1 => 12, Interrupt::GPIO_ODD => 13, Interrupt::TIMER1 => 14, Interrupt::TIMER2 => 15, Interrupt::TIMER3 => 16, Interrupt::USART1_RX => 17, Interrupt::USART1_TX => 18, Interrupt::USART2_RX => 19, Interrupt::USART2_TX => 20, Interrupt::UART0_RX => 21, Interrupt::UART0_TX => 22, Interrupt::UART1_RX => 23, Interrupt::UART1_TX => 24, Interrupt::LEUART0 => 25, Interrupt::LEUART1 => 26, Interrupt::LETIMER0 => 27, Interrupt::PCNT0 => 28, Interrupt::PCNT1 => 29, Interrupt::PCNT2 => 30, Interrupt::RTCC => 31, Interrupt::CMU => 32, Interrupt::MSC => 33, Interrupt::CRYPTO0 => 34, Interrupt::CRYOTIMER => 35, Interrupt::FPUEH => 36, Interrupt::USART3_RX => 37, Interrupt::USART3_TX => 38, Interrupt::USART4_RX => 39, Interrupt::USART4_TX => 40, Interrupt::WTIMER0 => 41, Interrupt::WTIMER1 => 42, Interrupt::WTIMER2 => 43, Interrupt::WTIMER3 => 44, Interrupt::I2C2 => 45, Interrupt::VDAC0 => 46, Interrupt::TIMER4 => 47, Interrupt::TIMER5 => 48, Interrupt::TIMER6 => 49, Interrupt::USART5_RX => 50, Interrupt::USART5_TX => 51, Interrupt::CSEN => 52, Interrupt::LESENSE => 53, Interrupt::EBI => 54, Interrupt::ACMP2 => 55, Interrupt::ADC1 => 56, Interrupt::LCD => 57, Interrupt::SDIO => 58, Interrupt::ETH => 59, Interrupt::CAN0 => 60, Interrupt::CAN1 => 61, Interrupt::USB => 62, Interrupt::RTC => 63, Interrupt::WDOG1 => 64, Interrupt::LETIMER1 => 65, Interrupt::TRNG0 => 66, Interrupt::QSPI0 => 67, } } } #[doc(hidden)] pub mod interrupt; pub use cortex_m::peripheral::Peripherals as CorePeripherals; pub use cortex_m::peripheral::{CBP, CPUID, DCB, DWT, FPB, FPU, ITM, MPU, NVIC, SCB, SYST, TPIU}; #[doc = "MSC"] pub struct MSC { _marker: PhantomData<*const ()>, } unsafe impl Send for MSC {} impl MSC { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const msc::RegisterBlock { 1073741824 as *const _ } } impl Deref for MSC { type Target = msc::RegisterBlock; fn deref(&self) -> &msc::RegisterBlock { unsafe { &*MSC::ptr() } } } #[doc = "MSC"] pub mod msc; #[doc = "EMU"] pub struct EMU { _marker: PhantomData<*const ()>, } unsafe impl Send for EMU {} impl EMU { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const emu::RegisterBlock { 1074671616 as *const _ } } impl Deref for EMU { type Target = emu::RegisterBlock; fn deref(&self) -> &emu::RegisterBlock { unsafe { &*EMU::ptr() } } } #[doc = "EMU"] pub mod emu; #[doc = "RMU"] pub struct RMU { _marker: PhantomData<*const ()>, } unsafe impl Send for RMU {} impl RMU { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const rmu::RegisterBlock { 1074679808 as *const _ } } impl Deref for RMU { type Target = rmu::RegisterBlock; fn deref(&self) -> &rmu::RegisterBlock { unsafe { &*RMU::ptr() } } } #[doc = "RMU"] pub mod rmu; #[doc = "CMU"] pub struct CMU { _marker: PhantomData<*const ()>, } unsafe impl Send for CMU {} impl CMU { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const cmu::RegisterBlock { 1074675712 as *const _ } } impl Deref for CMU { type Target = cmu::RegisterBlock; fn deref(&self) -> &cmu::RegisterBlock { unsafe { &*CMU::ptr() } } } #[doc = "CMU"] pub mod cmu; #[doc = "CRYPTO0"] pub struct CRYPTO0 { _marker: PhantomData<*const ()>, } unsafe impl Send for CRYPTO0 {} impl CRYPTO0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const crypto0::RegisterBlock { 1074724864 as *const _ } } impl Deref for CRYPTO0 { type Target = crypto0::RegisterBlock; fn deref(&self) -> &crypto0::RegisterBlock { unsafe { &*CRYPTO0::ptr() } } } #[doc = "CRYPTO0"] pub mod crypto0; #[doc = "LESENSE"] pub struct LESENSE { _marker: PhantomData<*const ()>, } unsafe impl Send for LESENSE {} impl LESENSE { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const lesense::RegisterBlock { 1074089984 as *const _ } } impl Deref for LESENSE { type Target = lesense::RegisterBlock; fn deref(&self) -> &lesense::RegisterBlock { unsafe { &*LESENSE::ptr() } } } #[doc = "LESENSE"] pub mod lesense; #[doc = "EBI"] pub struct EBI { _marker: PhantomData<*const ()>, } unsafe impl Send for EBI {} impl EBI { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const ebi::RegisterBlock { 1073786880 as *const _ } } impl Deref for EBI { type Target = ebi::RegisterBlock; fn deref(&self) -> &ebi::RegisterBlock { unsafe { &*EBI::ptr() } } } #[doc = "EBI"] pub mod ebi; #[doc = "ETH"] pub struct ETH { _marker: PhantomData<*const ()>, } unsafe impl Send for ETH {} impl ETH { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const eth::RegisterBlock { 1073889280 as *const _ } } impl Deref for ETH { type Target = eth::RegisterBlock; fn deref(&self) -> ð::RegisterBlock { unsafe { &*ETH::ptr() } } } #[doc = "ETH"] pub mod eth; #[doc = "SDIO"] pub struct SDIO { _marker: PhantomData<*const ()>, } unsafe impl Send for SDIO {} impl SDIO { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const sdio::RegisterBlock { 1074728960 as *const _ } } impl Deref for SDIO { type Target = sdio::RegisterBlock; fn deref(&self) -> &sdio::RegisterBlock { unsafe { &*SDIO::ptr() } } } #[doc = "SDIO"] pub mod sdio; #[doc = "GPIO"] pub struct GPIO { _marker: PhantomData<*const ()>, } unsafe impl Send for GPIO {} impl GPIO { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const gpio::RegisterBlock { 1074298880 as *const _ } } impl Deref for GPIO { type Target = gpio::RegisterBlock; fn deref(&self) -> &gpio::RegisterBlock { unsafe { &*GPIO::ptr() } } } #[doc = "GPIO"] pub mod gpio; #[doc = "PRS"] pub struct PRS { _marker: PhantomData<*const ()>, } unsafe impl Send for PRS {} impl PRS { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const prs::RegisterBlock { 1074683904 as *const _ } } impl Deref for PRS { type Target = prs::RegisterBlock; fn deref(&self) -> &prs::RegisterBlock { unsafe { &*PRS::ptr() } } } #[doc = "PRS"] pub mod prs; #[doc = "LDMA"] pub struct LDMA { _marker: PhantomData<*const ()>, } unsafe impl Send for LDMA {} impl LDMA { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const ldma::RegisterBlock { 1073750016 as *const _ } } impl Deref for LDMA { type Target = ldma::RegisterBlock; fn deref(&self) -> &ldma::RegisterBlock { unsafe { &*LDMA::ptr() } } } #[doc = "LDMA"] pub mod ldma; #[doc = "FPUEH"] pub struct FPUEH { _marker: PhantomData<*const ()>, } unsafe impl Send for FPUEH {} impl FPUEH { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const fpueh::RegisterBlock { 1073745920 as *const _ } } impl Deref for FPUEH { type Target = fpueh::RegisterBlock; fn deref(&self) -> &fpueh::RegisterBlock { unsafe { &*FPUEH::ptr() } } } #[doc = "FPUEH"] pub mod fpueh; #[doc = "GPCRC"] pub struct GPCRC { _marker: PhantomData<*const ()>, } unsafe impl Send for GPCRC {} impl GPCRC { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const gpcrc::RegisterBlock { 1073856512 as *const _ } } impl Deref for GPCRC { type Target = gpcrc::RegisterBlock; fn deref(&self) -> &gpcrc::RegisterBlock { unsafe { &*GPCRC::ptr() } } } #[doc = "GPCRC"] pub mod gpcrc; #[doc = "CAN0"] pub struct CAN0 { _marker: PhantomData<*const ()>, } unsafe impl Send for CAN0 {} impl CAN0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const can0::RegisterBlock { 1073758208 as *const _ } } impl Deref for CAN0 { type Target = can0::RegisterBlock; fn deref(&self) -> &can0::RegisterBlock { unsafe { &*CAN0::ptr() } } } #[doc = "CAN0"] pub mod can0; #[doc = "CAN1"] pub struct CAN1 { _marker: PhantomData<*const ()>, } unsafe impl Send for CAN1 {} impl CAN1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const can1::RegisterBlock { 1073759232 as *const _ } } impl Deref for CAN1 { type Target = can1::RegisterBlock; fn deref(&self) -> &can1::RegisterBlock { unsafe { &*CAN1::ptr() } } } #[doc = "CAN1"] pub mod can1; #[doc = "TIMER0"] pub struct TIMER0 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER0 {} impl TIMER0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer0::RegisterBlock { 1073840128 as *const _ } } impl Deref for TIMER0 { type Target = timer0::RegisterBlock; fn deref(&self) -> &timer0::RegisterBlock { unsafe { &*TIMER0::ptr() } } } #[doc = "TIMER0"] pub mod timer0; #[doc = "TIMER1"] pub struct TIMER1 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER1 {} impl TIMER1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer1::RegisterBlock { 1073841152 as *const _ } } impl Deref for TIMER1 { type Target = timer1::RegisterBlock; fn deref(&self) -> &timer1::RegisterBlock { unsafe { &*TIMER1::ptr() } } } #[doc = "TIMER1"] pub mod timer1; #[doc = "TIMER2"] pub struct TIMER2 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER2 {} impl TIMER2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer2::RegisterBlock { 1073842176 as *const _ } } impl Deref for TIMER2 { type Target = timer2::RegisterBlock; fn deref(&self) -> &timer2::RegisterBlock { unsafe { &*TIMER2::ptr() } } } #[doc = "TIMER2"] pub mod timer2; #[doc = "TIMER3"] pub struct TIMER3 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER3 {} impl TIMER3 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer3::RegisterBlock { 1073843200 as *const _ } } impl Deref for TIMER3 { type Target = timer3::RegisterBlock; fn deref(&self) -> &timer3::RegisterBlock { unsafe { &*TIMER3::ptr() } } } #[doc = "TIMER3"] pub mod timer3; #[doc = "TIMER4"] pub struct TIMER4 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER4 {} impl TIMER4 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer4::RegisterBlock { 1073844224 as *const _ } } impl Deref for TIMER4 { type Target = timer4::RegisterBlock; fn deref(&self) -> &timer4::RegisterBlock { unsafe { &*TIMER4::ptr() } } } #[doc = "TIMER4"] pub mod timer4; #[doc = "TIMER5"] pub struct TIMER5 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER5 {} impl TIMER5 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer5::RegisterBlock { 1073845248 as *const _ } } impl Deref for TIMER5 { type Target = timer5::RegisterBlock; fn deref(&self) -> &timer5::RegisterBlock { unsafe { &*TIMER5::ptr() } } } #[doc = "TIMER5"] pub mod timer5; #[doc = "TIMER6"] pub struct TIMER6 { _marker: PhantomData<*const ()>, } unsafe impl Send for TIMER6 {} impl TIMER6 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const timer6::RegisterBlock { 1073846272 as *const _ } } impl Deref for TIMER6 { type Target = timer6::RegisterBlock; fn deref(&self) -> &timer6::RegisterBlock { unsafe { &*TIMER6::ptr() } } } #[doc = "TIMER6"] pub mod timer6; #[doc = "WTIMER0"] pub struct WTIMER0 { _marker: PhantomData<*const ()>, } unsafe impl Send for WTIMER0 {} impl WTIMER0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wtimer0::RegisterBlock { 1073848320 as *const _ } } impl Deref for WTIMER0 { type Target = wtimer0::RegisterBlock; fn deref(&self) -> &wtimer0::RegisterBlock { unsafe { &*WTIMER0::ptr() } } } #[doc = "WTIMER0"] pub mod wtimer0; #[doc = "WTIMER1"] pub struct WTIMER1 { _marker: PhantomData<*const ()>, } unsafe impl Send for WTIMER1 {} impl WTIMER1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wtimer1::RegisterBlock { 1073849344 as *const _ } } impl Deref for WTIMER1 { type Target = wtimer1::RegisterBlock; fn deref(&self) -> &wtimer1::RegisterBlock { unsafe { &*WTIMER1::ptr() } } } #[doc = "WTIMER1"] pub mod wtimer1; #[doc = "WTIMER2"] pub struct WTIMER2 { _marker: PhantomData<*const ()>, } unsafe impl Send for WTIMER2 {} impl WTIMER2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wtimer2::RegisterBlock { 1073850368 as *const _ } } impl Deref for WTIMER2 { type Target = wtimer2::RegisterBlock; fn deref(&self) -> &wtimer2::RegisterBlock { unsafe { &*WTIMER2::ptr() } } } #[doc = "WTIMER2"] pub mod wtimer2; #[doc = "WTIMER3"] pub struct WTIMER3 { _marker: PhantomData<*const ()>, } unsafe impl Send for WTIMER3 {} impl WTIMER3 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wtimer3::RegisterBlock { 1073851392 as *const _ } } impl Deref for WTIMER3 { type Target = wtimer3::RegisterBlock; fn deref(&self) -> &wtimer3::RegisterBlock { unsafe { &*WTIMER3::ptr() } } } #[doc = "WTIMER3"] pub mod wtimer3; #[doc = "USART0"] pub struct USART0 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART0 {} impl USART0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart0::RegisterBlock { 1073807360 as *const _ } } impl Deref for USART0 { type Target = usart0::RegisterBlock; fn deref(&self) -> &usart0::RegisterBlock { unsafe { &*USART0::ptr() } } } #[doc = "USART0"] pub mod usart0; #[doc = "USART1"] pub struct USART1 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART1 {} impl USART1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart1::RegisterBlock { 1073808384 as *const _ } } impl Deref for USART1 { type Target = usart1::RegisterBlock; fn deref(&self) -> &usart1::RegisterBlock { unsafe { &*USART1::ptr() } } } #[doc = "USART1"] pub mod usart1; #[doc = "USART2"] pub struct USART2 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART2 {} impl USART2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart2::RegisterBlock { 1073809408 as *const _ } } impl Deref for USART2 { type Target = usart2::RegisterBlock; fn deref(&self) -> &usart2::RegisterBlock { unsafe { &*USART2::ptr() } } } #[doc = "USART2"] pub mod usart2; #[doc = "USART3"] pub struct USART3 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART3 {} impl USART3 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart3::RegisterBlock { 1073810432 as *const _ } } impl Deref for USART3 { type Target = usart3::RegisterBlock; fn deref(&self) -> &usart3::RegisterBlock { unsafe { &*USART3::ptr() } } } #[doc = "USART3"] pub mod usart3; #[doc = "USART4"] pub struct USART4 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART4 {} impl USART4 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart4::RegisterBlock { 1073811456 as *const _ } } impl Deref for USART4 { type Target = usart4::RegisterBlock; fn deref(&self) -> &usart4::RegisterBlock { unsafe { &*USART4::ptr() } } } #[doc = "USART4"] pub mod usart4; #[doc = "USART5"] pub struct USART5 { _marker: PhantomData<*const ()>, } unsafe impl Send for USART5 {} impl USART5 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usart5::RegisterBlock { 1073812480 as *const _ } } impl Deref for USART5 { type Target = usart5::RegisterBlock; fn deref(&self) -> &usart5::RegisterBlock { unsafe { &*USART5::ptr() } } } #[doc = "USART5"] pub mod usart5; #[doc = "UART0"] pub struct UART0 { _marker: PhantomData<*const ()>, } unsafe impl Send for UART0 {} impl UART0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const uart0::RegisterBlock { 1073823744 as *const _ } } impl Deref for UART0 { type Target = uart0::RegisterBlock; fn deref(&self) -> &uart0::RegisterBlock { unsafe { &*UART0::ptr() } } } #[doc = "UART0"] pub mod uart0; #[doc = "UART1"] pub struct UART1 { _marker: PhantomData<*const ()>, } unsafe impl Send for UART1 {} impl UART1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const uart1::RegisterBlock { 1073824768 as *const _ } } impl Deref for UART1 { type Target = uart1::RegisterBlock; fn deref(&self) -> &uart1::RegisterBlock { unsafe { &*UART1::ptr() } } } #[doc = "UART1"] pub mod uart1; #[doc = "QSPI0"] pub struct QSPI0 { _marker: PhantomData<*const ()>, } unsafe impl Send for QSPI0 {} impl QSPI0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const qspi0::RegisterBlock { 1073857536 as *const _ } } impl Deref for QSPI0 { type Target = qspi0::RegisterBlock; fn deref(&self) -> &qspi0::RegisterBlock { unsafe { &*QSPI0::ptr() } } } #[doc = "QSPI0"] pub mod qspi0; #[doc = "LEUART0"] pub struct LEUART0 { _marker: PhantomData<*const ()>, } unsafe impl Send for LEUART0 {} impl LEUART0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const leuart0::RegisterBlock { 1074176000 as *const _ } } impl Deref for LEUART0 { type Target = leuart0::RegisterBlock; fn deref(&self) -> &leuart0::RegisterBlock { unsafe { &*LEUART0::ptr() } } } #[doc = "LEUART0"] pub mod leuart0; #[doc = "LEUART1"] pub struct LEUART1 { _marker: PhantomData<*const ()>, } unsafe impl Send for LEUART1 {} impl LEUART1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const leuart1::RegisterBlock { 1074177024 as *const _ } } impl Deref for LEUART1 { type Target = leuart1::RegisterBlock; fn deref(&self) -> &leuart1::RegisterBlock { unsafe { &*LEUART1::ptr() } } } #[doc = "LEUART1"] pub mod leuart1; #[doc = "LETIMER0"] pub struct LETIMER0 { _marker: PhantomData<*const ()>, } unsafe impl Send for LETIMER0 {} impl LETIMER0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const letimer0::RegisterBlock { 1074159616 as *const _ } } impl Deref for LETIMER0 { type Target = letimer0::RegisterBlock; fn deref(&self) -> &letimer0::RegisterBlock { unsafe { &*LETIMER0::ptr() } } } #[doc = "LETIMER0"] pub mod letimer0; #[doc = "LETIMER1"] pub struct LETIMER1 { _marker: PhantomData<*const ()>, } unsafe impl Send for LETIMER1 {} impl LETIMER1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const letimer1::RegisterBlock { 1074160640 as *const _ } } impl Deref for LETIMER1 { type Target = letimer1::RegisterBlock; fn deref(&self) -> &letimer1::RegisterBlock { unsafe { &*LETIMER1::ptr() } } } #[doc = "LETIMER1"] pub mod letimer1; #[doc = "CRYOTIMER"] pub struct CRYOTIMER { _marker: PhantomData<*const ()>, } unsafe impl Send for CRYOTIMER {} impl CRYOTIMER { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const cryotimer::RegisterBlock { 1074327552 as *const _ } } impl Deref for CRYOTIMER { type Target = cryotimer::RegisterBlock; fn deref(&self) -> &cryotimer::RegisterBlock { unsafe { &*CRYOTIMER::ptr() } } } #[doc = "CRYOTIMER"] pub mod cryotimer; #[doc = "PCNT0"] pub struct PCNT0 { _marker: PhantomData<*const ()>, } unsafe impl Send for PCNT0 {} impl PCNT0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const pcnt0::RegisterBlock { 1074192384 as *const _ } } impl Deref for PCNT0 { type Target = pcnt0::RegisterBlock; fn deref(&self) -> &pcnt0::RegisterBlock { unsafe { &*PCNT0::ptr() } } } #[doc = "PCNT0"] pub mod pcnt0; #[doc = "PCNT1"] pub struct PCNT1 { _marker: PhantomData<*const ()>, } unsafe impl Send for PCNT1 {} impl PCNT1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const pcnt1::RegisterBlock { 1074193408 as *const _ } } impl Deref for PCNT1 { type Target = pcnt1::RegisterBlock; fn deref(&self) -> &pcnt1::RegisterBlock { unsafe { &*PCNT1::ptr() } } } #[doc = "PCNT1"] pub mod pcnt1; #[doc = "PCNT2"] pub struct PCNT2 { _marker: PhantomData<*const ()>, } unsafe impl Send for PCNT2 {} impl PCNT2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const pcnt2::RegisterBlock { 1074194432 as *const _ } } impl Deref for PCNT2 { type Target = pcnt2::RegisterBlock; fn deref(&self) -> &pcnt2::RegisterBlock { unsafe { &*PCNT2::ptr() } } } #[doc = "PCNT2"] pub mod pcnt2; #[doc = "I2C0"] pub struct I2C0 { _marker: PhantomData<*const ()>, } unsafe impl Send for I2C0 {} impl I2C0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const i2c0::RegisterBlock { 1074302976 as *const _ } } impl Deref for I2C0 { type Target = i2c0::RegisterBlock; fn deref(&self) -> &i2c0::RegisterBlock { unsafe { &*I2C0::ptr() } } } #[doc = "I2C0"] pub mod i2c0; #[doc = "I2C1"] pub struct I2C1 { _marker: PhantomData<*const ()>, } unsafe impl Send for I2C1 {} impl I2C1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const i2c1::RegisterBlock { 1074304000 as *const _ } } impl Deref for I2C1 { type Target = i2c1::RegisterBlock; fn deref(&self) -> &i2c1::RegisterBlock { unsafe { &*I2C1::ptr() } } } #[doc = "I2C1"] pub mod i2c1; #[doc = "I2C2"] pub struct I2C2 { _marker: PhantomData<*const ()>, } unsafe impl Send for I2C2 {} impl I2C2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const i2c2::RegisterBlock { 1074305024 as *const _ } } impl Deref for I2C2 { type Target = i2c2::RegisterBlock; fn deref(&self) -> &i2c2::RegisterBlock { unsafe { &*I2C2::ptr() } } } #[doc = "I2C2"] pub mod i2c2; #[doc = "ADC0"] pub struct ADC0 { _marker: PhantomData<*const ()>, } unsafe impl Send for ADC0 {} impl ADC0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const adc0::RegisterBlock { 1074274304 as *const _ } } impl Deref for ADC0 { type Target = adc0::RegisterBlock; fn deref(&self) -> &adc0::RegisterBlock { unsafe { &*ADC0::ptr() } } } #[doc = "ADC0"] pub mod adc0; #[doc = "ADC1"] pub struct ADC1 { _marker: PhantomData<*const ()>, } unsafe impl Send for ADC1 {} impl ADC1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const adc1::RegisterBlock { 1074275328 as *const _ } } impl Deref for ADC1 { type Target = adc1::RegisterBlock; fn deref(&self) -> &adc1::RegisterBlock { unsafe { &*ADC1::ptr() } } } #[doc = "ADC1"] pub mod adc1; #[doc = "ACMP0"] pub struct ACMP0 { _marker: PhantomData<*const ()>, } unsafe impl Send for ACMP0 {} impl ACMP0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const acmp0::RegisterBlock { 1074266112 as *const _ } } impl Deref for ACMP0 { type Target = acmp0::RegisterBlock; fn deref(&self) -> &acmp0::RegisterBlock { unsafe { &*ACMP0::ptr() } } } #[doc = "ACMP0"] pub mod acmp0; #[doc = "ACMP1"] pub struct ACMP1 { _marker: PhantomData<*const ()>, } unsafe impl Send for ACMP1 {} impl ACMP1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const acmp1::RegisterBlock { 1074267136 as *const _ } } impl Deref for ACMP1 { type Target = acmp1::RegisterBlock; fn deref(&self) -> &acmp1::RegisterBlock { unsafe { &*ACMP1::ptr() } } } #[doc = "ACMP1"] pub mod acmp1; #[doc = "ACMP2"] pub struct ACMP2 { _marker: PhantomData<*const ()>, } unsafe impl Send for ACMP2 {} impl ACMP2 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const acmp2::RegisterBlock { 1074268160 as *const _ } } impl Deref for ACMP2 { type Target = acmp2::RegisterBlock; fn deref(&self) -> &acmp2::RegisterBlock { unsafe { &*ACMP2::ptr() } } } #[doc = "ACMP2"] pub mod acmp2; #[doc = "ACMP3"] pub struct ACMP3 { _marker: PhantomData<*const ()>, } unsafe impl Send for ACMP3 {} impl ACMP3 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const acmp3::RegisterBlock { 1074269184 as *const _ } } impl Deref for ACMP3 { type Target = acmp3::RegisterBlock; fn deref(&self) -> &acmp3::RegisterBlock { unsafe { &*ACMP3::ptr() } } } #[doc = "ACMP3"] pub mod acmp3; #[doc = "VDAC0"] pub struct VDAC0 { _marker: PhantomData<*const ()>, } unsafe impl Send for VDAC0 {} impl VDAC0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const vdac0::RegisterBlock { 1074290688 as *const _ } } impl Deref for VDAC0 { type Target = vdac0::RegisterBlock; fn deref(&self) -> &vdac0::RegisterBlock { unsafe { &*VDAC0::ptr() } } } #[doc = "VDAC0"] pub mod vdac0; #[doc = "USB"] pub struct USB { _marker: PhantomData<*const ()>, } unsafe impl Send for USB {} impl USB { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const usb::RegisterBlock { 1073881088 as *const _ } } impl Deref for USB { type Target = usb::RegisterBlock; fn deref(&self) -> &usb::RegisterBlock { unsafe { &*USB::ptr() } } } #[doc = "USB"] pub mod usb; #[doc = "IDAC0"] pub struct IDAC0 { _marker: PhantomData<*const ()>, } unsafe impl Send for IDAC0 {} impl IDAC0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const idac0::RegisterBlock { 1074282496 as *const _ } } impl Deref for IDAC0 { type Target = idac0::RegisterBlock; fn deref(&self) -> &idac0::RegisterBlock { unsafe { &*IDAC0::ptr() } } } #[doc = "IDAC0"] pub mod idac0; #[doc = "CSEN"] pub struct CSEN { _marker: PhantomData<*const ()>, } unsafe impl Send for CSEN {} impl CSEN { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const csen::RegisterBlock { 1074323456 as *const _ } } impl Deref for CSEN { type Target = csen::RegisterBlock; fn deref(&self) -> &csen::RegisterBlock { unsafe { &*CSEN::ptr() } } } #[doc = "CSEN"] pub mod csen; #[doc = "LCD"] pub struct LCD { _marker: PhantomData<*const ()>, } unsafe impl Send for LCD {} impl LCD { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const lcd::RegisterBlock { 1074085888 as *const _ } } impl Deref for LCD { type Target = lcd::RegisterBlock; fn deref(&self) -> &lcd::RegisterBlock { unsafe { &*LCD::ptr() } } } #[doc = "LCD"] pub mod lcd; #[doc = "RTC"] pub struct RTC { _marker: PhantomData<*const ()>, } unsafe impl Send for RTC {} impl RTC { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const rtc::RegisterBlock { 1074135040 as *const _ } } impl Deref for RTC { type Target = rtc::RegisterBlock; fn deref(&self) -> &rtc::RegisterBlock { unsafe { &*RTC::ptr() } } } #[doc = "RTC"] pub mod rtc; #[doc = "RTCC"] pub struct RTCC { _marker: PhantomData<*const ()>, } unsafe impl Send for RTCC {} impl RTCC { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const rtcc::RegisterBlock { 1074143232 as *const _ } } impl Deref for RTCC { type Target = rtcc::RegisterBlock; fn deref(&self) -> &rtcc::RegisterBlock { unsafe { &*RTCC::ptr() } } } #[doc = "RTCC"] pub mod rtcc; #[doc = "WDOG0"] pub struct WDOG0 { _marker: PhantomData<*const ()>, } unsafe impl Send for WDOG0 {} impl WDOG0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wdog0::RegisterBlock { 1074077696 as *const _ } } impl Deref for WDOG0 { type Target = wdog0::RegisterBlock; fn deref(&self) -> &wdog0::RegisterBlock { unsafe { &*WDOG0::ptr() } } } #[doc = "WDOG0"] pub mod wdog0; #[doc = "WDOG1"] pub struct WDOG1 { _marker: PhantomData<*const ()>, } unsafe impl Send for WDOG1 {} impl WDOG1 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const wdog1::RegisterBlock { 1074078720 as *const _ } } impl Deref for WDOG1 { type Target = wdog1::RegisterBlock; fn deref(&self) -> &wdog1::RegisterBlock { unsafe { &*WDOG1::ptr() } } } #[doc = "WDOG1"] pub mod wdog1; #[doc = "ETM"] pub struct ETM { _marker: PhantomData<*const ()>, } unsafe impl Send for ETM {} impl ETM { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const etm::RegisterBlock { 3758362624 as *const _ } } impl Deref for ETM { type Target = etm::RegisterBlock; fn deref(&self) -> &etm::RegisterBlock { unsafe { &*ETM::ptr() } } } #[doc = "ETM"] pub mod etm; #[doc = "SMU"] pub struct SMU { _marker: PhantomData<*const ()>, } unsafe impl Send for SMU {} impl SMU { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const smu::RegisterBlock { 1073872896 as *const _ } } impl Deref for SMU { type Target = smu::RegisterBlock; fn deref(&self) -> &smu::RegisterBlock { unsafe { &*SMU::ptr() } } } #[doc = "SMU"] pub mod smu; #[doc = "TRNG0"] pub struct TRNG0 { _marker: PhantomData<*const ()>, } unsafe impl Send for TRNG0 {} impl TRNG0 { #[doc = r" Returns a pointer to the register block"] pub fn ptr() -> *const trng0::RegisterBlock { 1073860608 as *const _ } } impl Deref for TRNG0 { type Target = trng0::RegisterBlock; fn deref(&self) -> &trng0::RegisterBlock { unsafe { &*TRNG0::ptr() } } } #[doc = "TRNG0"] pub mod trng0; #[allow(private_no_mangle_statics)] #[no_mangle] static mut DEVICE_PERIPHERALS: bool = false; #[doc = r" All the peripherals"] #[allow(non_snake_case)] pub struct Peripherals { #[doc = "MSC"] pub MSC: MSC, #[doc = "EMU"] pub EMU: EMU, #[doc = "RMU"] pub RMU: RMU, #[doc = "CMU"] pub CMU: CMU, #[doc = "CRYPTO0"] pub CRYPTO0: CRYPTO0, #[doc = "LESENSE"] pub LESENSE: LESENSE, #[doc = "EBI"] pub EBI: EBI, #[doc = "ETH"] pub ETH: ETH, #[doc = "SDIO"] pub SDIO: SDIO, #[doc = "GPIO"] pub GPIO: GPIO, #[doc = "PRS"] pub PRS: PRS, #[doc = "LDMA"] pub LDMA: LDMA, #[doc = "FPUEH"] pub FPUEH: FPUEH, #[doc = "GPCRC"] pub GPCRC: GPCRC, #[doc = "CAN0"] pub CAN0: CAN0, #[doc = "CAN1"] pub CAN1: CAN1, #[doc = "TIMER0"] pub TIMER0: TIMER0, #[doc = "TIMER1"] pub TIMER1: TIMER1, #[doc = "TIMER2"] pub TIMER2: TIMER2, #[doc = "TIMER3"] pub TIMER3: TIMER3, #[doc = "TIMER4"] pub TIMER4: TIMER4, #[doc = "TIMER5"] pub TIMER5: TIMER5, #[doc = "TIMER6"] pub TIMER6: TIMER6, #[doc = "WTIMER0"] pub WTIMER0: WTIMER0, #[doc = "WTIMER1"] pub WTIMER1: WTIMER1, #[doc = "WTIMER2"] pub WTIMER2: WTIMER2, #[doc = "WTIMER3"] pub WTIMER3: WTIMER3, #[doc = "USART0"] pub USART0: USART0, #[doc = "USART1"] pub USART1: USART1, #[doc = "USART2"] pub USART2: USART2, #[doc = "USART3"] pub USART3: USART3, #[doc = "USART4"] pub USART4: USART4, #[doc = "USART5"] pub USART5: USART5, #[doc = "UART0"] pub UART0: UART0, #[doc = "UART1"] pub UART1: UART1, #[doc = "QSPI0"] pub QSPI0: QSPI0, #[doc = "LEUART0"] pub LEUART0: LEUART0, #[doc = "LEUART1"] pub LEUART1: LEUART1, #[doc = "LETIMER0"] pub LETIMER0: LETIMER0, #[doc = "LETIMER1"] pub LETIMER1: LETIMER1, #[doc = "CRYOTIMER"] pub CRYOTIMER: CRYOTIMER, #[doc = "PCNT0"] pub PCNT0: PCNT0, #[doc = "PCNT1"] pub PCNT1: PCNT1, #[doc = "PCNT2"] pub PCNT2: PCNT2, #[doc = "I2C0"] pub I2C0: I2C0, #[doc = "I2C1"] pub I2C1: I2C1, #[doc = "I2C2"] pub I2C2: I2C2, #[doc = "ADC0"] pub ADC0: ADC0, #[doc = "ADC1"] pub ADC1: ADC1, #[doc = "ACMP0"] pub ACMP0: ACMP0, #[doc = "ACMP1"] pub ACMP1: ACMP1, #[doc = "ACMP2"] pub ACMP2: ACMP2, #[doc = "ACMP3"] pub ACMP3: ACMP3, #[doc = "VDAC0"] pub VDAC0: VDAC0, #[doc = "USB"] pub USB: USB, #[doc = "IDAC0"] pub IDAC0: IDAC0, #[doc = "CSEN"] pub CSEN: CSEN, #[doc = "LCD"] pub LCD: LCD, #[doc = "RTC"] pub RTC: RTC, #[doc = "RTCC"] pub RTCC: RTCC, #[doc = "WDOG0"] pub WDOG0: WDOG0, #[doc = "WDOG1"] pub WDOG1: WDOG1, #[doc = "ETM"] pub ETM: ETM, #[doc = "SMU"] pub SMU: SMU, #[doc = "TRNG0"] pub TRNG0: TRNG0, } impl Peripherals { #[doc = r" Returns all the peripherals *once*"] #[inline] pub fn take() -> Option<Self> { cortex_m::interrupt::free(|_| if unsafe { DEVICE_PERIPHERALS } { None } else { Some(unsafe { Peripherals::steal() }) }) } #[doc = r" Unchecked version of `Peripherals::take`"] pub unsafe fn steal() -> Self { debug_assert!(!DEVICE_PERIPHERALS); DEVICE_PERIPHERALS = true; Peripherals { MSC: MSC { _marker: PhantomData }, EMU: EMU { _marker: PhantomData }, RMU: RMU { _marker: PhantomData }, CMU: CMU { _marker: PhantomData }, CRYPTO0: CRYPTO0 { _marker: PhantomData }, LESENSE: LESENSE { _marker: PhantomData }, EBI: EBI { _marker: PhantomData }, ETH: ETH { _marker: PhantomData }, SDIO: SDIO { _marker: PhantomData }, GPIO: GPIO { _marker: PhantomData }, PRS: PRS { _marker: PhantomData }, LDMA: LDMA { _marker: PhantomData }, FPUEH: FPUEH { _marker: PhantomData }, GPCRC: GPCRC { _marker: PhantomData }, CAN0: CAN0 { _marker: PhantomData }, CAN1: CAN1 { _marker: PhantomData }, TIMER0: TIMER0 { _marker: PhantomData }, TIMER1: TIMER1 { _marker: PhantomData }, TIMER2: TIMER2 { _marker: PhantomData }, TIMER3: TIMER3 { _marker: PhantomData }, TIMER4: TIMER4 { _marker: PhantomData }, TIMER5: TIMER5 { _marker: PhantomData }, TIMER6: TIMER6 { _marker: PhantomData }, WTIMER0: WTIMER0 { _marker: PhantomData }, WTIMER1: WTIMER1 { _marker: PhantomData }, WTIMER2: WTIMER2 { _marker: PhantomData }, WTIMER3: WTIMER3 { _marker: PhantomData }, USART0: USART0 { _marker: PhantomData }, USART1: USART1 { _marker: PhantomData }, USART2: USART2 { _marker: PhantomData }, USART3: USART3 { _marker: PhantomData }, USART4: USART4 { _marker: PhantomData }, USART5: USART5 { _marker: PhantomData }, UART0: UART0 { _marker: PhantomData }, UART1: UART1 { _marker: PhantomData }, QSPI0: QSPI0 { _marker: PhantomData }, LEUART0: LEUART0 { _marker: PhantomData }, LEUART1: LEUART1 { _marker: PhantomData }, LETIMER0: LETIMER0 { _marker: PhantomData }, LETIMER1: LETIMER1 { _marker: PhantomData }, CRYOTIMER: CRYOTIMER { _marker: PhantomData }, PCNT0: PCNT0 { _marker: PhantomData }, PCNT1: PCNT1 { _marker: PhantomData }, PCNT2: PCNT2 { _marker: PhantomData }, I2C0: I2C0 { _marker: PhantomData }, I2C1: I2C1 { _marker: PhantomData }, I2C2: I2C2 { _marker: PhantomData }, ADC0: ADC0 { _marker: PhantomData }, ADC1: ADC1 { _marker: PhantomData }, ACMP0: ACMP0 { _marker: PhantomData }, ACMP1: ACMP1 { _marker: PhantomData }, ACMP2: ACMP2 { _marker: PhantomData }, ACMP3: ACMP3 { _marker: PhantomData }, VDAC0: VDAC0 { _marker: PhantomData }, USB: USB { _marker: PhantomData }, IDAC0: IDAC0 { _marker: PhantomData }, CSEN: CSEN { _marker: PhantomData }, LCD: LCD { _marker: PhantomData }, RTC: RTC { _marker: PhantomData }, RTCC: RTCC { _marker: PhantomData }, WDOG0: WDOG0 { _marker: PhantomData }, WDOG1: WDOG1 { _marker: PhantomData }, ETM: ETM { _marker: PhantomData }, SMU: SMU { _marker: PhantomData }, TRNG0: TRNG0 { _marker: PhantomData }, } } }