@@ -13,12 +13,6 @@ impl Mie {
1313 self . bits
1414 }
1515
16- /// User Software Interrupt Enable
17- #[ inline]
18- pub fn usoft ( & self ) -> bool {
19- self . bits & ( 1 << 0 ) != 0
20- }
21-
2216 /// Supervisor Software Interrupt Enable
2317 #[ inline]
2418 pub fn ssoft ( & self ) -> bool {
@@ -31,12 +25,6 @@ impl Mie {
3125 self . bits & ( 1 << 3 ) != 0
3226 }
3327
34- /// User Timer Interrupt Enable
35- #[ inline]
36- pub fn utimer ( & self ) -> bool {
37- self . bits & ( 1 << 4 ) != 0
38- }
39-
4028 /// Supervisor Timer Interrupt Enable
4129 #[ inline]
4230 pub fn stimer ( & self ) -> bool {
@@ -49,12 +37,6 @@ impl Mie {
4937 self . bits & ( 1 << 7 ) != 0
5038 }
5139
52- /// User External Interrupt Enable
53- #[ inline]
54- pub fn uext ( & self ) -> bool {
55- self . bits & ( 1 << 8 ) != 0
56- }
57-
5840 /// Supervisor External Interrupt Enable
5941 #[ inline]
6042 pub fn sext ( & self ) -> bool {
@@ -72,27 +54,18 @@ read_csr_as!(Mie, 0x304);
7254set ! ( 0x304 ) ;
7355clear ! ( 0x304 ) ;
7456
75- set_clear_csr ! (
76- /// User Software Interrupt Enable
77- , set_usoft, clear_usoft, 1 << 0 ) ;
7857set_clear_csr ! (
7958 /// Supervisor Software Interrupt Enable
8059 , set_ssoft, clear_ssoft, 1 << 1 ) ;
8160set_clear_csr ! (
8261 /// Machine Software Interrupt Enable
8362 , set_msoft, clear_msoft, 1 << 3 ) ;
84- set_clear_csr ! (
85- /// User Timer Interrupt Enable
86- , set_utimer, clear_utimer, 1 << 4 ) ;
8763set_clear_csr ! (
8864 /// Supervisor Timer Interrupt Enable
8965 , set_stimer, clear_stimer, 1 << 5 ) ;
9066set_clear_csr ! (
9167 /// Machine Timer Interrupt Enable
9268 , set_mtimer, clear_mtimer, 1 << 7 ) ;
93- set_clear_csr ! (
94- /// User External Interrupt Enable
95- , set_uext, clear_uext, 1 << 8 ) ;
9669set_clear_csr ! (
9770 /// Supervisor External Interrupt Enable
9871 , set_sext, clear_sext, 1 << 9 ) ;
0 commit comments