diff options
| author | Arne Dußin | 2021-11-06 11:50:33 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-11-06 11:50:33 +0100 |
| commit | 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch) | |
| tree | a184284dbd2316f4624f092e4e7521ea8c90855b /src/sys_tick.rs | |
| download | samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip | |
Initial commit
Diffstat (limited to 'src/sys_tick.rs')
| -rw-r--r-- | src/sys_tick.rs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/sys_tick.rs b/src/sys_tick.rs new file mode 100644 index 0000000..b0fe7a5 --- /dev/null +++ b/src/sys_tick.rs @@ -0,0 +1,28 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00 - SysTick Control and Status Register"] + pub csr: crate::Reg<csr::CSR_SPEC>, + #[doc = "0x04 - SysTick Reload Value Register"] + pub rvr: crate::Reg<rvr::RVR_SPEC>, + #[doc = "0x08 - SysTick Current Value Register"] + pub cvr: crate::Reg<cvr::CVR_SPEC>, + #[doc = "0x0c - SysTick Calibration Value Register"] + pub calib: crate::Reg<calib::CALIB_SPEC>, +} +#[doc = "CSR register accessor: an alias for `Reg<CSR_SPEC>`"] +pub type CSR = crate::Reg<csr::CSR_SPEC>; +#[doc = "SysTick Control and Status Register"] +pub mod csr; +#[doc = "RVR register accessor: an alias for `Reg<RVR_SPEC>`"] +pub type RVR = crate::Reg<rvr::RVR_SPEC>; +#[doc = "SysTick Reload Value Register"] +pub mod rvr; +#[doc = "CVR register accessor: an alias for `Reg<CVR_SPEC>`"] +pub type CVR = crate::Reg<cvr::CVR_SPEC>; +#[doc = "SysTick Current Value Register"] +pub mod cvr; +#[doc = "CALIB register accessor: an alias for `Reg<CALIB_SPEC>`"] +pub type CALIB = crate::Reg<calib::CALIB_SPEC>; +#[doc = "SysTick Calibration Value Register"] +pub mod calib; |
