赞
踩
int main(void)
{
RCC->APB2ENR |= RCC_APB2ENR_IOPBEN;
GPIOB->CRL &= ~(0xfCRL |= 0x2ODR &= ~(1<<1);
return 0;
}
//main.h
#define RCC_APB2ENR (*(unsigned int *)0x40021018)
#define GPIOB_CRL (*(unsigned int *)0x40010c00)
#define GPIOB_ODR (*(unsigned int *)0x40010c0c)
汇编窗口往上翻,确实很多语句。
先看这几行代码的汇编
先说最常用的两句汇编
LDR r0,[r1] r0 = *r1
STR r0,[r1] *r1 = r0
MOV r0,r1 r1->r0拷贝
资料参考,可以搜索
http://blog.csdn.net/tanyouliang/article/details/6767011
http://blog.csdn.net/a1875566250/article/details/8507168
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。