File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11//! Example demonstrating the skip-data-init feature
2- //!
2+ //!
33//! This feature is useful when using bootloaders (like RP2040's boot2) that:
44//! 1. Copy all data from Flash to RAM
55//! 2. Unmap the Flash from memory space
@@ -31,7 +31,7 @@ fn main() -> ! {
3131 unsafe {
3232 COUNTER += 1 ;
3333 }
34-
34+
3535 loop {
3636 cortex_m:: asm:: nop ( ) ;
3737 }
Original file line number Diff line number Diff line change 514514#![ no_std]
515515
516516#[ cfg( all( feature = "skip-data-init" , feature = "zero-init-ram" ) ) ]
517- compile_error ! (
518- "features `skip-data-init` and `zero-init-ram` cannot be enabled at the same time"
519- ) ;
517+ compile_error ! ( "features `skip-data-init` and `zero-init-ram` cannot be enabled at the same time" ) ;
520518
521519extern crate cortex_m_rt_macros as macros;
522520
You can’t perform that action at this time.
0 commit comments