init_table.s
来自「STM32的低功耗例程」· S 代码 · 共 25 行
S
25 行
; IMAL 2005-10-12
; The following table entry is needed to make
; the IAR start-up-sequence to copy from the
; a segment (often in ROM) to a segment in RAM
RSEG CODE1:ROOT
RSEG CODE1_ROM:ROOT
/* Structure of an element in the segment initialization table
* in segment INITTAB. Used for both zero-initialization and copying. */
; typedef struct
; {
; long Size; /* Number of bytes to initialize */
; char* Dst; /* Destination. If Dst==Src, then init to 0 */
; char* Src; /* Source address. Usually in ROM. */
; } InitBlock_Type;
RSEG INITTAB:CODE:ROOT(2) ; 2^2 4 bytes alignment
DATA
DCD sfe(CODE1_ROM) - sfb(CODE1_ROM) ; size of the segment
DCD sfb(CODE1) ; start address of where to copy to
DCD sfb(CODE1_ROM) ; start address of where to copy from
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?