转自:http://blog.csdn.net/drivermonkey/article/details/20132241 1.1.References 1.2.GPIO Usage from a Linux Application 1.2.1Overview 1.2.2.Configure the kernel for GPIO support in sysfs 1.2.3.Enable GPIO access from user space 1.2.4.GPIO interrupts fro
在閱讀Linux內核代碼的時候,會經常遇到下面的幾個宏函數: IS_ENABLED 這個宏最爲常見 IS_BUILTIN IS_MODULE IS_REACHABLE 這幾個宏函數是在文件include/linux/kconfig.h中定義的,如下: /* * Helper macros to use CONFIG_ options in C/CPP expressions. Note that * these only work with boolean and tristate optio
总述 Linux diff命令用于比较文件的差异.diff以逐行的方式,比较文本文件的异同处.特别是比较两个版本不同的文件,如果指定要比较目录,则diff会比较目录中相同文件名的文件,但不会比较其中子目录.diff命令可以同时输出成补丁文件,并且Linux中还有一个patch命令,可以依据diff生成的.patch补丁文件,将a.c与b.c两个文件差异部分更新到需要修改的文件.此外diff在SVN .GIT.CVS等版本控制工具中也是不可获取的一部分. 下面我就详细描述一下diff命令的使用:
http://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source Here are some steps that I've found to get the CDT to work well with the Linux kernel source. If you exclude some of these steps, it may still work to a large degree, but some