<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>戒往&#039;Blog</title>
	<atom:link href="http://isfate.com/feed" rel="self" type="application/rss+xml" />
	<link>http://isfate.com</link>
	<description>放了自已,才能高飞!</description>
	<lastBuildDate>Wed, 22 Feb 2012 10:16:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PWM调制原理</title>
		<link>http://isfate.com/926.html</link>
		<comments>http://isfate.com/926.html#comments</comments>
		<pubDate>Wed, 22 Feb 2012 10:07:20 +0000</pubDate>
		<dc:creator>戒网</dc:creator>
				<category><![CDATA[硬件设计]]></category>
		<category><![CDATA[PWM]]></category>
		<category><![CDATA[逆变器]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=926</guid>
		<description><![CDATA[无文章,只有一个文档 点击下载]]></description>
		<wfw:commentRss>http://isfate.com/926.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PL2303应用</title>
		<link>http://isfate.com/919.html</link>
		<comments>http://isfate.com/919.html#comments</comments>
		<pubDate>Tue, 21 Feb 2012 04:26:44 +0000</pubDate>
		<dc:creator>戒网</dc:creator>
				<category><![CDATA[硬件设计]]></category>
		<category><![CDATA[pl2303]]></category>
		<category><![CDATA[usb to 232]]></category>
		<category><![CDATA[USB转232]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=919</guid>
		<description><![CDATA[USB转232对于现在没有串口的笔记本来说还是非常有用的.PL2303是一个用得很多的USB TO 232芯片,虽然是1.1的,但是对于我们开发应用是足够了. 只使用TX,RX的简单应用如下: 注意其中的VDD_232:这个电压是指MCU端的电平电压,如果MCU是3.3V那么VDD_232应也为3.3V,以对应电平. 全功能串口+eeprom厂商信息应用电路如下图所示:]]></description>
		<wfw:commentRss>http://isfate.com/919.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>file_operations:write与read方法</title>
		<link>http://isfate.com/901.html</link>
		<comments>http://isfate.com/901.html#comments</comments>
		<pubDate>Tue, 14 Feb 2012 16:06:59 +0000</pubDate>
		<dc:creator>戒网</dc:creator>
				<category><![CDATA[Linux&Android]]></category>
		<category><![CDATA[file_operations]]></category>
		<category><![CDATA[read]]></category>
		<category><![CDATA[write]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=901</guid>
		<description><![CDATA[函数原型：ssize_t (*write) (struct file *,char __user *,size_t count,loff_t*) ssize_t (*read) (struct file *,char __user *,size_t,loff_t*) 描术：向设备发送或接收数据。返回正值表示写入或是读取到的字节数。 参数 file (目前没用过.不知道玩法) 参数 __user: 指向调用此驱动的用户空间buff区,conut是写入的字节个数. loff_t目前也不知道是啥玩意,暂不研究 write在内核代码空间的实现： 1 2 3 4 5 6 7 8 9 10 11 12 13 static ssize_t test_mod_write&#40;struct file *file, const char *buffer, size_t count, loff_t * ppos&#41; &#123; char stats&#91;20&#93;; int ret; [...]]]></description>
		<wfw:commentRss>http://isfate.com/901.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>C语言基础:printf</title>
		<link>http://isfate.com/902.html</link>
		<comments>http://isfate.com/902.html#comments</comments>
		<pubDate>Tue, 14 Feb 2012 15:51:58 +0000</pubDate>
		<dc:creator>戒网</dc:creator>
				<category><![CDATA[C语言基础]]></category>
		<category><![CDATA[printf]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=902</guid>
		<description><![CDATA[高手请无视本文... 必要的头文件#include 如果是在linux内核空间则只能用printk,与printf大同小异. 函数原型: int printf&#40;const char *format,&#91;argument&#93;&#41;; 说明：format指定输出格式，后面跟要输出的变量 目前printf支持以下格式： %c 单个字符 %d 十进制整数 %f 十进制浮点数 %o 八进制数 %s 字符串 %u 无符号十进制数 %x 十六进制数 %% 输出百分号% //还可以%后面加些参数,比如用来限制输出字符个数及数的精度(小数点后几位),使用%5.7 表示只宽度为5,并且只输出7个字符(只适用于%f ??) 取字符串长度可以用下面方法 使用%.*s 后面第一个参数是个数,第二个参数是字符串指针,比如printf("%*s",4,"hello");则只会打印 hell 我的实例: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 static ssize_t test_mod_write&#40;struct file *file, const char [...]]]></description>
		<wfw:commentRss>http://isfate.com/902.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>又将是一个没有情人的情人节</title>
		<link>http://isfate.com/888.html</link>
		<comments>http://isfate.com/888.html#comments</comments>
		<pubDate>Sat, 11 Feb 2012 02:08:16 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[记事本]]></category>
		<category><![CDATA[情人节]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=888</guid>
		<description><![CDATA[不知道不觉,世界未日的情人节就快到了,但鄙人依然单身着. 所以在这里情人节快要到来之际,我祝天下有情人都是失散多年的兄妹！]]></description>
		<wfw:commentRss>http://isfate.com/888.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Ubuntu下继续使用Firefox+autoproxy</title>
		<link>http://isfate.com/862.html</link>
		<comments>http://isfate.com/862.html#comments</comments>
		<pubDate>Fri, 10 Feb 2012 08:15:50 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[网络工具]]></category>
		<category><![CDATA[网络技术]]></category>
		<category><![CDATA[autoproxy]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=862</guid>
		<description><![CDATA[以前我一直使用的是VPN方式在UB下X墙的，最近VPN服务器罢工了，所以还是得回到SSH模式，Firefox+autoproxy+MyEnTunnel一直是WIN下的完美组合，但MyEnTunnel没linux版的，不过一个叫做gstm的软件似乎更强大些。 安装GSTM很方便，直接sudo apt-get install gstm即可。 然后在软件中心打开gstm，进行配置。方法如下图其中要注意的是，在prot redirection中添加规则时，type选动态，to host可以用NA，也可以定义。to port最好是NA。 其他的Firefox与autoproxy配置与WIN下的一样，详见利用firefox与autuproxy配合MyEnTunnel实现无障碍查阅资料]]></description>
		<wfw:commentRss>http://isfate.com/862.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux字符型设备(chrdev)驱动初步分析</title>
		<link>http://isfate.com/848.html</link>
		<comments>http://isfate.com/848.html#comments</comments>
		<pubDate>Fri, 10 Feb 2012 01:50:41 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[Linux&Android]]></category>
		<category><![CDATA[register_chrdev]]></category>
		<category><![CDATA[字符型设备]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=848</guid>
		<description><![CDATA[本文简略地分析总结了一下linux的字符型设备驱动编写流程,以满足一些简单的驱动编写,如驱动硬件IO等操作. 除了要包含的那一堆头文件外,linux的字符型驱动主要程序实际上只有两个接口: 1 2 module_init&#40;mydev_init&#41;; module_exit&#40;mydev_exit&#41;; module_init与module_ext分别用来指明内核在初始化与卸载驱动时所指向的函数入口. 在指明了函数入口后,就须要编写这两个函数的具估内容了. 首先:拿mydev_init来说: 1 2 3 4 5 6 7 static int __init mydev_init&#40;void&#41;; &#123; int ret; some_codes&#40;&#41;; ret=register_chrdev&#40;XXX_MAJOR,DEVICE_NAME,&#38;XXX_fops&#41;; some_codes&#40;&#41;; &#125; 其中mydev_init的函数格式为固定的static int __init mydev_init(void); 整个函数里最重要的一步当然是ret=register_chrdev(XXX_MAJOR,DEVICE_NAME,&#38;XXX_fops); 作 用是向内核注册一个字符型设备驱动,其中第一个参数为主设备号(如果为0表示由系统分配),第二个为驱动名称(将会在/dev目录下升成这个文件),第三 个参数为file_operations结构函数地址.我们要做的工作就是去完成file_operations这个结构体里的各个成员,它们完成与应用 程序的沟通. 在file_operations结构体中有非常多的成员,我们只须要完成我们关心的部份即可,不须要完全是实现它.以下是一个适用于s3c2440控制IO的一个演示示例,这里我们假定GPG4上接有一个LED,我们的目的就是驱动它的亮灭: 1.创建文件csmekdev.c放到内核源码目录/drivers/char.内容如下 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [...]]]></description>
		<wfw:commentRss>http://isfate.com/848.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用Windows Live Writer进行写博了</title>
		<link>http://isfate.com/827.html</link>
		<comments>http://isfate.com/827.html#comments</comments>
		<pubDate>Thu, 09 Feb 2012 09:58:48 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[网络-数码]]></category>
		<category><![CDATA[windows live writer]]></category>
		<category><![CDATA[代码高亮]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=827</guid>
		<description><![CDATA[谁说博客就只能在网上写，还随时有可能功亏一篑？谁说博客一定要遵循网络上呆板的排版方式？谁说博客只能发出去才知道好不好看？……何必再拘泥于在线操作的条条框框，快来试试Windows Live Writer吧，离线编辑功能悉心保存您的心情记录，强大编辑功能和所见即所得的显示方式帮您创造更美博文，您的博客当然要由您作主！ 上面是WLW的吹牛了,不过经过几天使用WLW还是不错的,推荐大家安装,地址M$官网即可下载.另外还有一点,我们经常会有些代码贴到文章中去,使用Code Snippet插件个人觉得并不是很好,如果能兼容WP的Syntax代码高亮插件就好了,.好在功夫不负有锌人.还是让我找到了,WintyCodeArea可以曲线地实现这个功能,大家有需要的话也可以试试.不多说了.下班走人]]></description>
		<wfw:commentRss>http://isfate.com/827.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网页图片大小自动适应设置</title>
		<link>http://isfate.com/782.html</link>
		<comments>http://isfate.com/782.html#comments</comments>
		<pubDate>Wed, 08 Feb 2012 04:54:56 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[网络技术]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[自动适应]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=782</guid>
		<description><![CDATA[在某些WordPress主题模板中，发布的图片可能因为尺寸过大而无法完全显示或者超出模板范围，这样页面显得很不美观，但是WordPress自带的主题模板没有这样的问题。 对比了下default theme与其它theme，发现default theme的style.css中的定义是这样的。 1 2 3 4 img { border: 0; max-width: 100%; } 可以在线编辑style.css，在img样式定义中加上一行max-width:100%就好了。 当然有些theme中没有直接定义img样式，可能会有.post img{}之类的样式，这时也加在里面就ok了。 还有一些theme中的style.css中压根就没有img{}等样式定义，就直接加上一段吧： 1 2 3 4 p img { padding: 0; max-width: 100%; } Firefox往往能正常解析max-width:  100%;这一句，自动限制图片显示大小，但IE不行。 解决方法：在线编辑,在p img{}里再加一行： width: 450px; 450px是firefox里显示max-width: 100%;的最佳大小，就把它定义成这个了，刷新IE后就可以发现效果和firefox一样了。 文章参照自乔大海个人网站http://qiaodahai.com/personal/article/2010/20100123.htm]]></description>
		<wfw:commentRss>http://isfate.com/782.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>beaglebone到了,开始研究中</title>
		<link>http://isfate.com/876.html</link>
		<comments>http://isfate.com/876.html#comments</comments>
		<pubDate>Sun, 25 Dec 2011 04:36:33 +0000</pubDate>
		<dc:creator>isfate</dc:creator>
				<category><![CDATA[TI ARM]]></category>
		<category><![CDATA[beaglebone，开发板]]></category>

		<guid isPermaLink="false">http://isfate.com/?p=876</guid>
		<description><![CDATA[所有操作都得在linux环境中进行操作.. 在linux下FDTI不须要装驱动,但在win下还驱动并不容易安装.得修改FDTI(win7_x64驱动下载) TI已经做好了交叉工具链,等,下载地址在TI官网.根据须要选择下载. 在linux下加载FTDI驱动特蛋痛,FTDI的官方驱动在ubuntu下也无法安装,但发现一个有意思的现象,在装TI的卡时启动开发板,然 后进入TI 的SDK下运行setup.sh就能顺利打开Minicom,这是很明显的有驱动但是没有加载.后来经大神门指点,在接上开发板后可以手动加载,方法是: 1 2 $ sudo modprobe ftdi_sio vendor=0x0403 product=0xa6d0 $ minicom -D /dev/`dmesg &#124; grep FTDI &#124; grep &#34;now attached to&#34; &#124; tail -n 1 &#124; awk '{ print $NF }'` 安装好SDK后，建立默认的arago交叉编译环境：添加环境变量 1 sudo gedit /etc/profile 在此文件最后加上 1 export PATH=$PATH:/usr/local/ti-sdk-am335x-evm/linux-devkit/bin 再运行source /etc/profice使文件生效，然后arm-arago-linux-gnueabi-gcc -v看有没有成功]]></description>
		<wfw:commentRss>http://isfate.com/876.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

