上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 136 下一页
摘要: Blinky, Button & GPIO examples using Python Contents [hide] 1 Examples using Python 1.1 Blinky Example 1.2 Button Example 1.3 GPIO Example Examples using Python The following application note covers t... 阅读全文
posted @ 2011-05-23 10:07 katago 阅读(3837) 评论(0) 推荐(0)
摘要: Yocto Project Yocto Project是一个开源项目,可以提供在任何硬件上为任何嵌入式设备构建自定义嵌入式 Linux应用所需的模板、工具和资源。这将极大地简化你的开发过程,因为你不用再从头裁剪一个完整的Linux发布版本,后者通常包括许多你并不需要的软件。 阅读全文
posted @ 2011-05-23 09:49 katago 阅读(169) 评论(0) 推荐(0)
摘要: http://www.kernel.org/doc/Documentation/gpio.txtGPIO InterfacesThis provides an overview of GPIO access conventions on Linux.These calls use the gpio_* naming prefix. No other calls should use thatpre... 阅读全文
posted @ 2011-05-18 09:46 katago 阅读(1580) 评论(0) 推荐(0)
摘要: 总线技术 2010-01-15 17:14:34 阅读282 评论0 字号:大中小订阅 分类:嵌入式多媒體 一 SPI协议概括 SPI,是英语Serial Peripheral interface的缩写,顾名思义就是串行外围设备接口。是Motorola首先在其MC68HCXX系列处理器上定义的。SPI接口主要应用在 EEPROM,FLASH,实时时钟,AD转换器,还有数字信号处理器和数字信... 阅读全文
posted @ 2011-05-17 11:18 katago 阅读(6515) 评论(0) 推荐(0)
摘要: printk(KERN_DEBUG "Here I am: %s:%i\n", __FILE__, __LINE__); printk(KERN_CRIT "I'm trashed; giving up on %p\n", ptr); 有 8 种可能的记录字串, 在头文件 <linux/kernel.h> 里定义; 我们按照严重性递减的顺序列出它们: KERN_EMERG 用于紧急消息, 常常是那... 阅读全文
posted @ 2011-05-16 19:39 katago 阅读(444) 评论(0) 推荐(0)
摘要: 使用rmmod会出现 rmmod : chdir(/lib/modules): No such file or directory ? 现在的内核模块在插入卸载时都会要转到/lib/modules/内核版本号/ 这个目录里。所以只要建立这个目录。 mkdir -p /lib/modules/`uname -r` 较新版本的busybox 1.13.1+ 要卸载模块必须要完全匹配模块名才行,原来在老... 阅读全文
posted @ 2011-05-16 17:13 katago 阅读(436) 评论(0) 推荐(0)
摘要: linux设备驱动调试,我们在内核中看到内核使用dev_dbg来控制输出信息,这个函数的实质是调用 printk(KERN_DEBUG )来输出打印信息。要打开这个开关需要下面两步。 1、打开调试开关:你调试的文件中必然包含了<linux/device.h>,或者《linux /paltforam_device.h》,后者包含了前者,在包含此头文件之前,使用#define DEBUG 1 来打... 阅读全文
posted @ 2011-05-16 17:08 katago 阅读(1695) 评论(0) 推荐(0)
摘要: platform可看作一种伪总线,通常用于将集成进片上系统的的轻量级设备和Linux设备模型连接在一起。platform由如下部分组成: platform设备。使用和特定结构的安装程序platform_device_register()或者其简化版本platform_device_register_simple()添加platform设备。你也可以用platform_add_devices()一次... 阅读全文
posted @ 2011-05-13 16:47 katago 阅读(526) 评论(0) 推荐(0)
摘要: Based on kernel version 2.6.38. Page generated on 2011-03-22 22:18 EST. 1 Platform Devices and Drivers2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~3 See <linux/platform_device.h> for the driver model interface to th... 阅读全文
posted @ 2011-05-13 15:14 katago 阅读(647) 评论(0) 推荐(0)
摘要: 2010-01-20 18:51 Platform Device and Drivers 从<linux/platform_device.h>我们可以了解Platform bus上面的驱动模型接口:platform_device,platform_driver。和PCI和USB这些大结构的总线不同,虚拟总线 Platform bus使用最小结构来集成SOC processer上的各种外设,或者各... 阅读全文
posted @ 2011-05-13 15:07 katago 阅读(7601) 评论(0) 推荐(0)
上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 136 下一页