cortex_a/registers/lr.rs
1// SPDX-License-Identifier: Apache-2.0 OR MIT
2//
3// Copyright (c) 2018-2022 by the author(s)
4//
5// Author(s):
6// - Andre Richter <andre.o.richter@gmail.com>
7// - Alban Seurat <alban.seurat@me.com>
8
9//! The link register
10
11use tock_registers::interfaces::{Readable, Writeable};
12
13pub struct Reg;
14
15impl Readable for Reg {
16 type T = u64;
17 type R = ();
18
19 read_raw!(u64, "lr", "x");
20}
21
22impl Writeable for Reg {
23 type T = u64;
24 type R = ();
25
26 write_raw!(u64, "lr", "x");
27}
28
29pub const LR: Reg = Reg {};