File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -419,7 +419,7 @@ impl<'a> Flash<'a> {
419
419
/// The compiler may inline this function, because `#[inline(never)]` is
420
420
/// merely a suggestion.
421
421
#[ allow( unused_unsafe) ]
422
- #[ link_section = ".data" ]
422
+ #[ cfg_attr ( target_os = "none" , link_section = ".data" ) ]
423
423
#[ inline( never) ]
424
424
pub unsafe fn fast_program ( & mut self , from : * const u64 , to : * mut u64 ) -> Result < ( ) , Error > {
425
425
let sr: u32 = self . sr ( ) ;
@@ -504,7 +504,7 @@ impl<'a> Flash<'a> {
504
504
/// 1. The CPU must execute this from SRAM.
505
505
/// The compiler may inline this function, because `#[inline(never)]` is
506
506
/// merely a suggestion.
507
- #[ link_section = ".data" ]
507
+ #[ cfg_attr ( target_os = "none" , link_section = ".data" ) ]
508
508
#[ inline( never) ]
509
509
pub unsafe fn mass_erase ( & mut self ) -> Result < ( ) , Error > {
510
510
let sr: u32 = self . sr ( ) ;
You can’t perform that action at this time.
0 commit comments