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
#![doc = "Peripheral access API for MSP432P401R microcontrollers (generated using svd2rust v0.17.0)\n\nYou can find an overview of the API [here].\n\n[here]: https://docs.rs/svd2rust/0.17.0/svd2rust/#peripheral-api"]
#![deny(const_err)]
#![deny(dead_code)]
#![deny(improper_ctypes)]
#![deny(legacy_directory_ownership)]
#![deny(missing_docs)]
#![deny(no_mangle_generic_items)]
#![deny(non_shorthand_field_patterns)]
#![deny(overflowing_literals)]
#![deny(path_statements)]
#![deny(patterns_in_fns_without_body)]
#![deny(plugin_as_library)]
#![deny(private_in_public)]
#![deny(safe_extern_statics)]
#![deny(unconditional_recursion)]
#![deny(unions_with_drop_fields)]
#![deny(unused_allocation)]
#![deny(unused_comparisons)]
#![deny(unused_parens)]
#![deny(while_true)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![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;
#[cfg(feature = "rt")]
extern "C" {
    fn PSS_IRQ();
    fn CS_IRQ();
    fn PCM_IRQ();
    fn WDT_A_IRQ();
    fn FPU_IRQ();
    fn FLCTL_IRQ();
    fn COMP_E0_IRQ();
    fn COMP_E1_IRQ();
    fn TA0_0_IRQ();
    fn TA0_N_IRQ();
    fn TA1_0_IRQ();
    fn TA1_N_IRQ();
    fn TA2_0_IRQ();
    fn TA2_N_IRQ();
    fn TA3_0_IRQ();
    fn TA3_N_IRQ();
    fn EUSCIA0_IRQ();
    fn EUSCIA1_IRQ();
    fn EUSCIA2_IRQ();
    fn EUSCIA3_IRQ();
    fn EUSCIB0_IRQ();
    fn EUSCIB1_IRQ();
    fn EUSCIB2_IRQ();
    fn EUSCIB3_IRQ();
    fn ADC14_IRQ();
    fn T32_INT1_IRQ();
    fn T32_INT2_IRQ();
    fn T32_INTC_IRQ();
    fn AES256_IRQ();
    fn RTC_C_IRQ();
    fn DMA_ERR_IRQ();
    fn DMA_INT3_IRQ();
    fn DMA_INT2_IRQ();
    fn DMA_INT1_IRQ();
    fn DMA_INT0_IRQ();
    fn PORT1_IRQ();
    fn PORT2_IRQ();
    fn PORT3_IRQ();
    fn PORT4_IRQ();
    fn PORT5_IRQ();
    fn PORT6_IRQ();
}
#[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; 41] = [
    Vector { _handler: PSS_IRQ },
    Vector { _handler: CS_IRQ },
    Vector { _handler: PCM_IRQ },
    Vector {
        _handler: WDT_A_IRQ,
    },
    Vector { _handler: FPU_IRQ },
    Vector {
        _handler: FLCTL_IRQ,
    },
    Vector {
        _handler: COMP_E0_IRQ,
    },
    Vector {
        _handler: COMP_E1_IRQ,
    },
    Vector {
        _handler: TA0_0_IRQ,
    },
    Vector {
        _handler: TA0_N_IRQ,
    },
    Vector {
        _handler: TA1_0_IRQ,
    },
    Vector {
        _handler: TA1_N_IRQ,
    },
    Vector {
        _handler: TA2_0_IRQ,
    },
    Vector {
        _handler: TA2_N_IRQ,
    },
    Vector {
        _handler: TA3_0_IRQ,
    },
    Vector {
        _handler: TA3_N_IRQ,
    },
    Vector {
        _handler: EUSCIA0_IRQ,
    },
    Vector {
        _handler: EUSCIA1_IRQ,
    },
    Vector {
        _handler: EUSCIA2_IRQ,
    },
    Vector {
        _handler: EUSCIA3_IRQ,
    },
    Vector {
        _handler: EUSCIB0_IRQ,
    },
    Vector {
        _handler: EUSCIB1_IRQ,
    },
    Vector {
        _handler: EUSCIB2_IRQ,
    },
    Vector {
        _handler: EUSCIB3_IRQ,
    },
    Vector {
        _handler: ADC14_IRQ,
    },
    Vector {
        _handler: T32_INT1_IRQ,
    },
    Vector {
        _handler: T32_INT2_IRQ,
    },
    Vector {
        _handler: T32_INTC_IRQ,
    },
    Vector {
        _handler: AES256_IRQ,
    },
    Vector {
        _handler: RTC_C_IRQ,
    },
    Vector {
        _handler: DMA_ERR_IRQ,
    },
    Vector {
        _handler: DMA_INT3_IRQ,
    },
    Vector {
        _handler: DMA_INT2_IRQ,
    },
    Vector {
        _handler: DMA_INT1_IRQ,
    },
    Vector {
        _handler: DMA_INT0_IRQ,
    },
    Vector {
        _handler: PORT1_IRQ,
    },
    Vector {
        _handler: PORT2_IRQ,
    },
    Vector {
        _handler: PORT3_IRQ,
    },
    Vector {
        _handler: PORT4_IRQ,
    },
    Vector {
        _handler: PORT5_IRQ,
    },
    Vector {
        _handler: PORT6_IRQ,
    },
];
#[doc = r"Enumeration of all the interrupts"]
#[derive(Copy, Clone, Debug)]
#[repr(u8)]
pub enum Interrupt {
    #[doc = "0 - PSS Interrupt"]
    PSS_IRQ = 0,
    #[doc = "1 - CS Interrupt"]
    CS_IRQ = 1,
    #[doc = "2 - PCM Interrupt"]
    PCM_IRQ = 2,
    #[doc = "3 - WDT_A Interrupt"]
    WDT_A_IRQ = 3,
    #[doc = "4 - FPU Interrupt"]
    FPU_IRQ = 4,
    #[doc = "5 - Flash Controller Interrupt"]
    FLCTL_IRQ = 5,
    #[doc = "6 - COMP_E0 Interrupt"]
    COMP_E0_IRQ = 6,
    #[doc = "7 - COMP_E1 Interrupt"]
    COMP_E1_IRQ = 7,
    #[doc = "8 - TA0_0 Interrupt"]
    TA0_0_IRQ = 8,
    #[doc = "9 - TA0_N Interrupt"]
    TA0_N_IRQ = 9,
    #[doc = "10 - TA1_0 Interrupt"]
    TA1_0_IRQ = 10,
    #[doc = "11 - TA1_N Interrupt"]
    TA1_N_IRQ = 11,
    #[doc = "12 - TA2_0 Interrupt"]
    TA2_0_IRQ = 12,
    #[doc = "13 - TA2_N Interrupt"]
    TA2_N_IRQ = 13,
    #[doc = "14 - TA3_0 Interrupt"]
    TA3_0_IRQ = 14,
    #[doc = "15 - TA3_N Interrupt"]
    TA3_N_IRQ = 15,
    #[doc = "16 - EUSCIA0 Interrupt"]
    EUSCIA0_IRQ = 16,
    #[doc = "17 - EUSCIA1 Interrupt"]
    EUSCIA1_IRQ = 17,
    #[doc = "18 - EUSCIA2 Interrupt"]
    EUSCIA2_IRQ = 18,
    #[doc = "19 - EUSCIA3 Interrupt"]
    EUSCIA3_IRQ = 19,
    #[doc = "20 - EUSCIB0 Interrupt"]
    EUSCIB0_IRQ = 20,
    #[doc = "21 - EUSCIB1 Interrupt"]
    EUSCIB1_IRQ = 21,
    #[doc = "22 - EUSCIB2 Interrupt"]
    EUSCIB2_IRQ = 22,
    #[doc = "23 - EUSCIB3 Interrupt"]
    EUSCIB3_IRQ = 23,
    #[doc = "24 - ADC14 Interrupt"]
    ADC14_IRQ = 24,
    #[doc = "25 - T32_INT1 Interrupt"]
    T32_INT1_IRQ = 25,
    #[doc = "26 - T32_INT2 Interrupt"]
    T32_INT2_IRQ = 26,
    #[doc = "27 - T32_INTC Interrupt"]
    T32_INTC_IRQ = 27,
    #[doc = "28 - AES256 Interrupt"]
    AES256_IRQ = 28,
    #[doc = "29 - RTC_C Interrupt"]
    RTC_C_IRQ = 29,
    #[doc = "30 - DMA_ERR Interrupt"]
    DMA_ERR_IRQ = 30,
    #[doc = "31 - DMA_INT3 Interrupt"]
    DMA_INT3_IRQ = 31,
    #[doc = "32 - DMA_INT2 Interrupt"]
    DMA_INT2_IRQ = 32,
    #[doc = "33 - DMA_INT1 Interrupt"]
    DMA_INT1_IRQ = 33,
    #[doc = "34 - DMA_INT0 Interrupt"]
    DMA_INT0_IRQ = 34,
    #[doc = "35 - Port1 Interrupt"]
    PORT1_IRQ = 35,
    #[doc = "36 - Port2 Interrupt"]
    PORT2_IRQ = 36,
    #[doc = "37 - Port3 Interrupt"]
    PORT3_IRQ = 37,
    #[doc = "38 - Port4 Interrupt"]
    PORT4_IRQ = 38,
    #[doc = "39 - Port5 Interrupt"]
    PORT5_IRQ = 39,
    #[doc = "40 - Port6 Interrupt"]
    PORT6_IRQ = 40,
}
unsafe impl bare_metal::Nr for Interrupt {
    #[inline(always)]
    fn nr(&self) -> u8 {
        *self as u8
    }
}
#[cfg(feature = "rt")]
pub use self::Interrupt as 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};
#[cfg(feature = "rt")]
pub use cortex_m_rt::interrupt;
#[allow(unused_imports)]
use generic::*;
#[doc = r"Common register and bit access and modify traits"]
pub mod generic;
#[doc = "TLV"]
pub struct TLV {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TLV {}
impl TLV {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const tlv::RegisterBlock {
        0x0020_1000 as *const _
    }
}
impl Deref for TLV {
    type Target = tlv::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TLV::ptr() }
    }
}
#[doc = "TLV"]
pub mod tlv;
#[doc = "TIMER_A0"]
pub struct TIMER_A0 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TIMER_A0 {}
impl TIMER_A0 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const timer_a0::RegisterBlock {
        0x4000_0000 as *const _
    }
}
impl Deref for TIMER_A0 {
    type Target = timer_a0::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TIMER_A0::ptr() }
    }
}
#[doc = "TIMER_A0"]
pub mod timer_a0;
#[doc = "TIMER_A1"]
pub struct TIMER_A1 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TIMER_A1 {}
impl TIMER_A1 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const timer_a1::RegisterBlock {
        0x4000_0400 as *const _
    }
}
impl Deref for TIMER_A1 {
    type Target = timer_a1::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TIMER_A1::ptr() }
    }
}
#[doc = "TIMER_A1"]
pub mod timer_a1;
#[doc = "TIMER_A2"]
pub struct TIMER_A2 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TIMER_A2 {}
impl TIMER_A2 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const timer_a2::RegisterBlock {
        0x4000_0800 as *const _
    }
}
impl Deref for TIMER_A2 {
    type Target = timer_a2::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TIMER_A2::ptr() }
    }
}
#[doc = "TIMER_A2"]
pub mod timer_a2;
#[doc = "TIMER_A3"]
pub struct TIMER_A3 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TIMER_A3 {}
impl TIMER_A3 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const timer_a3::RegisterBlock {
        0x4000_0c00 as *const _
    }
}
impl Deref for TIMER_A3 {
    type Target = timer_a3::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TIMER_A3::ptr() }
    }
}
#[doc = "TIMER_A3"]
pub mod timer_a3;
#[doc = "EUSCI_A0"]
pub struct EUSCI_A0 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_A0 {}
impl EUSCI_A0 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_a0::RegisterBlock {
        0x4000_1000 as *const _
    }
}
impl Deref for EUSCI_A0 {
    type Target = eusci_a0::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_A0::ptr() }
    }
}
#[doc = "EUSCI_A0"]
pub mod eusci_a0;
#[doc = "EUSCI_A1"]
pub struct EUSCI_A1 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_A1 {}
impl EUSCI_A1 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_a1::RegisterBlock {
        0x4000_1400 as *const _
    }
}
impl Deref for EUSCI_A1 {
    type Target = eusci_a1::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_A1::ptr() }
    }
}
#[doc = "EUSCI_A1"]
pub mod eusci_a1;
#[doc = "EUSCI_A2"]
pub struct EUSCI_A2 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_A2 {}
impl EUSCI_A2 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_a2::RegisterBlock {
        0x4000_1800 as *const _
    }
}
impl Deref for EUSCI_A2 {
    type Target = eusci_a2::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_A2::ptr() }
    }
}
#[doc = "EUSCI_A2"]
pub mod eusci_a2;
#[doc = "EUSCI_A3"]
pub struct EUSCI_A3 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_A3 {}
impl EUSCI_A3 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_a3::RegisterBlock {
        0x4000_1c00 as *const _
    }
}
impl Deref for EUSCI_A3 {
    type Target = eusci_a3::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_A3::ptr() }
    }
}
#[doc = "EUSCI_A3"]
pub mod eusci_a3;
#[doc = "EUSCI_B0"]
pub struct EUSCI_B0 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_B0 {}
impl EUSCI_B0 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_b0::RegisterBlock {
        0x4000_2000 as *const _
    }
}
impl Deref for EUSCI_B0 {
    type Target = eusci_b0::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_B0::ptr() }
    }
}
#[doc = "EUSCI_B0"]
pub mod eusci_b0;
#[doc = "EUSCI_B1"]
pub struct EUSCI_B1 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_B1 {}
impl EUSCI_B1 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_b1::RegisterBlock {
        0x4000_2400 as *const _
    }
}
impl Deref for EUSCI_B1 {
    type Target = eusci_b1::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_B1::ptr() }
    }
}
#[doc = "EUSCI_B1"]
pub mod eusci_b1;
#[doc = "EUSCI_B2"]
pub struct EUSCI_B2 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_B2 {}
impl EUSCI_B2 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_b2::RegisterBlock {
        0x4000_2800 as *const _
    }
}
impl Deref for EUSCI_B2 {
    type Target = eusci_b2::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_B2::ptr() }
    }
}
#[doc = "EUSCI_B2"]
pub mod eusci_b2;
#[doc = "EUSCI_B3"]
pub struct EUSCI_B3 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for EUSCI_B3 {}
impl EUSCI_B3 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const eusci_b3::RegisterBlock {
        0x4000_2c00 as *const _
    }
}
impl Deref for EUSCI_B3 {
    type Target = eusci_b3::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*EUSCI_B3::ptr() }
    }
}
#[doc = "EUSCI_B3"]
pub mod eusci_b3;
#[doc = "REF_A"]
pub struct REF_A {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for REF_A {}
impl REF_A {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const ref_a::RegisterBlock {
        0x4000_3000 as *const _
    }
}
impl Deref for REF_A {
    type Target = ref_a::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*REF_A::ptr() }
    }
}
#[doc = "REF_A"]
pub mod ref_a;
#[doc = "COMP_E0"]
pub struct COMP_E0 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for COMP_E0 {}
impl COMP_E0 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const comp_e0::RegisterBlock {
        0x4000_3400 as *const _
    }
}
impl Deref for COMP_E0 {
    type Target = comp_e0::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*COMP_E0::ptr() }
    }
}
#[doc = "COMP_E0"]
pub mod comp_e0;
#[doc = "COMP_E1"]
pub struct COMP_E1 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for COMP_E1 {}
impl COMP_E1 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const comp_e1::RegisterBlock {
        0x4000_3800 as *const _
    }
}
impl Deref for COMP_E1 {
    type Target = comp_e1::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*COMP_E1::ptr() }
    }
}
#[doc = "COMP_E1"]
pub mod comp_e1;
#[doc = "AES256"]
pub struct AES256 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for AES256 {}
impl AES256 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const aes256::RegisterBlock {
        0x4000_3c00 as *const _
    }
}
impl Deref for AES256 {
    type Target = aes256::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*AES256::ptr() }
    }
}
#[doc = "AES256"]
pub mod aes256;
#[doc = "CRC32"]
pub struct CRC32 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for CRC32 {}
impl CRC32 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const crc32::RegisterBlock {
        0x4000_4000 as *const _
    }
}
impl Deref for CRC32 {
    type Target = crc32::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*CRC32::ptr() }
    }
}
#[doc = "CRC32"]
pub mod crc32;
#[doc = "RTC_C"]
pub struct RTC_C {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for RTC_C {}
impl RTC_C {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const rtc_c::RegisterBlock {
        0x4000_4400 as *const _
    }
}
impl Deref for RTC_C {
    type Target = rtc_c::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*RTC_C::ptr() }
    }
}
#[doc = "RTC_C"]
pub mod rtc_c;
#[doc = "WDT_A"]
pub struct WDT_A {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for WDT_A {}
impl WDT_A {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const wdt_a::RegisterBlock {
        0x4000_4800 as *const _
    }
}
impl Deref for WDT_A {
    type Target = wdt_a::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*WDT_A::ptr() }
    }
}
#[doc = "WDT_A"]
pub mod wdt_a;
#[doc = "DIO"]
pub struct DIO {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for DIO {}
impl DIO {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const dio::RegisterBlock {
        0x4000_4c00 as *const _
    }
}
impl Deref for DIO {
    type Target = dio::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*DIO::ptr() }
    }
}
#[doc = "DIO"]
pub mod dio;
#[doc = "PMAP"]
pub struct PMAP {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for PMAP {}
impl PMAP {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const pmap::RegisterBlock {
        0x4000_5000 as *const _
    }
}
impl Deref for PMAP {
    type Target = pmap::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*PMAP::ptr() }
    }
}
#[doc = "PMAP"]
pub mod pmap;
#[doc = "CAPTIO0"]
pub struct CAPTIO0 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for CAPTIO0 {}
impl CAPTIO0 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const captio0::RegisterBlock {
        0x4000_5400 as *const _
    }
}
impl Deref for CAPTIO0 {
    type Target = captio0::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*CAPTIO0::ptr() }
    }
}
#[doc = "CAPTIO0"]
pub mod captio0;
#[doc = "CAPTIO1"]
pub struct CAPTIO1 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for CAPTIO1 {}
impl CAPTIO1 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const captio1::RegisterBlock {
        0x4000_5800 as *const _
    }
}
impl Deref for CAPTIO1 {
    type Target = captio1::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*CAPTIO1::ptr() }
    }
}
#[doc = "CAPTIO1"]
pub mod captio1;
#[doc = "TIMER32"]
pub struct TIMER32 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for TIMER32 {}
impl TIMER32 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const timer32::RegisterBlock {
        0x4000_c000 as *const _
    }
}
impl Deref for TIMER32 {
    type Target = timer32::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*TIMER32::ptr() }
    }
}
#[doc = "TIMER32"]
pub mod timer32;
#[doc = "DMA"]
pub struct DMA {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for DMA {}
impl DMA {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const dma::RegisterBlock {
        0x4000_e000 as *const _
    }
}
impl Deref for DMA {
    type Target = dma::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*DMA::ptr() }
    }
}
#[doc = "DMA"]
pub mod dma;
#[doc = "PCM"]
pub struct PCM {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for PCM {}
impl PCM {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const pcm::RegisterBlock {
        0x4001_0000 as *const _
    }
}
impl Deref for PCM {
    type Target = pcm::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*PCM::ptr() }
    }
}
#[doc = "PCM"]
pub mod pcm;
#[doc = "CS"]
pub struct CS {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for CS {}
impl CS {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const cs::RegisterBlock {
        0x4001_0400 as *const _
    }
}
impl Deref for CS {
    type Target = cs::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*CS::ptr() }
    }
}
#[doc = "CS"]
pub mod cs;
#[doc = "PSS"]
pub struct PSS {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for PSS {}
impl PSS {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const pss::RegisterBlock {
        0x4001_0800 as *const _
    }
}
impl Deref for PSS {
    type Target = pss::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*PSS::ptr() }
    }
}
#[doc = "PSS"]
pub mod pss;
#[doc = "FLCTL"]
pub struct FLCTL {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for FLCTL {}
impl FLCTL {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const flctl::RegisterBlock {
        0x4001_1000 as *const _
    }
}
impl Deref for FLCTL {
    type Target = flctl::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*FLCTL::ptr() }
    }
}
#[doc = "FLCTL"]
pub mod flctl;
#[doc = "ADC14"]
pub struct ADC14 {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for ADC14 {}
impl ADC14 {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const adc14::RegisterBlock {
        0x4001_2000 as *const _
    }
}
impl Deref for ADC14 {
    type Target = adc14::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*ADC14::ptr() }
    }
}
#[doc = "ADC14"]
pub mod adc14;
#[doc = "System Control Space for ARM core: SCnSCB, SCB, SysTick, NVIC, CoreDebug, MPU, FPU"]
pub struct SYSTEMCONTROLSPACE {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for SYSTEMCONTROLSPACE {}
impl SYSTEMCONTROLSPACE {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const system_control_space::RegisterBlock {
        0xe000_e000 as *const _
    }
}
impl Deref for SYSTEMCONTROLSPACE {
    type Target = system_control_space::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*SYSTEMCONTROLSPACE::ptr() }
    }
}
#[doc = "System Control Space for ARM core: SCnSCB, SCB, SysTick, NVIC, CoreDebug, MPU, FPU"]
pub mod system_control_space;
#[doc = "RSTCTL"]
pub struct RSTCTL {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for RSTCTL {}
impl RSTCTL {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const rstctl::RegisterBlock {
        0xe004_2000 as *const _
    }
}
impl Deref for RSTCTL {
    type Target = rstctl::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*RSTCTL::ptr() }
    }
}
#[doc = "RSTCTL"]
pub mod rstctl;
#[doc = "SYSCTL"]
pub struct SYSCTL {
    _marker: PhantomData<*const ()>,
}
unsafe impl Send for SYSCTL {}
impl SYSCTL {
    #[doc = r"Returns a pointer to the register block"]
    #[inline(always)]
    pub const fn ptr() -> *const sysctl::RegisterBlock {
        0xe004_3000 as *const _
    }
}
impl Deref for SYSCTL {
    type Target = sysctl::RegisterBlock;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        unsafe { &*SYSCTL::ptr() }
    }
}
#[doc = "SYSCTL"]
pub mod sysctl;
#[no_mangle]
static mut DEVICE_PERIPHERALS: bool = false;
#[doc = r"All the peripherals"]
#[allow(non_snake_case)]
pub struct Peripherals {
    #[doc = "TLV"]
    pub TLV: TLV,
    #[doc = "TIMER_A0"]
    pub TIMER_A0: TIMER_A0,
    #[doc = "TIMER_A1"]
    pub TIMER_A1: TIMER_A1,
    #[doc = "TIMER_A2"]
    pub TIMER_A2: TIMER_A2,
    #[doc = "TIMER_A3"]
    pub TIMER_A3: TIMER_A3,
    #[doc = "EUSCI_A0"]
    pub EUSCI_A0: EUSCI_A0,
    #[doc = "EUSCI_A1"]
    pub EUSCI_A1: EUSCI_A1,
    #[doc = "EUSCI_A2"]
    pub EUSCI_A2: EUSCI_A2,
    #[doc = "EUSCI_A3"]
    pub EUSCI_A3: EUSCI_A3,
    #[doc = "EUSCI_B0"]
    pub EUSCI_B0: EUSCI_B0,
    #[doc = "EUSCI_B1"]
    pub EUSCI_B1: EUSCI_B1,
    #[doc = "EUSCI_B2"]
    pub EUSCI_B2: EUSCI_B2,
    #[doc = "EUSCI_B3"]
    pub EUSCI_B3: EUSCI_B3,
    #[doc = "REF_A"]
    pub REF_A: REF_A,
    #[doc = "COMP_E0"]
    pub COMP_E0: COMP_E0,
    #[doc = "COMP_E1"]
    pub COMP_E1: COMP_E1,
    #[doc = "AES256"]
    pub AES256: AES256,
    #[doc = "CRC32"]
    pub CRC32: CRC32,
    #[doc = "RTC_C"]
    pub RTC_C: RTC_C,
    #[doc = "WDT_A"]
    pub WDT_A: WDT_A,
    #[doc = "DIO"]
    pub DIO: DIO,
    #[doc = "PMAP"]
    pub PMAP: PMAP,
    #[doc = "CAPTIO0"]
    pub CAPTIO0: CAPTIO0,
    #[doc = "CAPTIO1"]
    pub CAPTIO1: CAPTIO1,
    #[doc = "TIMER32"]
    pub TIMER32: TIMER32,
    #[doc = "DMA"]
    pub DMA: DMA,
    #[doc = "PCM"]
    pub PCM: PCM,
    #[doc = "CS"]
    pub CS: CS,
    #[doc = "PSS"]
    pub PSS: PSS,
    #[doc = "FLCTL"]
    pub FLCTL: FLCTL,
    #[doc = "ADC14"]
    pub ADC14: ADC14,
    #[doc = "SYSTEMCONTROLSPACE"]
    pub SYSTEMCONTROLSPACE: SYSTEMCONTROLSPACE,
    #[doc = "RSTCTL"]
    pub RSTCTL: RSTCTL,
    #[doc = "SYSCTL"]
    pub SYSCTL: SYSCTL,
}
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`"]
    #[inline]
    pub unsafe fn steal() -> Self {
        DEVICE_PERIPHERALS = true;
        Peripherals {
            TLV: TLV {
                _marker: PhantomData,
            },
            TIMER_A0: TIMER_A0 {
                _marker: PhantomData,
            },
            TIMER_A1: TIMER_A1 {
                _marker: PhantomData,
            },
            TIMER_A2: TIMER_A2 {
                _marker: PhantomData,
            },
            TIMER_A3: TIMER_A3 {
                _marker: PhantomData,
            },
            EUSCI_A0: EUSCI_A0 {
                _marker: PhantomData,
            },
            EUSCI_A1: EUSCI_A1 {
                _marker: PhantomData,
            },
            EUSCI_A2: EUSCI_A2 {
                _marker: PhantomData,
            },
            EUSCI_A3: EUSCI_A3 {
                _marker: PhantomData,
            },
            EUSCI_B0: EUSCI_B0 {
                _marker: PhantomData,
            },
            EUSCI_B1: EUSCI_B1 {
                _marker: PhantomData,
            },
            EUSCI_B2: EUSCI_B2 {
                _marker: PhantomData,
            },
            EUSCI_B3: EUSCI_B3 {
                _marker: PhantomData,
            },
            REF_A: REF_A {
                _marker: PhantomData,
            },
            COMP_E0: COMP_E0 {
                _marker: PhantomData,
            },
            COMP_E1: COMP_E1 {
                _marker: PhantomData,
            },
            AES256: AES256 {
                _marker: PhantomData,
            },
            CRC32: CRC32 {
                _marker: PhantomData,
            },
            RTC_C: RTC_C {
                _marker: PhantomData,
            },
            WDT_A: WDT_A {
                _marker: PhantomData,
            },
            DIO: DIO {
                _marker: PhantomData,
            },
            PMAP: PMAP {
                _marker: PhantomData,
            },
            CAPTIO0: CAPTIO0 {
                _marker: PhantomData,
            },
            CAPTIO1: CAPTIO1 {
                _marker: PhantomData,
            },
            TIMER32: TIMER32 {
                _marker: PhantomData,
            },
            DMA: DMA {
                _marker: PhantomData,
            },
            PCM: PCM {
                _marker: PhantomData,
            },
            CS: CS {
                _marker: PhantomData,
            },
            PSS: PSS {
                _marker: PhantomData,
            },
            FLCTL: FLCTL {
                _marker: PhantomData,
            },
            ADC14: ADC14 {
                _marker: PhantomData,
            },
            SYSTEMCONTROLSPACE: SYSTEMCONTROLSPACE {
                _marker: PhantomData,
            },
            RSTCTL: RSTCTL {
                _marker: PhantomData,
            },
            SYSCTL: SYSCTL {
                _marker: PhantomData,
            },
        }
    }
}