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;

最新文章

  1. 【转】Deadlock的一些总结(死锁分析及处理)
  2. js控制 固定框架内图片 按比例显示 以及 占满框架 居中显示
  3. iOS梦想之路-最新消息
  4. 229. Majority Element II -- 找出数组中出现次数超过 ⌊ n/3 ⌋ 次的数
  5. linux命令:mkdir
  6. 关于Linux系统调用,内核函数【转】
  7. 真正理解 git fetch, git pull 以及 FETCH_HEAD【转】
  8. HTTP 教程 转自 http://www.w3cschool.cc/http/http-tutorial.html
  9. 网络资源(10) - Eclipse开发项目
  10. 使用python的Flask实现一个RESTful API服务器端
  11. Start to write blogs 【开始写博客】
  12. 第四十六篇--解析和保存xml文件
  13. vue-cli项目 build后请求本地static文件中的 json数据,路径不对,报错404处理方法
  14. linux环境部署python3+django
  15. JDBC学习笔记之SQLException介绍
  16. Android working with Volley Library
  17. 织梦自定义表单通过ajax提交的实现方法
  18. Python Basics
  19. oracle--dump 事务槽
  20. Python爬虫教程-18-页面解析和数据提取

热门文章

  1. easymake cmake xmake nmake ...
  2. Tornado介绍与其Web应用结构
  3. go——反射
  4. 再谈WinIO初始化异常
  5. 2018 Multi-University Training Contest 1 - B Balanced Sequence (贪心)
  6. js 的一些兼容性写法
  7. Sybase:解锁
  8. Linux yum源地址
  9. jQuery鼠标滑动切换焦点图
  10. ATCODER ABC 099