原创 常用的linux命令

1、查看硬盤空間使用情況 df -h 2、

原创 emmc相關文件

\mediatek\build\tools\emigen\MT6589\MemoryDeviceList_MT6589.xls \mediatek\custom\star89_s188\preloader\inc\custom_Memor

原创 模塊間共享變量或者函數

直接上代碼: a.c #include <linux/module.h> #include <linux/init.h>extern int t; static int hello_init(void){         printk("

原创 I2C子系統之I2C總線時鐘頻率設置

http://www.linuxidc.com/Linux/2012-08/68264p2.htm http://blog.csdn.net/ylyuanlu/article/details/6705942

原创 M3調試

1、在6410上調試SPI轉串口芯片  (a) 板子突然出現了一些亂起八糟的信號,放了一晚上,第二天自己正常了,不知道原因。

原创 ubuntu IP地址配置

1、修改 /etc/network/interfaces auto eth0 iface eth0 inet static address 192.168.2.1 gateway 192.168.2.254 netmask 255.255

原创 SPI總線之CPOL CPHA

【背景】 最近在看關於Silicon Labs的C8051F347的某個驅動中,關於SPI部分初始化的代碼,看到其對於SPI的設置爲CPOL=1,CPHA=0,對於CPOL及CPHA的含義不瞭解,想要搞懂,這兩個參數到底是什麼意思,以

原创 面試題

1、platform 設備驅動的編寫 http://blog.csdn.net/gotosola/article/details/7459899 http://www.360doc.com/content/12/0610/16/94007

原创 內核中一個文件中的函數在另一個文件中被引用

例如: spi.c,其中定義了一個函數 spi_write_then_read(), 加上 EXPORT_SYMBOL_GPL(spi_write_then_read);其他模塊中就可以用這個函數。 在對應的模塊中調用,應用 關鍵字ex