File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 187
187
//!
188
188
//! ## `paint-stack`
189
189
//!
190
- //! Everywhere between `__sheap` and `___stack_start` is painted with the fixed value `STACK_PAINT_VALUE`.
190
+ //! Everywhere between `__sheap` and `___stack_start` is painted with the fixed value
191
+ //! `STACK_PAINT_VALUE`, which is `0xCCCC_CCCC`.
191
192
//! You can then inspect memory during debugging to determine how much of the stack has been used -
192
193
//! where the stack has been used the 'paint' will have been 'scrubbed off' and the memory will
193
194
//! have a value other than `STACK_PAINT_VALUE`.
475
476
extern crate cortex_m_rt_macros as macros;
476
477
477
478
/// The 32-bit value the stack is painted with before the program runs.
478
- ///
479
- /// Note: keep this value in-sync with the start-up assembly code, as we can't
480
- /// use const values in `global_asm!` yet.
479
+ // Note: keep this value in-sync with the start-up assembly code, as we can't
480
+ // use const values in `global_asm!` yet.
481
481
#[ cfg( feature = "paint-stack" ) ]
482
482
pub const STACK_PAINT_VALUE : u32 = 0xcccc_cccc ;
483
483
You can’t perform that action at this time.
0 commit comments