File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1919- Use CSR helper macros to define ` medeleg ` register
2020- Use CSR helper macros to define ` mideleg ` register
2121- Use CSR helper macros to define ` mcounteren ` register
22+ - Use CSR helper macros to define ` mie ` register
2223
2324## [ v0.12.1] - 2024-10-20
2425
Original file line number Diff line number Diff line change @@ -63,3 +63,20 @@ set_clear_csr!(
6363set_clear_csr ! (
6464 /// Machine External Interrupt Enable
6565 , set_mext, clear_mext, 1 << 11 ) ;
66+
67+ #[ cfg( test) ]
68+ mod tests {
69+ use super :: * ;
70+
71+ #[ test]
72+ fn test_mie ( ) {
73+ let mut m = Mie :: from_bits ( 0 ) ;
74+
75+ test_csr_field ! ( m, ssoft) ;
76+ test_csr_field ! ( m, msoft) ;
77+ test_csr_field ! ( m, stimer) ;
78+ test_csr_field ! ( m, mtimer) ;
79+ test_csr_field ! ( m, sext) ;
80+ test_csr_field ! ( m, mext) ;
81+ }
82+ }
You can’t perform that action at this time.
0 commit comments