#define GPFCON (* (volatile unsigned long * )0x56000050 )
2024-08-27 04:42:55
int a;
int *p;
p = &a;
*p = 0x100; //a=0x100 p = (int *)0x56000050;
*p =0x100;
*( ( int * ) 0x56000050) = 0x100
加上volatile是为了防止编译器优化这个寄存器
#define GPBCON (*(volatile unsigned long *)0x56000010)
#define GPBDAT (*(volatile unsigned long *)0x56000014)
#define GPB5_out (1<<(5*2))
#define GPB6_out (1<<(6*2))
#define GPB7_out (1<<(7*2))
#define GPB8_out (1<<(8*2))
GPBCON = GPB5_out | GPB6_out | GPB7_out | GPB8_out;
最新文章
- 【转】Deadlock的一些总结(死锁分析及处理)
- js控制 固定框架内图片 按比例显示 以及 占满框架 居中显示
- iOS梦想之路-最新消息
- 229. Majority Element II -- 找出数组中出现次数超过 ⌊ n/3 ⌋ 次的数
- linux命令:mkdir
- 关于Linux系统调用,内核函数【转】
- 真正理解 git fetch, git pull 以及 FETCH_HEAD【转】
- HTTP 教程 转自 http://www.w3cschool.cc/http/http-tutorial.html
- 网络资源(10) - Eclipse开发项目
- 使用python的Flask实现一个RESTful API服务器端
- Start to write blogs 【开始写博客】
- 第四十六篇--解析和保存xml文件
- vue-cli项目 build后请求本地static文件中的 json数据,路径不对,报错404处理方法
- linux环境部署python3+django
- JDBC学习笔记之SQLException介绍
- Android working with Volley Library
- 织梦自定义表单通过ajax提交的实现方法
- Python Basics
- oracle--dump 事务槽
- Python爬虫教程-18-页面解析和数据提取