Function esp32_hal::xtensa_lx_rt::init_data
source · pub unsafe fn init_data<T>(sdata: *mut T, edata: *mut T, sidata: *const T)where
T: Word,Expand description
Initializes the .data section by copying it from the location indicated
by sidata.
Arguments
sdata: Pointer to the start of the.datasection in RAM.edata: Pointer to the open/non-inclusive end of the.datasection in RAM (the value behind this pointer will not be modified).sidata:.datasection Load Memory Address (LMA). Data will be copied from here.- Use
Tto indicate the alignment of the.datasection and its LMA.
Safety
- Must be called exactly once, before the application has started.
edata >= sdata.- The
sdata -> edataregion must not overlap with thesidata -> ...region. sdata,edataandsidatamust beTaligned.