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 1
1
//! Example demonstrating the skip-data-init feature
2
- //!
2
+ //!
3
3
//! This feature is useful when using bootloaders (like RP2040's boot2) that:
4
4
//! 1. Copy all data from Flash to RAM
5
5
//! 2. Unmap the Flash from memory space
@@ -31,7 +31,7 @@ fn main() -> ! {
31
31
unsafe {
32
32
COUNTER += 1 ;
33
33
}
34
-
34
+
35
35
loop {
36
36
cortex_m:: asm:: nop ( ) ;
37
37
}
Original file line number Diff line number Diff line change 514
514
#![ no_std]
515
515
516
516
#[ 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" ) ;
520
518
521
519
extern crate cortex_m_rt_macros as macros;
522
520
You can’t perform that action at this time.
0 commit comments