File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 187187//!
188188//! ## `paint-stack`
189189//!
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`.
191192//! You can then inspect memory during debugging to determine how much of the stack has been used -
192193//! where the stack has been used the 'paint' will have been 'scrubbed off' and the memory will
193194//! have a value other than `STACK_PAINT_VALUE`.
475476extern crate cortex_m_rt_macros as macros;
476477
477478/// 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.
481481#[ cfg( feature = "paint-stack" ) ]
482482pub const STACK_PAINT_VALUE : u32 = 0xcccc_cccc ;
483483
You can’t perform that action at this time.
0 commit comments