摘要: led-drv.c: 1 #include <linux/module.h> 2 #include <linux/kernel.h> 3 #include <linux/fs.h> 4 #include <linux/init.h> 5 #include <linux/delay.h> 6 #inc 阅读全文
posted @ 2020-05-19 21:53 坦率 阅读(168) 评论(0) 推荐(0) 编辑
摘要: __attribute__((section(".xxx")))子项section的使用方法,可以用来修饰变量或函数: 修饰变量: int var __attribute__((section(".xdata"))) = 0; 这样定义的变量 var 将被放入名为 .xdata 的输入段,(注意:_ 阅读全文
posted @ 2020-05-19 15:44 坦率 阅读(179) 评论(0) 推荐(0) 编辑