File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
use core:: ops:: Deref ;
4
4
5
5
#[ cfg( any( feature = "52840" ) ) ]
6
- use crate :: pac:: nvmc:: * ;
6
+ use crate :: pac:: nvmc;
7
7
#[ cfg( any( feature = "9160" ) ) ]
8
8
use crate :: pac:: nvmc_ns as nvmc;
9
9
#[ cfg( any( feature = "52840" ) ) ]
@@ -34,14 +34,23 @@ where
34
34
}
35
35
36
36
fn enable_erase ( & self ) {
37
+ #[ cfg( any( feature = "52840" ) ) ]
38
+ self . nvmc . config . write ( |w| w. wen ( ) . een ( ) ) ;
39
+ #[ cfg( any( feature = "9160" ) ) ]
37
40
self . nvmc . configns . write ( |w| w. wen ( ) . een ( ) ) ;
38
41
}
39
42
40
43
fn enable_write ( & self ) {
44
+ #[ cfg( any( feature = "52840" ) ) ]
45
+ self . nvmc . config . write ( |w| w. wen ( ) . wen ( ) ) ;
46
+ #[ cfg( any( feature = "9160" ) ) ]
41
47
self . nvmc . configns . write ( |w| w. wen ( ) . wen ( ) ) ;
42
48
}
43
49
44
50
fn reset ( & self ) {
51
+ #[ cfg( any( feature = "52840" ) ) ]
52
+ self . nvmc . config . reset ( ) ;
53
+ #[ cfg( any( feature = "9160" ) ) ]
45
54
self . nvmc . configns . reset ( ) ;
46
55
}
47
56
You can’t perform that action at this time.
0 commit comments