init.s

来自「该驱动程序是针对2410开发板的LED灯的驱动」· S 代码 · 共 34 行

S
34
字号
/* * Name	: init.s * Disc	: initial the environment * 2007-07-30 by Qingmin Liu */@ stack size@ it should be less than 4KBytes.equ stack_top, 0x1000@ WDT register.equ WTCON,	0x53000000.text.global _start_start:	@ disable watch dog timer	mov r0, #WTCON	mov r1, #0x0	str r1, [r0]	@ setup the stack	ldr sp, =stack_top	@ jump to C code entry main, and it should be 	@ supported by stack. Therefore, you must setup	@ the stack.	bl mainstop:	b stop.end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?