导航

2012年2月2日

摘要: 有一个箭头的电极是发射极,箭头朝外的是NPN型三极管,而箭头朝内的是PNP型。实际上箭头所指的方向是电流的方向。 开关电路原则 a. BJT三极管Transistors 只要发射极e 对电源短路 就是电子开关用法 N管 发射极E 对电源负极短路. 低边开关 ;b-e 正向电流 饱和导通 P管 发射极E 对电源正极短路. 高边开关 ;b-e 反向电流 饱和导通 ... 阅读全文

posted @ 2012-02-02 14:23 cornflower 阅读(1854) 评论(0) 推荐(0) 编辑

2012年1月30日

摘要: 1.算数运算 采用 $(())来标示,要不然, 2.常见的运算符都可以在(())里面来写进去(+ - * / %) 3.10转16进制 haha=`echo 123456|awk '{printf "%x\n",$0}'` 4.if 条件测试 我们一般在shell中会利用一种更强大的if条件判断,即 if [] 格式。下面附上 if [] 格式的测试选项: –b 当file存... 阅读全文

posted @ 2012-01-30 16:27 cornflower 阅读(2978) 评论(0) 推荐(0) 编辑

2011年12月9日

摘要: 1.lib missed 2.you try with glibc but rootfs is uclibc or reverse so howto it’s easy and you just need keep application toolchain and lib the same as which you deployment in your target system 阅读全文

posted @ 2011-12-09 10:30 cornflower 阅读(252) 评论(0) 推荐(0) 编辑

2011年11月29日

摘要: 1.Boot Program Algorithm flow Chart.(you can get this picture from 9260 datasheet in section 13.2) initial Oscillaotor for CLK Check if system can boot from SPI data Flash in NPCS0 CHeck if system can boot from SPI data flash in NPCS1 Chcek if system can boot from NAND Fla... 阅读全文

posted @ 2011-11-29 13:33 cornflower 阅读(431) 评论(0) 推荐(0) 编辑

摘要: /* * Howto *1. gcc -o multi_thread_signal multi_thread_signal.c -lpthread *2. ./multi_thread_signal & *3. ps -aux to see the PID of multi_thread_signal application *4. use kill -... 阅读全文

posted @ 2011-11-29 13:32 cornflower 阅读(367) 评论(0) 推荐(0) 编辑

摘要: Thread Basics: What is a Thread?(from https://computing.llnl.gov/tutorials/pthreads/) Technically, a thread is defined as an independent stream of instructions that can be scheduled to run as suc... 阅读全文

posted @ 2011-11-29 13:28 cornflower 阅读(914) 评论(0) 推荐(1) 编辑

摘要: http://stackoverflow.com/questions/5282099/signal-handling-in-pthreads I believe the core of the problem is that signals are delivered to the process as a whole, rather than individual threads. Commo... 阅读全文

posted @ 2011-11-29 13:28 cornflower 阅读(905) 评论(0) 推荐(0) 编辑

2011年11月25日

摘要: MODULE_LICENSE 来声明该模块的Lience。 如果是FREE SOFTWRAE, we can feed with the string "GPL" "GPL v2" "Dual BSD/GPL" "Dual MIT/GPL" "Dual MPL/GPL" 2. Non free products. we can feed w... 阅读全文

posted @ 2011-11-25 15:18 cornflower 阅读(5212) 评论(0) 推荐(0) 编辑

2011年11月2日

摘要: 可以使用如下代码: struct uart_state *state = tty->driver_data; struct uart_port *port = state->port; 类似的,由 uart_port 得到tty_struct 则使用如下方法: struct tty_struct *tty = port.info->port.tty; 阅读全文

posted @ 2011-11-02 16:53 cornflower 阅读(2485) 评论(0) 推荐(0) 编辑

2011年10月27日

摘要: 这个是转的,向原作者致敬 异步串行数据的一般格式是:起始位+数据位+停止位,其中起始位1 位,数据位可以是5、6、7、8位,停止位可以是1、1.5、2位。 起始位是一个值为0的位,所以对于正逻辑的TTL电平,起始位是一位时间的低电平;停止位是值为1的位,所以对于正逻辑的TTL电平,停止位是高电平。对于负逻辑(如RS-232电平)则相反。 例如,对于16进制数据55aaH,当采用8... 阅读全文

posted @ 2011-10-27 22:29 cornflower 阅读(2032) 评论(0) 推荐(0) 编辑