⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbo.s

📁 linux下的jtag调试软件
💻 S
字号:
/* * This file is part of Jelie, * (c) 2002 Julien Pilet <julien.pilet@epfl.ch> and * Stephane Magnenat <stephane.magnenat@epfl.ch> * * Jelie is free software; you can redistribute it * and/or modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the License, * or (at your option) any later version. * * Jelie is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Foobar; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */.text.global mainmain:	@ set GPIO 1 in input mode	ldr r0, =0x40e00000	mov r1, #0	str r1, [ r0, #0xc ]	@ set gpio 1 to alternate function, af = 01	mov r1, #0x5	str r1, [ r0, #0x54 ]	@ set correct cccr 	@ bits 0-4: L=27 => 00001 	@ bits 5-6: Multiplier=1 01	@ bits 9-7: N=100	ldr r0, =0x41300000	ldr r1, =0b1000100001 @  = 0x221	str r1, [r0]	@ set CCLKCFG in CP 14, reg 6 to 0x03	mov r1, #0x3	mcr p14, 0, r1, c6, c0, 0	nop	nop	nop	bkpt #0	nop	nop	nop

⌨️ 快捷键说明

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