File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -9,25 +9,25 @@ pub struct Mcounteren {
9
9
}
10
10
11
11
impl Mcounteren {
12
- /// Supervisor "cycle[h ]" Enable
12
+ /// Supervisor "cycle\[h\ ]" Enable
13
13
#[ inline]
14
14
pub fn cy ( & self ) -> bool {
15
15
self . bits . get_bit ( 0 )
16
16
}
17
17
18
- /// Supervisor "time[h ]" Enable
18
+ /// Supervisor "time\[h\ ]" Enable
19
19
#[ inline]
20
20
pub fn tm ( & self ) -> bool {
21
21
self . bits . get_bit ( 1 )
22
22
}
23
23
24
- /// Supervisor "instret[h ]" Enable
24
+ /// Supervisor "instret\[h\ ]" Enable
25
25
#[ inline]
26
26
pub fn ir ( & self ) -> bool {
27
27
self . bits . get_bit ( 2 )
28
28
}
29
29
30
- /// Supervisor "hpm[x ]" Enable (bits 3-31)
30
+ /// Supervisor "hpm\[x\ ]" Enable (bits 3-31)
31
31
#[ inline]
32
32
pub fn hpm ( & self , index : usize ) -> bool {
33
33
assert ! ( 3 <= index && index < 32 ) ;
Original file line number Diff line number Diff line change @@ -9,25 +9,25 @@ pub struct Scounteren {
9
9
}
10
10
11
11
impl Scounteren {
12
- /// User "cycle[h ]" Enable
12
+ /// User "cycle\[h\ ]" Enable
13
13
#[ inline]
14
14
pub fn cy ( & self ) -> bool {
15
15
self . bits . get_bit ( 0 )
16
16
}
17
17
18
- /// User "time[h ]" Enable
18
+ /// User "time\[h\ ]" Enable
19
19
#[ inline]
20
20
pub fn tm ( & self ) -> bool {
21
21
self . bits . get_bit ( 1 )
22
22
}
23
23
24
- /// User "instret[h]" Enable
24
+ /// User "instret\ [h]\ " Enable
25
25
#[ inline]
26
26
pub fn ir ( & self ) -> bool {
27
27
self . bits . get_bit ( 2 )
28
28
}
29
29
30
- /// User "hpm[x ]" Enable (bits 3-31)
30
+ /// User "hpm\[x\ ]" Enable (bits 3-31)
31
31
#[ inline]
32
32
pub fn hpm ( & self , index : usize ) -> bool {
33
33
assert ! ( 3 <= index && index < 32 ) ;
You can’t perform that action at this time.
0 commit comments