@@ -13,12 +13,6 @@ impl Mie {
13
13
self . bits
14
14
}
15
15
16
- /// User Software Interrupt Enable
17
- #[ inline]
18
- pub fn usoft ( & self ) -> bool {
19
- self . bits & ( 1 << 0 ) != 0
20
- }
21
-
22
16
/// Supervisor Software Interrupt Enable
23
17
#[ inline]
24
18
pub fn ssoft ( & self ) -> bool {
@@ -31,12 +25,6 @@ impl Mie {
31
25
self . bits & ( 1 << 3 ) != 0
32
26
}
33
27
34
- /// User Timer Interrupt Enable
35
- #[ inline]
36
- pub fn utimer ( & self ) -> bool {
37
- self . bits & ( 1 << 4 ) != 0
38
- }
39
-
40
28
/// Supervisor Timer Interrupt Enable
41
29
#[ inline]
42
30
pub fn stimer ( & self ) -> bool {
@@ -49,12 +37,6 @@ impl Mie {
49
37
self . bits & ( 1 << 7 ) != 0
50
38
}
51
39
52
- /// User External Interrupt Enable
53
- #[ inline]
54
- pub fn uext ( & self ) -> bool {
55
- self . bits & ( 1 << 8 ) != 0
56
- }
57
-
58
40
/// Supervisor External Interrupt Enable
59
41
#[ inline]
60
42
pub fn sext ( & self ) -> bool {
@@ -72,27 +54,18 @@ read_csr_as!(Mie, 0x304);
72
54
set ! ( 0x304 ) ;
73
55
clear ! ( 0x304 ) ;
74
56
75
- set_clear_csr ! (
76
- /// User Software Interrupt Enable
77
- , set_usoft, clear_usoft, 1 << 0 ) ;
78
57
set_clear_csr ! (
79
58
/// Supervisor Software Interrupt Enable
80
59
, set_ssoft, clear_ssoft, 1 << 1 ) ;
81
60
set_clear_csr ! (
82
61
/// Machine Software Interrupt Enable
83
62
, set_msoft, clear_msoft, 1 << 3 ) ;
84
- set_clear_csr ! (
85
- /// User Timer Interrupt Enable
86
- , set_utimer, clear_utimer, 1 << 4 ) ;
87
63
set_clear_csr ! (
88
64
/// Supervisor Timer Interrupt Enable
89
65
, set_stimer, clear_stimer, 1 << 5 ) ;
90
66
set_clear_csr ! (
91
67
/// Machine Timer Interrupt Enable
92
68
, set_mtimer, clear_mtimer, 1 << 7 ) ;
93
- set_clear_csr ! (
94
- /// User External Interrupt Enable
95
- , set_uext, clear_uext, 1 << 8 ) ;
96
69
set_clear_csr ! (
97
70
/// Supervisor External Interrupt Enable
98
71
, set_sext, clear_sext, 1 << 9 ) ;
0 commit comments